diff options
-rw-r--r-- | pom.xml | 138 | ||||
-rw-r--r-- | src/site/apt/index.apt | 9 | ||||
-rw-r--r-- | src/site/site.xml | 29 |
3 files changed, 138 insertions, 38 deletions
diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..4d5a7cfb --- /dev/null +++ b/pom.xml @@ -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> diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt deleted file mode 100644 index 0a7880a6..00000000 --- a/src/site/apt/index.apt +++ /dev/null @@ -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. diff --git a/src/site/site.xml b/src/site/site.xml deleted file mode 100644 index ff24fab7..00000000 --- a/src/site/site.xml +++ /dev/null @@ -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> |