We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eccac5 commit a8df40fCopy full SHA for a8df40f
1 file changed
pom.xml
@@ -34,15 +34,24 @@
34
</plugin>
35
<plugin>
36
<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>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.2.4</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <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>
55
56
</plugins>
57
</build>
0 commit comments