Skip to content

Commit 84b132b

Browse files
committed
Add Maven Assembly Plugin configuration for creating executable JAR with dependencies
1 parent d532421 commit 84b132b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,30 @@
7373
<docencoding>UTF-8</docencoding>
7474
</configuration>
7575
</plugin>
76+
<plugin>
77+
<groupId>org.apache.maven.plugins</groupId>
78+
<artifactId>maven-assembly-plugin</artifactId>
79+
<version>3.6.0</version>
80+
<configuration>
81+
<descriptorRefs>
82+
<descriptorRef>jar-with-dependencies</descriptorRef>
83+
</descriptorRefs>
84+
<archive>
85+
<manifest>
86+
<mainClass>de.htw_berlin.fb4.examples.App</mainClass>
87+
</manifest>
88+
</archive>
89+
</configuration>
90+
<executions>
91+
<execution>
92+
<id>make-assembly</id>
93+
<phase>package</phase>
94+
<goals>
95+
<goal>single</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
76100
</plugins>
77101
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
78102
<plugins>

0 commit comments

Comments
 (0)