diff options
author | gjoranv <gv@oath.com> | 2018-06-14 01:48:21 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-06-14 01:48:21 +0200 |
commit | 7f979994feacee14734192c76d563295840243b9 (patch) | |
tree | 161615a129fd0b5e4cbf7cf946b010f18456902a /vespaclient-java | |
parent | 8ec25d827c1cefa65d23b34a00284e1558bb1164 (diff) |
Use shade plugin instead of assembly.
NOTE: the fat jar will no longer be attached to the artifact.
Diffstat (limited to 'vespaclient-java')
-rw-r--r-- | vespaclient-java/pom.xml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/vespaclient-java/pom.xml b/vespaclient-java/pom.xml index dbb48c93f39..6cfac47482f 100644 --- a/vespaclient-java/pom.xml +++ b/vespaclient-java/pom.xml @@ -84,18 +84,27 @@ </configuration> </plugin> <plugin> - <artifactId>maven-assembly-plugin</artifactId> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> <configuration> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> + <finalName>${artifactId}-jar-with-dependencies</finalName> + <filters> + <filter> + <!-- Don't include signature files in uber jar (most likely from bouncycastle). --> + <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> |