summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.gitignore3
-rwxr-xr-xpom.xml47
2 files changed, 46 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index fabe495f5..405446e78 100755
--- a/.gitignore
+++ b/.gitignore
@@ -36,3 +36,6 @@ provider/src/main/java/inventory/
sdnc-plugins_bdio.jsonld
blackDuckHubProjectName.txt
blackDuckHubProjectVersionName.txt
+
+#Generated dependencies list
+direct-dependencies.txt
diff --git a/pom.xml b/pom.xml
index abdba44b2..08d7ea2d6 100755
--- a/pom.xml
+++ b/pom.xml
@@ -95,11 +95,50 @@
</executions>
</plugin>
</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>