diff options
author | Timoney, Dan (dt5972) <dtimoney@att.com> | 2019-12-10 09:18:51 -0500 |
---|---|---|
committer | Timoney, Dan (dt5972) <dtimoney@att.com> | 2019-12-10 16:45:15 -0500 |
commit | 94fcbc29eca4b30da5dc259e5b14d26cda8d8373 (patch) | |
tree | 798d599dd0e05e694d7e611c2a4abb4d9b20bb32 | |
parent | 008b52bffbe2bcb4cffd441ea6ac6693a353cf68 (diff) |
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>
-rwxr-xr-x | .gitignore | 3 | ||||
-rw-r--r-- | odlparent/binding-parent/pom.xml | 14 | ||||
-rw-r--r-- | odlparent/bundle-parent/pom.xml | 14 | ||||
-rw-r--r-- | odlparent/feature-repo-parent/pom.xml | 14 | ||||
-rw-r--r-- | odlparent/karaf4-parent/pom.xml | 14 | ||||
-rw-r--r-- | odlparent/mdsal-it-parent/pom.xml | 14 | ||||
-rw-r--r-- | odlparent/odlparent-lite/pom.xml | 14 | ||||
-rw-r--r-- | odlparent/odlparent/pom.xml | 14 | ||||
-rwxr-xr-x | odlparent/setup/src/main/resources/pom-template.xml | 14 | ||||
-rw-r--r-- | odlparent/single-feature-parent/pom.xml | 14 | ||||
-rwxr-xr-x | pom.xml | 54 | ||||
-rwxr-xr-x | springboot/springboot1/pom.xml | 16 | ||||
-rwxr-xr-x | springboot/springboot2/pom.xml | 15 | ||||
-rwxr-xr-x | standalone/pom.xml | 19 |
14 files changed, 229 insertions, 4 deletions
@@ -42,3 +42,6 @@ ExprGrammarLexer.tokens 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 5e3d3870..c668c5b4 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 d730d958..bf17e3cd 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 49d79972..fd86f630 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 61c9d454..edba6efe 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 b0c3c80c..e32511ef 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 f2c312d7..2c0bc4f4 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 9bfef3a6..c6a50a27 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 c0e0c4b5..1f0c35e6 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 8160a831..169a9a5e 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> @@ -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 c6c2aea8..de72343e 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 13633f50..303e2c9c 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 322ede7a..33cfdde2 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> |