Skip to content

Commit 3fb9d4b

Browse files
authored
Build executable jar in demo
1 parent e07b6c1 commit 3fb9d4b

File tree

1 file changed

+28
-0
lines changed
  • standard-maven-template-demo

1 file changed

+28
-0
lines changed

standard-maven-template-demo/pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,34 @@
4949
</compilerArgs>
5050
</configuration>
5151
</plugin>
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-assembly-plugin</artifactId>
55+
<version>3.6.0</version>
56+
<configuration>
57+
<archive>
58+
<manifest>
59+
<mainClass>${mainClass}</mainClass>
60+
</manifest>
61+
<manifestEntries>
62+
<Multi-Release>true</Multi-Release>
63+
</manifestEntries>
64+
</archive>
65+
<descriptorRefs>
66+
<descriptorRef>jar-with-dependencies</descriptorRef>
67+
</descriptorRefs>
68+
<appendAssemblyId>false</appendAssemblyId>
69+
</configuration>
70+
<executions>
71+
<execution>
72+
<id>make-assembly</id> <!-- this is used for inheritance merges -->
73+
<phase>package</phase> <!-- bind to the packaging phase -->
74+
<goals>
75+
<goal>single</goal>
76+
</goals>
77+
</execution>
78+
</executions>
79+
</plugin>
5280
</plugins>
5381
</build>
5482
</project>

0 commit comments

Comments
 (0)