summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2019-12-11 10:57:56 -0500
committerTimoney, Dan (dt5972) <dtimoney@att.com>2019-12-11 10:57:56 -0500
commit4aadd732e162ba6b11f348e758f21f4ff5533e2a (patch)
tree7e286bff20200cc38b5c6da69c87df2a84ceff5d
parent6795925af9187658c44d5b8ced752a917813c4f7 (diff)
Generate dependency list
Generate list of direct dependencies for repository and publish to Nexus. Change-Id: Ie6bbce3c7c976701253a5b34e854e88c79ca0b8c Issue-ID: CCSDK-1986 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
-rw-r--r--.gitignore1
-rwxr-xr-xpom.xml43
2 files changed, 44 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 233d5ebc8..9e3144e7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
target/
target-ide/
yang-gen-sal/
+direct-dependencies.txt
diff --git a/pom.xml b/pom.xml
index c91f6cbf3..1b21bcff7 100755
--- a/pom.xml
+++ b/pom.xml
@@ -67,5 +67,48 @@
</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>
</project>