Rewrite pom.xml, use Eclipse JDT / ECJ for compilation.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2015-01-05 14:24:14 +11:00
parent 336a40ceb3
commit 83544bb9eb
3 changed files with 138 additions and 38 deletions

138
paper-api/pom.xml Normal file
View file

@ -0,0 +1,138 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.8-R0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Bukkit</name>
<url>http://www.bukkit.org/</url>
<description>A plugin API for Minecraft servers.</description>
<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<!-- just until we get deployment to central approved -->
<distributionManagement>
<repository>
<id>spigotmc-releases</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>spigotmc-releases</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<!-- 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>
<dependencies>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- bundled with Minecraft, should be kept in sync -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>17.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.avaje</groupId>
<artifactId>ebean</artifactId>
<version>2.8.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.14</version>
<scope>compile</scope>
</dependency>
<!-- testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<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>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- utterly useless artifact from shade 2.x -->
<createDependencyReducedPom>false</createDependencyReducedPom>
<!-- when downloading via Maven we can pull depends individually -->
<shadedArtifactAttached>true</shadedArtifactAttached>
</configuration>
</plugin>
</plugins>
</build>
</project>

View file

@ -1,9 +0,0 @@
Welcome to the Bukkit Maven mini-site!
This website is automatically generated by Maven 3.
As such, it is updated when the main build system (http://ci.bukkit.org) executes the site lifecycle on the Maven job.
For more information about Bukkit, please see the links above.
Javadocs
For Javadocs, please select the "Project Reports" then "JavaDocs" option on the left-hand menu.

View file

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Bukkit">
<bannerLeft>
<name>Bukkit</name>
<src>http://bukkit.org/logo.png</src>
<href>http://bukkit.org/</href>
</bannerLeft>
<body>
<links>
<item name="Homepage" href="http://bukkit.org/" />
<item name="Forums" href="http://forums.bukkit.org/" />
<item name="Source/Github" href="https://github.com/Bukkit/" />
<item name="Continuous Integration/Jenkins" href="http://ci.bukkit.org/" />
<item name="Maven Repo" href="http://repo.bukkit.org/" />
</links>
<menu name="Bukkit Project">
<item name="Homepage" href="http://bukkit.org/" />
<item name="Forums" href="http://forums.bukkit.org/" />
<item name="Source/Github" href="https://github.com/Bukkit/" />
<item name="Continuous Integration/Jenkins" href="http://ci.bukkit.org/" />
<item name="Maven Repo" href="http://repo.bukkit.org/" />
</menu>
<menu name="API Documentation">
<item name="JavaDocs" href="apidocs/" />
<item name="Doxygen" href="doxygen/" />
</menu>
<menu ref="reports" />
</body>
</project>