Use maven-shade-plugin
The maven-assembly-plugin has a bug that makes packaging very slow.
</configuration>
</plugin>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
<configuration>
- <archive>
- <manifest>
+ <finalName>${project.artifactId}-jar-with-dependencies</finalName>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.yahoo.logserver.Server</mainClass>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
+ </transformer>
+ </transformers>
</configuration>
<executions>
<execution>
- <id>make-assembly</id>
<phase>package</phase>
- <!-- append to the packaging phase. -->
<goals>
- <goal>single</goal>
+ <goal>shade</goal>
</goals>
</execution>
</executions>
