diff options
author | Bjørn Christian Seime <bjorncs@oath.com> | 2018-10-17 10:57:25 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@oath.com> | 2018-10-19 12:47:52 +0200 |
commit | ae8781986c93f2e3e1777ba6a9a0e829e282cfca (patch) | |
tree | 25a35272516b6c5bfe6d67206063c25eae649493 /node-maintainer | |
parent | 63c5ed8f8f08c7411214ecbc417451a735aef676 (diff) |
Use maven-shade-plugin to assemble fat jar
A bug in maven-assemble-plugin makes it very slow to assemble jar
containing BouncyCastle
Diffstat (limited to 'node-maintainer')
-rw-r--r-- | node-maintainer/pom.xml | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/node-maintainer/pom.xml b/node-maintainer/pom.xml index f4e1b399cfa..720fbed2977 100644 --- a/node-maintainer/pom.xml +++ b/node-maintainer/pom.xml @@ -92,19 +92,26 @@ </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> + <artifactId>maven-shade-plugin</artifactId> <configuration> - <finalName>node-maintainer</finalName> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> + <finalName>${project.artifactId}-jar-with-dependencies</finalName> + <filters> + <filter> + <!-- Don't include signature files from bouncycastle in uber jar. --> + <artifact>*:*</artifact> + <excludes> + <exclude>META-INF/*.SF</exclude> + <exclude>META-INF/*.DSA</exclude> + <exclude>META-INF/*.RSA</exclude> + </excludes> + </filter> + </filters> </configuration> <executions> <execution> - <id>make-assembly</id> <phase>package</phase> <goals> - <goal>single</goal> + <goal>shade</goal> </goals> </execution> </executions> |