From e71f2bcb58da6e11bdc3e64650f0c15438069765 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 17 Aug 2009 14:58:03 +0000 Subject: [PATCH] o Extended plugin to dump dependency artifacts as well git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@805000 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugin/coreit/TestMojo.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/its/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java b/its/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java index 61ca897a9f..34ffee653e 100644 --- a/its/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java +++ b/its/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/TestMojo.java @@ -45,6 +45,16 @@ public class TestMojo */ private String projectArtifacts; + /** + * The path to the output file for the direct project artifacts, relative to the project base directory. Each line + * of this UTF-8 encoded file specifies an artifact identifier. If not specified, the artifact list will not be + * written to disk. Unlike the test artifacts, the collection of direct project artifacts additionally contains + * those artifacts that do not contribute to the class path. + * + * @parameter expression="${depres.dependencyArtifacts}" + */ + private String dependencyArtifacts; + /** * The path to the output file for the test artifacts, relative to the project base directory. Each line of this * UTF-8 encoded file specifies an artifact identifier. If not specified, the artifact list will not be written to @@ -83,6 +93,7 @@ public class TestMojo try { writeArtifacts( projectArtifacts, project.getArtifacts() ); + writeArtifacts( dependencyArtifacts, project.getDependencyArtifacts() ); writeArtifacts( testArtifacts, project.getTestArtifacts() ); writeClassPath( testClassPath, project.getTestClasspathElements() ); writeClassPathChecksums( testClassPathChecksums, project.getTestClasspathElements() );