mirror of https://github.com/apache/maven.git
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:
parent
dfae567d59
commit
ac354cdfcd
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue