diff options
author | md_5 <git@md-5.net> | 2015-01-05 14:28:44 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-05 14:28:44 +1100 |
commit | 96d09e378a02601e643da0f54ba9d16a353d2a74 (patch) | |
tree | 387760593cd62cf3bb72a5348bacf854eb12597e | |
parent | 5b92dc3d0a531468fa5b5ed6501dfe295b186e39 (diff) | |
download | craftbukkit-96d09e378a02601e643da0f54ba9d16a353d2a74.tar craftbukkit-96d09e378a02601e643da0f54ba9d16a353d2a74.tar.gz craftbukkit-96d09e378a02601e643da0f54ba9d16a353d2a74.tar.lz craftbukkit-96d09e378a02601e643da0f54ba9d16a353d2a74.tar.xz craftbukkit-96d09e378a02601e643da0f54ba9d16a353d2a74.zip |
Use ECJ as the compiler, like Bukkit.
-rw-r--r-- | pom.xml | 35 |
1 files changed, 28 insertions, 7 deletions
@@ -16,6 +16,8 @@ <minecraft_version>1_8_R1</minecraft_version> <buildtag.prefix>git-Bukkit-</buildtag.prefix> <buildtag.suffix></buildtag.suffix> + <maven.compiler.source>1.6</maven.compiler.source> + <maven.compiler.target>1.6</maven.compiler.target> </properties> <dependencies> @@ -81,6 +83,14 @@ </dependency> </dependencies> + <!-- required until fixed plexus-compiler-eclipse is deployed --> + <pluginRepositories> + <pluginRepository> + <id>spigotmc-public</id> + <url>https://hub.spigotmc.org/nexus/content/groups/public/</url> + </pluginRepository> + </pluginRepositories> + <!-- This builds a completely 'ready to start' jar with all dependencies inside --> <build> <defaultGoal>clean install</defaultGoal> @@ -229,13 +239,24 @@ </executions> </plugin> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.2</version> - <configuration> - <source>1.6</source> - <target>1.6</target> - </configuration> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <!-- versions after this appear to be broken --> + <version>3.1</version> + <configuration> + <!-- we use the Eclipse compiler as it doesn't need a JDK --> + <compilerId>eclipse</compilerId> + <!-- source and target are ignored if this isn't true --> + <optimize>true</optimize> + </configuration> + <dependencies> + <!-- we need our custom version as it fixes some bugs on case sensitive file systems --> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compiler-eclipse</artifactId> + <version>2.5.0-spigotmc</version> + </dependency> + </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> |