Skip to content

Commit c75df47

Browse files
remove shade plugin, add assembly
1 parent b4ac698 commit c75df47

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

external-lib/pom.xml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
<artifactId>java-lib</artifactId>
66
<version>1.0-SNAPSHOT</version>
77
<name>java-lib</name>
8-
<!-- FIXME change it to the project's website -->
98
<url>http://www.example.com</url>
9+
1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<maven.compiler.source>1.7</maven.compiler.source>
1313
<maven.compiler.target>1.7</maven.compiler.target>
1414
</properties>
15+
1516
<dependencies>
1617
<dependency>
1718
<groupId>junit</groupId>
@@ -25,41 +26,40 @@
2526
<version>0.13.7</version>
2627
</dependency>
2728
</dependencies>
29+
2830
<build>
31+
<plugins>
32+
<plugin>
33+
<artifactId>maven-assembly-plugin</artifactId>
34+
<version>3.7.1</version>
35+
<configuration>
36+
<descriptorRefs>
37+
<descriptorRef>jar-with-dependencies</descriptorRef>
38+
</descriptorRefs>
39+
<archive>
40+
<manifest>
41+
<addClasspath>true</addClasspath>
42+
</manifest>
43+
</archive>
44+
</configuration>
45+
<executions>
46+
<execution>
47+
<id>make-assembly</id>
48+
<phase>package</phase>
49+
<goals>
50+
<goal>single</goal>
51+
</goals>
52+
</execution>
53+
</executions>
54+
</plugin>
55+
</plugins>
56+
2957
<pluginManagement>
30-
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
3158
<plugins>
32-
<plugin>
33-
<groupId>org.apache.maven.plugins</groupId>
34-
<artifactId>maven-shade-plugin</artifactId>
35-
<version>3.2.4</version>
36-
<executions>
37-
<execution>
38-
<phase>package</phase>
39-
<goals>
40-
<goal>shade</goal>
41-
</goals>
42-
<configuration>
43-
<artifactSet>
44-
<excludes>
45-
<exclude>classworlds:classworlds</exclude>
46-
<exclude>junit:junit</exclude>
47-
<exclude>jmock:*</exclude>
48-
<exclude>*:xml-apis</exclude>
49-
<exclude>org.apache.maven:lib:tests</exclude>
50-
<exclude>log4j:log4j:jar:</exclude>
51-
</excludes>
52-
</artifactSet>
53-
</configuration>
54-
</execution>
55-
</executions>
56-
</plugin>
57-
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
5859
<plugin>
5960
<artifactId>maven-clean-plugin</artifactId>
6061
<version>3.1.0</version>
6162
</plugin>
62-
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
6363
<plugin>
6464
<artifactId>maven-resources-plugin</artifactId>
6565
<version>3.0.2</version>
@@ -84,7 +84,6 @@
8484
<artifactId>maven-deploy-plugin</artifactId>
8585
<version>2.8.2</version>
8686
</plugin>
87-
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
8887
<plugin>
8988
<artifactId>maven-site-plugin</artifactId>
9089
<version>3.7.1</version>

0 commit comments

Comments
 (0)