aboutsummaryrefslogtreecommitdiffstats
path: root/appc-directed-graph
diff options
context:
space:
mode:
authorHector Anapan-Lavalle <ha076r@att.com>2017-10-25 18:04:31 -0400
committerPatrick Brady <pb071s@att.com>2017-10-25 23:16:40 -0700
commit7886ffee60cbe975856cc194cc0c1ea674c3f42e (patch)
treed16b85233c2f82592f19cf954623e10890c1048a /appc-directed-graph
parent6eec6d143f350484445a2e03243f397c570f7687 (diff)
Upload dgloader JAR w dependencies to Nexus Repo
This change uses the shade maven plugin to be able to deploy the dg-loader JAR version that carries the dependencies needed to trigger the dg-loader commands appropriately in platform-logic/installer/src/main/scripts/install-converted-dgs.sh Change-Id: I7a0980a29eb63a01b5e31c6a3788f85453cab8e8 Issue-Id: [APPC-287] Signed-off-by: Hector Anapan-Lavalle <ha076r@att.com>
Diffstat (limited to 'appc-directed-graph')
-rw-r--r--appc-directed-graph/dg-loader/provider/pom.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/appc-directed-graph/dg-loader/provider/pom.xml b/appc-directed-graph/dg-loader/provider/pom.xml
index 65be0dc53..0a81425e8 100644
--- a/appc-directed-graph/dg-loader/provider/pom.xml
+++ b/appc-directed-graph/dg-loader/provider/pom.xml
@@ -100,6 +100,7 @@
<Export-Package>org.openecomp.sdnc.dg.loader</Export-Package>
<Import-Package>*</Import-Package>
<DynamicImport-Package>*</DynamicImport-Package>
+ <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
</instructions>
<manifestLocation>${project.basedir}/src/main/resources/META-INF</manifestLocation>
</configuration>
@@ -131,6 +132,36 @@
</execution>
</executions>
</plugin>
+ <!-- Adding this plugin to be able to deploy the dg-loader JAR with dependencies to the Nexus Repo.
+ This is needed to be able to run the java cmds in
+ deployment.git/platform-logic/installer/src/main/scripts/install-converted-dgs.sh -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>2.0</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <shadedClassifierName>jar-with-dependencies</shadedClassifierName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>