forked from apache/cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
relocate-dependencies.pom
133 lines (109 loc) · 4.86 KB
/
relocate-dependencies.pom
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-dtest-shaded</artifactId>
<version>4.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Cassandra in-jvm dtests shaded jar</name>
<properties>
<project.type>library</project.type>
<java.version>1.8</java.version>
<test.source.directory>src/test/unit/java</test.source.directory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<junit.version>4.12</junit.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<dtest-local.version>4.0.0-SNAPSHOT</dtest-local.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-dtest-local</artifactId>
<version>${dtest-local.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testSourceDirectory>${test.source.directory}</testSourceDirectory>
<plugins>
<!-- generate a shaded JAR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<createSourcesJar>false</createSourcesJar>
<artifactSet>
<includes>
<include>org.apache.cassandra:cassandra-dtest-local</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>relocated.shaded.io.netty</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>relocated.shaded.com.google</shadedPattern>
</relocation>
<relocation>
<pattern>com.datastax</pattern>
<shadedPattern>relocated.shaded.com.datastax</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>**/Log4j2Plugins.dat</exclude>
</excludes>
</filter>
<filter>
<artifact>io.netty:netty-*</artifact>
<excludes>
<exclude>META-INF/maven/</exclude>
<exclude>META-INF/io.netty.versions.properties</exclude>
</excludes>
</filter>
<filter>
<artifact>com.google.guava:guava</artifact>
<excludes>
<exclude>META-INF/maven/</exclude>
</excludes>
</filter>
<filter>
<artifact>com.google.guava:failureaccess</artifact>
<excludes>
<exclude>META-INF/maven/</exclude>
</excludes>
</filter>
<filter>
<artifact>com.datastax.cassandra:cassandra-driver-core</artifact>
<excludes>
<exclude>META-INF/maven/</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>