Generate dependency list
Generate list of direct dependencies for repository and publish to Nexus.
Change-Id: I9914756ddf8fe1dbab9f48d4de9249c319d28fc0
Issue-ID: CCSDK-1986
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
diff --git a/pom.xml b/pom.xml
index 3482969..556e0cd 100755
--- a/pom.xml
+++ b/pom.xml
@@ -34,6 +34,60 @@
<onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
</properties>
+ <profiles>
+ <profile>
+ <id>dependency-list</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>direct-dependencies.txt</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ <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>${project.basedir}/direct-dependencies.txt</file>
+ <type>txt</type>
+ <classifier>dependencies</classifier>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
<build>
<plugins>
<plugin>