2014-04-03 11:03:52 +08:00
|
|
|
<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">
|
2013-03-18 09:41:09 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.sk89q</groupId>
|
|
|
|
<artifactId>worldedit</artifactId>
|
2014-04-03 11:03:52 +08:00
|
|
|
<version>6.0.0-SNAPSHOT</version>
|
2013-03-18 09:41:09 +08:00
|
|
|
<packaging>jar</packaging>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!-- Fix encoding warnings -->
|
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
=====================================
|
|
|
|
Project Information
|
|
|
|
=====================================
|
|
|
|
-->
|
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<name>WorldEdit</name>
|
|
|
|
<inceptionYear>2010</inceptionYear>
|
|
|
|
<url>http://wiki.sk89q.com/wiki/WorldEdit</url>
|
2014-04-03 11:03:52 +08:00
|
|
|
<description>An in-game voxel map editor for Minecraft.</description>
|
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<licenses>
|
|
|
|
<license>
|
|
|
|
<name>GNU General Public License 2.0</name>
|
|
|
|
<url>LICENSE.txt</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
<comments>License on WorldEdit</comments>
|
|
|
|
</license>
|
|
|
|
<license>
|
|
|
|
<name>GNU Lesser General Public License 3.0</name>
|
|
|
|
<url>LICENSE_LGPL.txt</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
<comments>License on all new contributions</comments>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<issueManagement>
|
|
|
|
<system>YouTrack</system>
|
|
|
|
<url>http://youtrack.sk89q.com</url>
|
|
|
|
</issueManagement>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<ciManagement>
|
2014-04-03 11:03:52 +08:00
|
|
|
<system>TeamCity</system>
|
|
|
|
<url>http://builds.enginehub.org</url>
|
2013-03-18 09:41:09 +08:00
|
|
|
</ciManagement>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<scm>
|
|
|
|
<connection>scm:git:git://github.com/sk89q/worldedit.git</connection>
|
|
|
|
<developerConnection>scm:git:git@github.com:sk89q/worldedit.git</developerConnection>
|
|
|
|
<url>https://github.com/sk89q/worldedit</url>
|
2014-03-01 08:46:00 +08:00
|
|
|
<tag>master</tag>
|
2013-03-18 09:41:09 +08:00
|
|
|
</scm>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<mailingLists>
|
|
|
|
<mailingList>
|
|
|
|
<name>Developer Discussion</name>
|
|
|
|
<archive>https://groups.google.com/d/forum/sk-dev-discuss</archive>
|
|
|
|
</mailingList>
|
|
|
|
</mailingLists>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!--
|
|
|
|
=====================================
|
|
|
|
Distribution Management
|
|
|
|
=====================================
|
|
|
|
-->
|
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<distributionManagement>
|
|
|
|
<site>
|
|
|
|
<id>sk89q-docs-upload</id>
|
|
|
|
<url>ftp://sk89q-maven-deploy/worldedit/</url>
|
|
|
|
</site>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!-- The CI server uses these -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<repository>
|
|
|
|
<id>maven.sk89q.com</id>
|
|
|
|
<url>http://maven.sk89q.com/artifactory/libs-release-local</url>
|
|
|
|
</repository>
|
2014-02-24 14:23:38 +08:00
|
|
|
<snapshotRepository>
|
|
|
|
<id>maven.sk89q.com-snapshot</id>
|
|
|
|
<url>http://maven.sk89q.com/artifactory/libs-snapshot-local</url>
|
|
|
|
</snapshotRepository>
|
2013-03-18 09:41:09 +08:00
|
|
|
</distributionManagement>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!--
|
|
|
|
=====================================
|
|
|
|
Dependencies
|
|
|
|
=====================================
|
|
|
|
-->
|
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<repositories>
|
|
|
|
<repository>
|
2014-04-03 11:03:52 +08:00
|
|
|
<id>maven.sk89q.com</id>
|
2013-03-18 09:41:09 +08:00
|
|
|
<url>http://maven.sk89q.com/repo/</url>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2013-06-19 05:50:46 +08:00
|
|
|
<pluginRepositories>
|
|
|
|
<pluginRepository>
|
|
|
|
<id>sk89q-repo</id>
|
|
|
|
<url>http://maven.sk89q.com/repo/</url>
|
|
|
|
</pluginRepository>
|
|
|
|
</pluginRepositories>
|
2014-06-28 07:03:29 +08:00
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<dependencies>
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Used for snapshots -->
|
|
|
|
<dependency>
|
2013-03-18 09:41:09 +08:00
|
|
|
<groupId>de.schlichtherle</groupId>
|
|
|
|
<artifactId>truezip</artifactId>
|
|
|
|
<version>6.8.3</version>
|
2014-04-03 11:03:52 +08:00
|
|
|
<scope>compile</scope> <!-- optional runtime dependency -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!-- Used for scripting -->
|
|
|
|
<dependency>
|
2013-03-18 09:41:09 +08:00
|
|
|
<groupId>rhino</groupId>
|
|
|
|
<artifactId>js</artifactId>
|
|
|
|
<version>1.7R2</version>
|
2014-04-03 11:03:52 +08:00
|
|
|
<scope>compile</scope> <!-- optional runtime dependency -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- YAML processing -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.yaml</groupId>
|
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
|
<version>1.9</version>
|
2013-03-18 09:41:09 +08:00
|
|
|
<type>jar</type>
|
2014-04-03 11:03:52 +08:00
|
|
|
<scope>compile</scope> <!-- optional runtime dependency -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2014-03-28 10:56:39 +08:00
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- It's Guava -->
|
2014-03-28 10:56:39 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
2014-04-03 11:03:52 +08:00
|
|
|
<version>10.0.1</version> <!-- Bukkit only bundles 10.0.1 -->
|
|
|
|
<scope>compile</scope> <!-- required runtime dependency -->
|
2014-03-28 10:56:39 +08:00
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2014-07-10 05:05:52 +08:00
|
|
|
<!-- JSON parser -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson</artifactId>
|
|
|
|
<version>2.2.4</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Optimized collections -->
|
2014-07-24 07:20:43 +08:00
|
|
|
<!--<dependency>
|
2014-07-10 05:05:52 +08:00
|
|
|
<groupId>net.sf.trove4j</groupId>
|
|
|
|
<artifactId>trove4j</artifactId>
|
|
|
|
<version>3.0.3</version>
|
|
|
|
<optional>true</optional>
|
2014-07-24 07:20:43 +08:00
|
|
|
</dependency> disabled until we can shadow this in Forge -->
|
2014-07-10 05:05:52 +08:00
|
|
|
|
2014-04-06 10:33:05 +08:00
|
|
|
<!-- @Nullable etc. -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>jsr305</artifactId>
|
|
|
|
<version>1.3.9</version>
|
|
|
|
</dependency>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Used for time operations -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sk89q</groupId>
|
|
|
|
<artifactId>jchronic</artifactId> <!-- not the original library -->
|
|
|
|
<version>0.2.4a</version>
|
|
|
|
<scope>compile</scope> <!-- shaded -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
2014-06-28 07:03:29 +08:00
|
|
|
<!-- Method names for the command framework -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.thoughtworks.paranamer</groupId>
|
|
|
|
<artifactId>paranamer</artifactId>
|
|
|
|
<version>2.6</version>
|
2013-03-18 09:41:09 +08:00
|
|
|
<scope>compile</scope>
|
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
2014-06-28 07:03:29 +08:00
|
|
|
|
2014-07-28 17:15:30 +08:00
|
|
|
<!-- Noise library -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sk89q.lib</groupId>
|
|
|
|
<artifactId>jlibnoise</artifactId>
|
|
|
|
<version>1.0.0</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Unit tests -->
|
|
|
|
<dependency>
|
2013-03-18 09:41:09 +08:00
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<version>1.9.0-rc1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
<type>jar</type>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!--
|
|
|
|
=====================================
|
|
|
|
Build
|
|
|
|
=====================================
|
|
|
|
-->
|
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<build>
|
|
|
|
<defaultGoal>install</defaultGoal>
|
|
|
|
<sourceDirectory>${basedir}/src/main/java/</sourceDirectory>
|
|
|
|
|
2014-07-15 04:48:30 +08:00
|
|
|
<resources>
|
|
|
|
<!-- Data files -->
|
|
|
|
<resource>
|
2014-08-01 02:59:54 +08:00
|
|
|
<targetPath>.</targetPath>
|
2014-07-15 04:48:30 +08:00
|
|
|
<filtering>false</filtering>
|
|
|
|
<directory>${basedir}/src/main/resources/</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/*.json</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Used for uploading the docs -->
|
|
|
|
<extensions>
|
2013-03-18 09:41:09 +08:00
|
|
|
<extension>
|
|
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
|
|
<artifactId>wagon-ftp</artifactId>
|
|
|
|
<version>1.0-beta-6</version>
|
|
|
|
</extension>
|
|
|
|
</extensions>
|
|
|
|
|
|
|
|
<plugins>
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Add source folder -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<version>1.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-source</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
|
|
|
<source>${basedir}/src/legacy/java/</source>
|
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2014-04-05 05:12:01 +08:00
|
|
|
<!-- Check style -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
|
|
<version>2.12</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>verify-style</id>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<sourceDirectory>${basedir}/src</sourceDirectory>
|
|
|
|
<consoleOutput>true</consoleOutput>
|
|
|
|
<failsOnError>true</failsOnError>
|
|
|
|
<logViolationsToConsole>true</logViolationsToConsole>
|
|
|
|
<checkstyleRules>
|
|
|
|
<module name="Checker">
|
2014-04-05 07:09:22 +08:00
|
|
|
<!-- Tabs are strictly banned -->
|
2014-04-05 05:12:01 +08:00
|
|
|
<module name="FileTabCharacter"/>
|
2014-04-05 07:09:22 +08:00
|
|
|
|
|
|
|
<module name="TreeWalker">
|
|
|
|
<!-- Important basics -->
|
|
|
|
<!-- <module name="PackageDeclaration"/> Unlikely that we would miss this in a PR -->
|
|
|
|
<module name="OuterTypeFilename"/> <!-- TypeName -> TypeName.java -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Control package usage, so people don't insert Bukkit into WE where it shouldn't belong, etc.
|
|
|
|
It is a bit draconian, so update as necessary!
|
|
|
|
-->
|
|
|
|
<module name="ImportControl">
|
|
|
|
<property name="file" value="${basedir}/src/main/build/import-control.xml"/>
|
|
|
|
</module>
|
|
|
|
|
|
|
|
<!-- Code -->
|
|
|
|
<module name="HideUtilityClassConstructor"/> <!-- Utility classes should not have a constructor -->
|
|
|
|
<module name="CovariantEquals"/>
|
|
|
|
<module name="EqualsHashCode"/> <!-- equals() and hashCode() go together -->
|
|
|
|
<module name="NestedTryDepth"> <!-- SHOULD not need to adjust this -->
|
|
|
|
<property name="max" value="2"/>
|
|
|
|
</module>
|
|
|
|
<module name="SuperFinalize"/> <!-- We don't actually use this -->
|
|
|
|
<module name="JUnitTestCase"/> <!-- Checks tearDown(), setUp() etc. -->
|
|
|
|
|
|
|
|
<!-- Style -->
|
|
|
|
<module name="LeftCurly"> <!-- Left brace never goes on another line -->
|
|
|
|
<property name="option" value="eol"/>
|
|
|
|
</module> <!-- We don't check right brance -->
|
|
|
|
<module name="DefaultComesLast"/> <!-- default case in switch should be last -->
|
|
|
|
<module name="GenericWhitespace"/>
|
|
|
|
|
|
|
|
<!-- Naming -->
|
|
|
|
<module name="ClassTypeParameterName">
|
|
|
|
<property name="format" value="^[A-Z][a-zA-Z0-9]*$"/>
|
|
|
|
</module>
|
|
|
|
<module name="LocalFinalVariableName"/>
|
|
|
|
<module name="LocalVariableName">
|
|
|
|
<property name="format" value="^[a-z_][a-zA-Z0-9]*$"/>
|
|
|
|
</module>
|
|
|
|
<module name="MemberName">
|
|
|
|
<property name="format" value="^[a-z_][a-zA-Z0-9]*$"/>
|
|
|
|
</module>
|
|
|
|
<module name="MethodName">
|
|
|
|
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
|
|
|
|
</module>
|
|
|
|
<!-- <module name="PackageName"/> Unlikely that we would miss this in a PR -->
|
|
|
|
<module name="ParameterName"/>
|
|
|
|
<!-- <module name="TypeName"/> Unlikely that we would miss this in a PR -->
|
|
|
|
</module>
|
|
|
|
|
|
|
|
<!-- Require the header, something that many people forget and we hate to fix -->
|
|
|
|
<!-- You should configure the header in your IDE -->
|
|
|
|
<module name="Header">
|
|
|
|
<property name="headerFile" value="${basedir}/src/main/build/header.txt"/>
|
|
|
|
<property name="fileExtensions" value="java"/>
|
|
|
|
</module>
|
2014-04-05 05:12:01 +08:00
|
|
|
</module>
|
|
|
|
</checkstyleRules>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Compiler -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>2.3.2</version>
|
|
|
|
<configuration>
|
|
|
|
<source>1.6</source>
|
|
|
|
<target>1.6</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- JAR plugin -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>2.3.1</version>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<addMavenDescriptor>true</addMavenDescriptor>
|
|
|
|
<manifest>
|
|
|
|
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
|
</manifest>
|
|
|
|
<manifestEntries>
|
|
|
|
<Class-Path>truezip.jar WorldEdit/truezip.jar js.jar WorldEdit/js.jar</Class-Path>
|
|
|
|
<!-- This is a legacy manifest entry for older versions of
|
|
|
|
WorldEdit (like really old) -->
|
|
|
|
<WorldEdit-Version>${project.version}</WorldEdit-Version>
|
|
|
|
</manifestEntries>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Shades -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<version>1.7.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>shade</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2014-07-10 05:05:52 +08:00
|
|
|
<minimizeJar>true</minimizeJar>
|
2013-03-18 09:41:09 +08:00
|
|
|
<artifactSet>
|
|
|
|
<includes>
|
|
|
|
<include>com.sk89q:jchronic</include>
|
2013-06-19 05:50:46 +08:00
|
|
|
<include>com.thoughtworks.paranamer:paranamer</include>
|
2014-07-10 05:05:52 +08:00
|
|
|
<include>com.google.code.gson:gson</include>
|
2014-07-28 17:35:30 +08:00
|
|
|
<include>com.sk89q.lib:jlibnoise</include>
|
2014-07-24 07:20:43 +08:00
|
|
|
<!-- <include>net.sf.trove4j:trove4j</include> -->
|
2013-03-18 09:41:09 +08:00
|
|
|
</includes>
|
|
|
|
</artifactSet>
|
2014-07-10 05:05:52 +08:00
|
|
|
<relocations>
|
2014-07-24 07:20:43 +08:00
|
|
|
<!-- <relocation>
|
2014-07-10 05:05:52 +08:00
|
|
|
<pattern>gnu.trove</pattern>
|
|
|
|
<shadedPattern>com.sk89q.worldedit.internal.trove</shadedPattern>
|
2014-07-24 07:20:43 +08:00
|
|
|
</relocation> -->
|
2014-07-10 05:05:52 +08:00
|
|
|
<relocation>
|
|
|
|
<pattern>com.google.gson</pattern>
|
|
|
|
<shadedPattern>com.sk89q.worldedit.internal.gson</shadedPattern>
|
|
|
|
</relocation>
|
|
|
|
</relocations>
|
2013-03-18 09:41:09 +08:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2014-06-29 16:39:56 +08:00
|
|
|
<!-- Assembly builds .zip, etc. -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<version>2.2-beta-2</version>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>${basedir}/src/main/assembly/default.xml</descriptor>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>release</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Release plugin -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
|
|
<version>2.3.2</version>
|
|
|
|
<configuration>
|
|
|
|
<preparationGoals>assembly:assembly</preparationGoals>
|
|
|
|
<goals>assembly:assembly</goals>
|
|
|
|
<tagNameFormat>@{project.version}</tagNameFormat>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Test runner -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.7.2</version>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/TestOfflinePermissible.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2014-07-31 15:33:13 +08:00
|
|
|
|
|
|
|
<!-- Attach docs -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<version>2.2.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!-- Generate Javadocs -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<version>2.8.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadocs</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2013-03-18 09:41:09 +08:00
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Site builder -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
|
|
<version>3.1</version>
|
|
|
|
<configuration>
|
|
|
|
<reportPlugins>
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Project information -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
|
|
<version>2.5</version>
|
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<reports>
|
|
|
|
<report>license</report>
|
|
|
|
<report>index</report>
|
|
|
|
</reports>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!-- Javadocs -->
|
2013-03-18 09:41:09 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<version>2.8.1</version>
|
|
|
|
</plugin>
|
|
|
|
</reportPlugins>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2014-04-03 11:03:52 +08:00
|
|
|
|
|
|
|
<!--
|
|
|
|
=====================================
|
|
|
|
Profiles
|
|
|
|
=====================================
|
|
|
|
-->
|
|
|
|
|
2013-03-18 09:41:09 +08:00
|
|
|
<profiles>
|
2014-04-03 11:03:52 +08:00
|
|
|
<!--
|
|
|
|
=====================================
|
|
|
|
Bukkit
|
|
|
|
=====================================
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>bukkit</id>
|
|
|
|
|
|
|
|
<activation>
|
2014-09-02 12:18:35 +08:00
|
|
|
<property>
|
|
|
|
<name>!skipBukkitProfile</name>
|
|
|
|
</property>
|
2014-04-03 11:03:52 +08:00
|
|
|
</activation>
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>bukkit-repo</id>
|
|
|
|
<url>http://repo.bukkit.org/content/groups/public</url>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!-- Used for Permissions support (this version has both the legacy API
|
|
|
|
and the new Permissions API to compile against -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sk89q</groupId>
|
|
|
|
<artifactId>dummypermscompat</artifactId>
|
|
|
|
<version>1.7</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<type>jar</type>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
|
2014-07-07 07:38:46 +08:00
|
|
|
<!-- Used for running CraftBukkit from within your IDE
|
|
|
|
These are runtime-only dependencies -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.sk89q.bukkit</groupId>
|
|
|
|
<artifactId>bukkit-classloader-check</artifactId>
|
|
|
|
<version>1.7.2-R0.3</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
<type>jar</type>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<!-- End runtime only -->
|
|
|
|
|
2014-04-03 11:03:52 +08:00
|
|
|
<!-- Bukkit implementation -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.bukkit</groupId>
|
|
|
|
<artifactId>bukkit</artifactId>
|
2014-07-07 07:38:46 +08:00
|
|
|
<version>1.7.2-R0.3</version>
|
2014-04-03 11:03:52 +08:00
|
|
|
<scope>compile</scope>
|
|
|
|
<type>jar</type>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<resources>
|
|
|
|
<!-- Bukkit plugin.yml -->
|
|
|
|
<resource>
|
2014-08-01 02:59:54 +08:00
|
|
|
<targetPath>.</targetPath>
|
2014-04-03 11:03:52 +08:00
|
|
|
<filtering>true</filtering>
|
|
|
|
<directory>${basedir}/src/bukkit/resources/</directory>
|
|
|
|
<includes>
|
|
|
|
<include>plugin.yml</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
|
|
|
|
<!-- Default files -->
|
|
|
|
<resource>
|
|
|
|
<targetPath>defaults/</targetPath>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<directory>${basedir}/src/bukkit/resources/</directory>
|
|
|
|
<includes>
|
|
|
|
<include>config.yml</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
|
|
|
|
<!-- NMS support in Bukkit -->
|
|
|
|
<resource>
|
2014-08-01 02:59:54 +08:00
|
|
|
<targetPath>.</targetPath>
|
2014-04-03 11:03:52 +08:00
|
|
|
<filtering>false</filtering>
|
2014-07-15 03:10:38 +08:00
|
|
|
<directory>${basedir}/src/bukkit/resources/</directory>
|
2014-04-03 11:03:52 +08:00
|
|
|
<includes>
|
2014-07-15 03:10:38 +08:00
|
|
|
<include>**/*.class</include>
|
2014-04-03 11:03:52 +08:00
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<!-- Add source folder -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<version>1.7</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-bukkit-sources</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
|
|
|
<source>${basedir}/src/bukkit/java/</source>
|
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>add-bukkit-test-sources</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-test-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
|
|
|
<source>${basedir}/src/bukkit-test/java/</source>
|
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
=====================================
|
2014-07-31 15:33:13 +08:00
|
|
|
Disable doclint on Java 8
|
2014-04-03 11:03:52 +08:00
|
|
|
=====================================
|
|
|
|
-->
|
2013-03-18 09:41:09 +08:00
|
|
|
<profile>
|
2014-07-31 15:33:13 +08:00
|
|
|
<id>java8-disable-doclint</id>
|
|
|
|
<activation>
|
|
|
|
<jdk>[1.8,</jdk>
|
|
|
|
</activation>
|
2013-03-18 09:41:09 +08:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2014-07-31 15:33:13 +08:00
|
|
|
<configuration>
|
|
|
|
<additionalparam>-Xdoclint:none</additionalparam>
|
|
|
|
</configuration>
|
2013-03-18 09:41:09 +08:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|