Upload dgloader JAR w dependencies to Nexus Repo 35/20635/2
authorHector Anapan-Lavalle <ha076r@att.com>
Wed, 25 Oct 2017 22:04:31 +0000 (18:04 -0400)
committerPatrick Brady <pb071s@att.com>
Thu, 26 Oct 2017 06:16:40 +0000 (23:16 -0700)
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>
appc-directed-graph/dg-loader/provider/pom.xml

index 65be0dc..0a81425 100644 (file)
                         <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>
                     </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>