Switch fat jar packaging to boot repackaging instead of jar shading

This commit is contained in:
BoykoAlex
2016-11-01 18:34:36 -04:00
parent 53e31991bf
commit 6df038a93a
6 changed files with 23 additions and 120 deletions

View File

@@ -109,27 +109,13 @@
</plugin>
<!-- Configure fat jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<outputFile>${project.basedir}/out/fat-jar.jar</outputFile>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.4.1.RELEASE</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
<goal>repackage</goal>
</goals>
</execution>
</executions>