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/.gitignore b/.gitignore
index f9801b8..ebb44b7 100755
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,6 @@
sdnc-core_bdio.jsonld
blackDuckHubProjectName.txt
blackDuckHubProjectVersionName.txt
+
+#Generated dependencies list
+direct-dependencies.txt
diff --git a/odlparent/binding-parent/pom.xml b/odlparent/binding-parent/pom.xml
index 5e3d387..c668c5b 100644
--- a/odlparent/binding-parent/pom.xml
+++ b/odlparent/binding-parent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/bundle-parent/pom.xml b/odlparent/bundle-parent/pom.xml
index d730d95..bf17e3c 100644
--- a/odlparent/bundle-parent/pom.xml
+++ b/odlparent/bundle-parent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/feature-repo-parent/pom.xml b/odlparent/feature-repo-parent/pom.xml
index 49d7997..fd86f63 100644
--- a/odlparent/feature-repo-parent/pom.xml
+++ b/odlparent/feature-repo-parent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/karaf4-parent/pom.xml b/odlparent/karaf4-parent/pom.xml
index 61c9d45..edba6ef 100644
--- a/odlparent/karaf4-parent/pom.xml
+++ b/odlparent/karaf4-parent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/mdsal-it-parent/pom.xml b/odlparent/mdsal-it-parent/pom.xml
index b0c3c80..e32511e 100644
--- a/odlparent/mdsal-it-parent/pom.xml
+++ b/odlparent/mdsal-it-parent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/odlparent-lite/pom.xml b/odlparent/odlparent-lite/pom.xml
index f2c312d..2c0bc4f 100644
--- a/odlparent/odlparent-lite/pom.xml
+++ b/odlparent/odlparent-lite/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/odlparent/pom.xml b/odlparent/odlparent/pom.xml
index 9bfef3a..c6a50a2 100644
--- a/odlparent/odlparent/pom.xml
+++ b/odlparent/odlparent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/setup/src/main/resources/pom-template.xml b/odlparent/setup/src/main/resources/pom-template.xml
index c0e0c4b..1f0c35e 100755
--- a/odlparent/setup/src/main/resources/pom-template.xml
+++ b/odlparent/setup/src/main/resources/pom-template.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>\${project.artifactId}-\${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>\${dependency-list.file}</outputFileName>
+ <outputDirectory>\${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
diff --git a/odlparent/single-feature-parent/pom.xml b/odlparent/single-feature-parent/pom.xml
index 8160a83..169a9a5 100644
--- a/odlparent/single-feature-parent/pom.xml
+++ b/odlparent/single-feature-parent/pom.xml
@@ -182,6 +182,8 @@
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
<jetty.version>9.4.12.v20180830</jetty.version>
<skip.karaf.featureTest>true</skip.karaf.featureTest>
+
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -624,6 +626,18 @@
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
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>
diff --git a/springboot/springboot1/pom.xml b/springboot/springboot1/pom.xml
index c6c2aea..de72343 100755
--- a/springboot/springboot1/pom.xml
+++ b/springboot/springboot1/pom.xml
@@ -100,6 +100,8 @@
<mariadb.connector.version>2.1.1</mariadb.connector.version>
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
+
</properties>
<dependencyManagement>
@@ -577,7 +579,18 @@
</execution>
</executions>
</plugin>
-
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
@@ -992,6 +1005,5 @@
</build>
</profile>
<!-- End of profiles from ONAP oparent -->
-
</profiles>
</project>
diff --git a/springboot/springboot2/pom.xml b/springboot/springboot2/pom.xml
index 13633f5..303e2c9 100755
--- a/springboot/springboot2/pom.xml
+++ b/springboot/springboot2/pom.xml
@@ -127,6 +127,7 @@
<slf4j.version>1.7.25</slf4j.version>
<testng.version>6.11</testng.version>
<tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
</properties>
<dependencyManagement>
@@ -609,7 +610,18 @@
</execution>
</executions>
</plugin>
-
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
@@ -1065,6 +1077,5 @@
</build>
</profile>
<!-- End of profiles from ONAP oparent -->
-
</profiles>
</project>
diff --git a/standalone/pom.xml b/standalone/pom.xml
index 322ede7..33cfdde 100755
--- a/standalone/pom.xml
+++ b/standalone/pom.xml
@@ -60,6 +60,8 @@
<sdc.client.version>1.4.0</sdc.client.version>
<sdc.tosca.version>1.6.3</sdc.tosca.version>
+ <dependency-list.file>direct-dependencies.txt</dependency-list.file>
+
</properties>
<dependencyManagement>
@@ -188,7 +190,24 @@
</repository>
</repositories>
+
<build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>com.github.ferstl</groupId>
+ <artifactId>depgraph-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <graphFormat>text</graphFormat>
+ <outputFileName>${dependency-list.file}</outputFileName>
+ <outputDirectory>${project.basedir}</outputDirectory>
+ <transitiveExcludes>*</transitiveExcludes>
+ <showVersions>true</showVersions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>