Skip to content

Commit 212e59f

Browse files
committed
fixed jar error
1 parent 2dd8088 commit 212e59f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

pom.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,45 @@
1515
<build>
1616
<plugins>
1717
<plugin>
18-
<groupId>org.apache.maven.plugins</groupId>
1918
<artifactId>maven-compiler-plugin</artifactId>
2019
<version>3.8.1</version>
2120
<configuration>
2221
<source>1.8</source>
2322
<target>1.8</target>
2423
</configuration>
2524
</plugin>
25+
<plugin>
26+
<artifactId>maven-jar-plugin</artifactId>
27+
<version>3.1.2</version>
28+
<executions>
29+
<execution>
30+
<id>default-jar</id>
31+
<phase>none</phase>
32+
</execution>
33+
</executions>
34+
</plugin>
35+
<plugin>
36+
<artifactId>maven-assembly-plugin</artifactId>
37+
<executions>
38+
<execution>
39+
<phase>package</phase>
40+
<goals>
41+
<goal>single</goal>
42+
</goals>
43+
</execution>
44+
</executions>
45+
<configuration>
46+
<archive>
47+
<manifest>
48+
<addClasspath>true</addClasspath>
49+
<mainClass>Main</mainClass>
50+
</manifest>
51+
</archive>
52+
<descriptorRefs>
53+
<descriptorRef>jar-with-dependencies</descriptorRef>
54+
</descriptorRefs>
55+
</configuration>
56+
</plugin>
2657
</plugins>
2758
</build>
2859

0 commit comments

Comments
 (0)