reduce size of the email api

This commit is contained in:
Gabriele C 2015-11-10 20:20:43 +01:00
parent 8a4f2c5ef8
commit 604f2f3ee9

22
pom.xml
View File

@ -94,6 +94,11 @@
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>false</minimizeJar>
<!-- TODO: simplify these relocations if possible -->
<artifactSet>
<excludes>
<exclude>com.sun:*</exclude>
</excludes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.mcstats</pattern>
@ -119,14 +124,14 @@
<pattern>javax.activation</pattern>
<shadedPattern>fr.xephi.authme.libs.mail.activation</shadedPattern>
</relocation>
<relocation>
<pattern>com.sun.activation</pattern>
<shadedPattern>fr.xephi.authme.libs.mail.activation</shadedPattern>
</relocation>
<relocation>
<pattern>com.sun.mail</pattern>
<shadedPattern>fr.xephi.authme.libs.mail</shadedPattern>
</relocation>
<relocation>
<pattern>com.sun.activation</pattern>
<shadedPattern>fr.xephi.authme.libs.mail.activation</shadedPattern>
</relocation>
<relocation>
<pattern>com.maxmind.geoip</pattern>
<shadedPattern>fr.xephi.authme.libs.geoip</shadedPattern>
@ -235,7 +240,14 @@
<!-- Java Email Implementation -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<artifactId>mailapi</artifactId>
<version>1.5.4</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>smtp</artifactId>
<version>1.5.4</version>
<scope>compile</scope>
<optional>true</optional>