o Decoupled plugin output from MNG-2961

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@1032947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-11-09 12:00:18 +00:00
parent dfae567d59
commit ac354cdfcd
1 changed files with 9 additions and 2 deletions

View File

@ -99,9 +99,10 @@ public abstract class AbstractDependencyMojo
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 AbstractDependencyMojo
}
}
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.
*