Generate dependency list 24/99424/2
authorTimoney, Dan (dt5972) <dtimoney@att.com>
Tue, 10 Dec 2019 14:56:35 +0000 (09:56 -0500)
committerTimoney, Dan (dt5972) <dtimoney@att.com>
Tue, 10 Dec 2019 21:56:30 +0000 (16:56 -0500)
Generate list of direct dependencies for repository and publish to Nexus.

Change-Id: Ibce710d925b127353a7ca502809514c286969350
Issue-ID: CCSDK-1986
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
.gitignore
pom.xml

index 9244b48..92a91c2 100755 (executable)
@@ -50,3 +50,4 @@ derby.log
 
 # Generated file
 sliPluginUtils/provider/testFileName
+direct-dependencies.txt
diff --git a/pom.xml b/pom.xml
index 959dcbd..2eafc41 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
                                                        </executions>
                                                </plugin>
                                        </plugins>
+                       </build>
 
+               </profile>
 
-
+               <profile>
+                       <id>dependency-list</id>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>com.github.ferstl</groupId>
+                                               <artifactId>depgraph-maven-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>validate</phase>
+                                                               <inherited>false</inherited>
+                                                               <goals>
+                                                                       <goal>aggregate</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>build-helper-maven-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <id>attach-artifacts</id>
+                                                               <phase>package</phase>
+                                                               <inherited>false</inherited>
+                                                               <goals>
+                                                                       <goal>attach-artifact</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <artifacts>
+                                                                               <artifact>
+                                                                                       <file>${dependency-list.file}</file>
+                                                                                       <type>txt</type>
+                                                                                       <classifier>dependencies</classifier>
+                                                                               </artifact>
+                                                                       </artifacts>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
                        </build>
-
                </profile>
 
        </profiles>
+
        <distributionManagement>
                <site>
                        <id>ecomp-site</id>