Skip to content

Commit 5b8a91e

Browse files
committed
Create working jar on build
1 parent c40159b commit 5b8a91e

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

sessionize-java-client-demo/pom.xml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,31 @@
7575
</plugin>
7676
<plugin>
7777
<groupId>org.apache.maven.plugins</groupId>
78-
<artifactId>maven-jar-plugin</artifactId>
79-
<version>3.3.0</version>
78+
<artifactId>maven-assembly-plugin</artifactId>
79+
<version>3.5.0</version>
8080
<configuration>
8181
<archive>
8282
<manifest>
83-
<addClasspath>true</addClasspath>
8483
<mainClass>${mainClass}</mainClass>
8584
</manifest>
85+
<manifestEntries>
86+
<Multi-Release>true</Multi-Release>
87+
</manifestEntries>
8688
</archive>
89+
<descriptorRefs>
90+
<descriptorRef>jar-with-dependencies</descriptorRef>
91+
</descriptorRefs>
92+
<appendAssemblyId>false</appendAssemblyId>
8793
</configuration>
94+
<executions>
95+
<execution>
96+
<id>make-assembly</id> <!-- this is used for inheritance merges -->
97+
<phase>package</phase> <!-- bind to the packaging phase -->
98+
<goals>
99+
<goal>single</goal>
100+
</goals>
101+
</execution>
102+
</executions>
88103
</plugin>
89104
</plugins>
90105
</build>

0 commit comments

Comments
 (0)