summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2019-12-12 16:18:21 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-12 16:18:21 +0000
commitb0211411c5165bbd5293f0306cd894b60aae79df (patch)
treef996afa4e3f37c90bb702cc30a8e635032eabac2
parentd4fadc988246eb172ce8333bb3a06443591c5f19 (diff)
parentdc863f4c9af58ffcd902e16467365a17b647a42c (diff)
Merge "Generate dependency list"
-rw-r--r--.gitignore2
-rw-r--r--pom.xml44
2 files changed, 45 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 48621bc4b..b53daa4ee 100644
--- a/.gitignore
+++ b/.gitignore
@@ -156,3 +156,5 @@ MacOS
**/application/blueprints
/target/
+# Generated dependency list
+direct-dependencies.txt
diff --git a/pom.xml b/pom.xml
index 1e2f62f79..65ee5c18a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -192,6 +192,48 @@ limitations under the License.
<format.skipExecute>false</format.skipExecute>
</properties>
</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>