summaryrefslogtreecommitdiffstats
path: root/logserver
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2019-03-22 15:08:35 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-03-22 15:09:22 +0100
commita8f50d68c90f91070ef05afb3a53e94855196ac0 (patch)
treecc99cf040beffbdc85d34c95094dafefb1dc8b40 /logserver
parent3e267128b2ff413bde6115d3f7d5f16d398c78bc (diff)
Use maven-shade-plugin
The maven-assembly-plugin has a bug that makes packaging very slow.
Diffstat (limited to 'logserver')
-rw-r--r--logserver/pom.xml19
1 files changed, 8 insertions, 11 deletions
diff --git a/logserver/pom.xml b/logserver/pom.xml
index 5f87dd21118..4798d26ea26 100644
--- a/logserver/pom.xml
+++ b/logserver/pom.xml
@@ -62,24 +62,21 @@
</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>