diff options
author | gjoranv <gv@oath.com> | 2018-09-12 12:38:04 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-09-12 13:25:19 +0200 |
commit | bb1389490766d3a80ae43b6ab748c88ba2ce2a9d (patch) | |
tree | 786a0d82641867ea8a77cce3b3b79bd627ff1b4f /config-proxy | |
parent | 9f404a93ef9a986c1ef8afb2f05630d97f3dccf5 (diff) |
Use shade plugin instead of assembly.
NOTE: the fat jar will no longer be attached to the artifact.
Diffstat (limited to 'config-proxy')
-rw-r--r-- | config-proxy/pom.xml | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/config-proxy/pom.xml b/config-proxy/pom.xml index 0985eeca6cf..e5498aae5ec 100644 --- a/config-proxy/pom.xml +++ b/config-proxy/pom.xml @@ -87,24 +87,31 @@ </configuration> </plugin> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> - </configuration> - <executions> - <execution> - <id>make-assembly</id> - <phase>package</phase> - <goals> - <goal>single</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <configuration> + <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> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> |