Skip to content

Commit 5f32ad1

Browse files
committed
Generate shaded jar to make tool work on its own
1 parent 213d034 commit 5f32ad1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@
131131
<artifactId>maven-resources-plugin</artifactId>
132132
<version>3.3.1</version>
133133
</plugin>
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-shade-plugin</artifactId>
137+
<version>3.6.0</version>
138+
</plugin>
134139
<plugin>
135140
<groupId>org.apache.maven.plugins</groupId>
136141
<artifactId>maven-source-plugin</artifactId>
@@ -220,6 +225,42 @@
220225
</execution>
221226
</executions>
222227
</plugin>
228+
<plugin>
229+
<groupId>org.apache.maven.plugins</groupId>
230+
<artifactId>maven-shade-plugin</artifactId>
231+
<executions>
232+
<execution>
233+
<goals>
234+
<goal>shade</goal>
235+
</goals>
236+
<phase>package</phase>
237+
<configuration>
238+
<createDependencyReducedPom>false</createDependencyReducedPom>
239+
<filters>
240+
<filter>
241+
<artifact>*:*</artifact>
242+
<excludes>
243+
<exclude>**/module-info.class</exclude>
244+
<exclude>META-INF/MANIFEST.MF</exclude>
245+
</excludes>
246+
</filter>
247+
</filters>
248+
<minimizeJar>true</minimizeJar>
249+
<entryPoints>
250+
<entryPoint>dev.dendrodocs.tool.Main</entryPoint>
251+
</entryPoints>
252+
<shadedClassifierName></shadedClassifierName>
253+
<transformers>
254+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
255+
<mainClass>dev.dendrodocs.tool.Main</mainClass>
256+
</transformer>
257+
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"></transformer>
258+
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"></transformer>
259+
</transformers>
260+
</configuration>
261+
</execution>
262+
</executions>
263+
</plugin>
223264
<plugin>
224265
<groupId>org.apache.maven.plugins</groupId>
225266
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)