aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammad Salehe <salehe@cs.toronto.edu>2018-11-26 19:31:58 -0500
committerMohammad Salehe <salehe@cs.toronto.edu>2018-12-22 15:07:10 -0500
commit68b7189e50158c95b9c79b0395d121450f117ab3 (patch)
tree95cbb167a5db0c78cbd38d9af1124e21799265d4
parent017c075045e138616f98d0804f7bfc8190c40086 (diff)
Add shade plugin to maven pom.xml
Add shade plugin to maven pom.xml to be able to create fat jars Change-Id: I2ed41cfee6a7fe088b4072fed11d04c36724c730 Issue-ID: MUSIC-148 Signed-off-by: Mohammad Salehe <salehe@cs.toronto.edu>
-rwxr-xr-xpom.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 6d5bd06b..59958c95 100755
--- a/pom.xml
+++ b/pom.xml
@@ -139,6 +139,40 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <transformers>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+ <resource>META-INF/spring.handlers</resource>
+ </transformer>
+ <transformer
+ implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
+ <resource>META-INF/spring.factories</resource>
+ </transformer>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+ <resource>META-INF/spring.schemas</resource>
+ </transformer>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
+ />
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <mainClass>org.onap.music.testruns.ComparisonPoints1</mainClass>
+ </transformer>
+ </transformers>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>