forked from EsotericSoftware/kryo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom-shaded.xml
93 lines (91 loc) · 2.82 KB
/
pom-shaded.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<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>com.esotericsoftware</groupId>
<artifactId>kryo-parent</artifactId>
<version>2.25.0-SNAPSHOT</version>
<relativePath>./pom.xml</relativePath>
</parent>
<artifactId>kryo-shaded</artifactId>
<packaging>bundle</packaging>
<name>Kryo Shaded</name>
<description>Fast, efficient Java serialization. This contains the shaded reflectasm jar to prevent conflicts with other versions of asm.</description>
<dependencies>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>reflectasm</artifactId>
<classifier>shaded</classifier>
<exclusions>
<exclusion>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Skip clean, we can use compiled classes from main -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!-- Skip tests for shaded jar - they already ran for main -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<configuration>
<!-- remove all classes of dependencies that are not used by the project -->
<minimizeJar>true</minimizeJar>
<shadedArtifactAttached>false</shadedArtifactAttached>
<artifactSet>
<includes>
<include>com.esotericsoftware:reflectasm:shaded</include>
</includes>
</artifactSet>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.4.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package><![CDATA[
COM.jrockit*;resolution:=optional,
COM.newmonics*;resolution:=optional,
jrockit*;resolution:=optional,
sun.reflect;resolution:=optional,
sun.misc;resolution:=optional,
sun.nio.ch;resolution:=optional,
*
]]>
</Import-Package>
<Export-Package>com.esotericsoftware.kryo*,com.esotericsoftware.reflectasm*</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>