Pom cleanup
This commit is contained in:
parent
8832c1ac0f
commit
2a9ab60fcd
152
pom.xml
152
pom.xml
@ -48,21 +48,25 @@
|
|||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Project Encoding -->
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<project.build.outputEncoding>UTF-8</project.build.outputEncoding>
|
|
||||||
|
|
||||||
<!-- Project Properties -->
|
<!-- Project Properties -->
|
||||||
|
<projectEncoding>UTF-8</projectEncoding>
|
||||||
|
<project.build.sourceEncoding>${projectEncoding}</project.build.sourceEncoding>
|
||||||
|
<project.build.outputEncoding>${projectEncoding}</project.build.outputEncoding>
|
||||||
|
<jdkVersion>1.7</jdkVersion>
|
||||||
|
<testJreVersion>1.7</testJreVersion>
|
||||||
|
|
||||||
|
<!-- Output properties -->
|
||||||
<pluginName>AuthMe</pluginName>
|
<pluginName>AuthMe</pluginName>
|
||||||
<jarName>${pluginName}-${project.version}</jarName>
|
<jarName>${pluginName}-${project.version}</jarName>
|
||||||
<mainClass>fr.xephi.authme.AuthMe</mainClass>
|
<mainClass>${project.groupId}.${project.artifactId}.${pluginName}</mainClass>
|
||||||
<pluginAuthors>Xephi, sgdc3, DNx5, timvisee, games647, ljacqu</pluginAuthors>
|
<pluginAuthors>Xephi, sgdc3, DNx5, timvisee, games647, ljacqu</pluginAuthors>
|
||||||
<buildNumber>Unknown</buildNumber>
|
<buildNumber>Unknown</buildNumber>
|
||||||
|
|
||||||
<!-- Change Bukkit Version HERE! -->
|
<!-- Change Bukkit Version HERE! -->
|
||||||
<bukkitVersion>1.9-pre1-SNAPSHOT</bukkitVersion>
|
<bukkitVersion>1.8.8-R0.1-SNAPSHOT</bukkitVersion>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<!-- Jenkins profile (add the real buildNumber to the version string) -->
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>jenkins</id>
|
<id>jenkins</id>
|
||||||
@ -83,33 +87,21 @@
|
|||||||
<testSourceDirectory>src/test/java</testSourceDirectory>
|
<testSourceDirectory>src/test/java</testSourceDirectory>
|
||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<resource>
|
|
||||||
<targetPath>.</targetPath>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
<directory>src/main/resources/</directory>
|
|
||||||
<includes>
|
|
||||||
<include>plugin.yml</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
|
||||||
<targetPath>.</targetPath>
|
|
||||||
<filtering>true</filtering>
|
|
||||||
<directory>src/main/resources/</directory>
|
|
||||||
<includes>
|
|
||||||
<include>email.html</include>
|
|
||||||
<include>welcome.txt</include>
|
|
||||||
</includes>
|
|
||||||
</resource>
|
|
||||||
<resource>
|
<resource>
|
||||||
<targetPath>.</targetPath>
|
<targetPath>.</targetPath>
|
||||||
<filtering>false</filtering>
|
<filtering>false</filtering>
|
||||||
|
<directory>.</directory>
|
||||||
|
<includes>
|
||||||
|
<include>LICENSE</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
<resource>
|
||||||
|
<targetPath>.</targetPath>
|
||||||
|
<filtering>true</filtering>
|
||||||
<directory>src/main/resources/</directory>
|
<directory>src/main/resources/</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>*.yml</include>
|
<include>*</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
|
||||||
<exclude>plugin.yml</exclude>
|
|
||||||
</excludes>
|
|
||||||
</resource>
|
</resource>
|
||||||
<resource>
|
<resource>
|
||||||
<targetPath>./messages/</targetPath>
|
<targetPath>./messages/</targetPath>
|
||||||
@ -126,37 +118,17 @@
|
|||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
|
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<!-- Lambda expressions for Java 6 and 7 -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>net.orfjackal.retrolambda</groupId>
|
|
||||||
<artifactId>retrolambda-maven-plugin</artifactId>
|
|
||||||
<version>2.1.0</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>process-main</goal>
|
|
||||||
<goal>process-test</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Maven Java Compiler (compile under 1.8 but allow 1.7/1.6 thanks to Retrolambda) -->
|
<!-- Maven Java Compiler -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.5.1</version>
|
<version>3.5.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>${jdkVersion}</source>
|
||||||
<target>1.8</target>
|
<target>${jdkVersion}</target>
|
||||||
<!-- We need to run tests with java 1.7 to avoid errors with retrolambda! -->
|
<testSource>${testJreVersion}</testSource>
|
||||||
<testSource>1.7</testSource>
|
<testTarget>${testJreVersion}</testTarget>
|
||||||
<testTarget>1.7</testTarget>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Test Plugin -->
|
<!-- Test Plugin -->
|
||||||
@ -165,9 +137,7 @@
|
|||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<version>2.19.1</version>
|
<version>2.19.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<forkCount>3</forkCount>
|
<argLine>-Dfile.encoding=${projectEncoding} ${argLine}</argLine>
|
||||||
<reuseForks>true</reuseForks>
|
|
||||||
<argLine>-client -Xmx512M -Dfile.encoding=UTF-8 ${argLine}</argLine>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Libs Shading and Relocation -->
|
<!-- Libs Shading and Relocation -->
|
||||||
@ -195,33 +165,11 @@
|
|||||||
</excludes>
|
</excludes>
|
||||||
</artifactSet>
|
</artifactSet>
|
||||||
<relocations>
|
<relocations>
|
||||||
<!--We use a newer version of gson so include it to the jar and reference to the new version-->
|
<!-- We use a newer version of gson so we need to include it! -->
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.google.gson</pattern>
|
<pattern>com.google.gson</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.google</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.google</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
|
||||||
<pattern>org.mcstats</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<!--
|
|
||||||
<relocation>
|
|
||||||
<pattern>org.apache</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.apache</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>javax.mail</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.javax.mail</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>javax.activation</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.javax.activation</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>com.sun</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.sun</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
-->
|
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.zaxxer.hikari</pattern>
|
<pattern>com.zaxxer.hikari</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.hikari</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.hikari</shadedPattern>
|
||||||
@ -238,6 +186,11 @@
|
|||||||
<pattern>net.ricecode.similarity</pattern>
|
<pattern>net.ricecode.similarity</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.similarity</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.similarity</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
|
<!-- MCStats.org metrics -->
|
||||||
|
<relocation>
|
||||||
|
<pattern>org.mcstats</pattern>
|
||||||
|
<shadedPattern>fr.xephi.authme</shadedPattern>
|
||||||
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
<outputFile>target/${jarName}-spigot.jar</outputFile>
|
<outputFile>target/${jarName}-spigot.jar</outputFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -249,34 +202,12 @@
|
|||||||
<goal>shade</goal>
|
<goal>shade</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!--Include all google libraries, because they are not avaialbe before 1.8-->
|
<!-- Include all google libraries, because they are not available before 1.8 -->
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.google</pattern>
|
<pattern>com.google</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.google</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.google</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
<relocation>
|
|
||||||
<pattern>org.mcstats</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<!--
|
|
||||||
<relocation>
|
|
||||||
<pattern>org.apache</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.apache</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>javax.mail</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.javax.mail</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>javax.activation</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.javax.activation</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
<relocation>
|
|
||||||
<pattern>com.sun</pattern>
|
|
||||||
<shadedPattern>fr.xephi.authme.libs.sun</shadedPattern>
|
|
||||||
</relocation>
|
|
||||||
-->
|
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>com.zaxxer.hikari</pattern>
|
<pattern>com.zaxxer.hikari</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.hikari</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.hikari</shadedPattern>
|
||||||
@ -293,6 +224,11 @@
|
|||||||
<pattern>net.ricecode.similarity</pattern>
|
<pattern>net.ricecode.similarity</pattern>
|
||||||
<shadedPattern>fr.xephi.authme.libs.similarity</shadedPattern>
|
<shadedPattern>fr.xephi.authme.libs.similarity</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
|
<!-- MCStats.org metrics -->
|
||||||
|
<relocation>
|
||||||
|
<pattern>org.mcstats</pattern>
|
||||||
|
<shadedPattern>fr.xephi.authme</shadedPattern>
|
||||||
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
<outputFile>target/${jarName}-legacy.jar</outputFile>
|
<outputFile>target/${jarName}-legacy.jar</outputFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -303,7 +239,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
<version>0.7.5.201505241946</version>
|
<version>0.7.6.201602180812</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>prepare-agent</id>
|
<id>prepare-agent</id>
|
||||||
@ -318,7 +254,7 @@
|
|||||||
<groupId>org.eluder.coveralls</groupId>
|
<groupId>org.eluder.coveralls</groupId>
|
||||||
<artifactId>coveralls-maven-plugin</artifactId>
|
<artifactId>coveralls-maven-plugin</artifactId>
|
||||||
<version>4.1.0</version>
|
<version>4.1.0</version>
|
||||||
<!-- Token is provided by mvn command -->
|
<!-- The secret token is provided by console! -->
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Javadocs settings -->
|
<!-- Javadocs settings -->
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -328,7 +264,10 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<charset>UTF-8</charset>
|
<charset>UTF-8</charset>
|
||||||
<docencoding>UTF-8</docencoding>
|
<docencoding>UTF-8</docencoding>
|
||||||
|
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
|
||||||
<docfilessubdirs>true</docfilessubdirs>
|
<docfilessubdirs>true</docfilessubdirs>
|
||||||
|
<show>public</show>
|
||||||
|
<failOnError>false</failOnError>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
@ -391,13 +330,6 @@
|
|||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- Lombok expressions -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
<version>1.16.6</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
<!-- Database Connection Pool -->
|
<!-- Database Connection Pool -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.zaxxer</groupId>
|
<groupId>com.zaxxer</groupId>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user