Author: bentmann
Date: Tue Nov 9 12:00:18 2010
New Revision: 1032947
URL: http://svn.apache.org/viewvc?rev=1032947&view=rev
Log:
o Decoupled plugin output from MNG-2961
Modified:
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/AbstractDependencyMojo.java
Modified:
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/AbstractDependencyMojo.java
URL:
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/AbstractDependencyMojo.java?rev=1032947&r1=1032946&r2=1032947&view=diff
==============================================================================
---
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/AbstractDependencyMojo.java
(original)
+++
maven/core-integration-testing/trunk/core-it-support/core-it-plugins/maven-it-plugin-dependency-resolution/src/main/java/org/apache/maven/plugin/coreit/AbstractDependencyMojo.java
Tue Nov 9 12:00:18 2010
@@ -99,9 +99,10 @@ public abstract class AbstractDependency
for ( Iterator it = artifacts.iterator(); it.hasNext(); )
{
Artifact artifact = (Artifact) it.next();
- writer.write( artifact.getId() );
+ String id = getId( artifact );
+ writer.write( id );
writer.newLine();
- getLog().info( "[MAVEN-CORE-IT-LOG] " + artifact.getId()
);
+ getLog().info( "[MAVEN-CORE-IT-LOG] " + id );
}
}
}
@@ -125,6 +126,12 @@ public abstract class AbstractDependency
}
}
+ private String getId( Artifact artifact )
+ {
+ artifact.isSnapshot(); // decouple from MNG-2961
+ return artifact.getId();
+ }
+
/**
* Writes the specified class path elements to the given output file.
*