Skip to content

Commit dd9ae23

Browse files
author
realPaulsen
committed
fixed jar-build missing dependencies
1 parent 4f23496 commit dd9ae23

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

pom.xml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,39 @@
1818
<artifactId>jSerialComm</artifactId>
1919
<version>[2.0.0,3.0.0)</version>
2020
</dependency>
21+
<dependency>
22+
<groupId>org.apache.maven.plugins</groupId>
23+
<artifactId>maven-assembly-plugin</artifactId>
24+
<version>3.6.0</version>
25+
<type>maven-plugin</type>
26+
</dependency>
2127
</dependencies>
2228

2329
<build>
2430
<plugins>
2531
<plugin>
2632
<groupId>org.apache.maven.plugins</groupId>
27-
<artifactId>maven-jar-plugin</artifactId>
33+
<artifactId>maven-assembly-plugin</artifactId>
2834
<configuration>
35+
<appendAssemblyId>false</appendAssemblyId> <!--only compiles to jar with dependency-->
36+
<descriptorRefs>
37+
<descriptorRef>jar-with-dependencies</descriptorRef>
38+
</descriptorRefs>
2939
<archive>
3040
<manifest>
31-
<mainClass>
32-
ooo.paulsen.audiocontroller.demo.Demo
33-
</mainClass>
41+
<mainClass>ooo.paulsen.audiocontroller.demo.Demo</mainClass>
3442
</manifest>
3543
</archive>
3644
</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>
3754
</plugin>
3855
</plugins>
3956
</build>

0 commit comments

Comments
 (0)