Add Shaded API's

This commit is contained in:
Xephi59 2015-06-30 02:36:53 +02:00
parent f4f1f76e25
commit 15efe95f23

56
pom.xml
View File

@ -48,28 +48,12 @@
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<!-- <plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>target/classes/plugin.yml</file>
<replacements>
<replacement>
<token>${version}</token>
<value>${version}</value>
</replacement>
</replacements>
</configuration>
</plugin> -->
<!-- <plugin> <groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId> <version>1.4.1</version> <executions>
<execution> <phase>prepare-package</phase> <goals> <goal>replace</goal> </goals>
</execution> </executions> <configuration> <file>target/classes/plugin.yml</file>
<replacements> <replacement> <token>${version}</token> <value>${version}</value>
</replacement> </replacements> </configuration> </plugin> -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
@ -79,6 +63,28 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<configuration>
<artifactSet>
<includes>
<include>com.maxmind.geoip:*</include>
<include>com.sun.mail:*</include>
<include>javax.mail:*</include>
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
@ -135,10 +141,8 @@
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<!-- <snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots> -->
<!-- <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy>
</snapshots> -->
</repository>
<!-- End of Spout Repo -->