Skip to content

Commit a8df40f

Browse files
committed
prog: fixed error in Creating Jar File
1 parent 9eccac5 commit a8df40f

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

pom.xml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,24 @@
3434
</plugin>
3535
<plugin>
3636
<groupId>org.apache.maven.plugins</groupId>
37-
<artifactId>maven-jar-plugin</artifactId>
38-
<version>3.2.0</version>
39-
<configuration>
40-
<archive>
41-
<manifest>
42-
<mainClass>server.Main</mainClass>
43-
</manifest>
44-
</archive>
45-
</configuration>
37+
<artifactId>maven-shade-plugin</artifactId>
38+
<version>3.2.4</version>
39+
<executions>
40+
<execution>
41+
<phase>package</phase>
42+
<goals>
43+
<goal>shade</goal>
44+
</goals>
45+
<configuration>
46+
<transformers>
47+
<transformer
48+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
49+
<mainClass>Main</mainClass>
50+
</transformer>
51+
</transformers>
52+
</configuration>
53+
</execution>
54+
</executions>
4655
</plugin>
4756
</plugins>
4857
</build>

0 commit comments

Comments
 (0)