Fix package assembly

This commit is contained in:
Andrea Cavalli 2024-04-22 23:07:48 +02:00
parent c23eaba2aa
commit 3910c96f30
2 changed files with 9 additions and 13 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ tmp-rockserver-db/
.directory
*.iml
hs_err_pid*.log
/dependency-reduced-pom.xml

21
pom.xml
View File

@ -155,26 +155,21 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>it.cavallium.rockserver.core.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>