in src/main/java/org/apache/maven/resolver/internal/ant/AntRepoSys.java [875:896]
private List<org.eclipse.aether.artifact.Artifact> toArtifacts( Task task, RepositorySystemSession session,
Pom pom, Artifacts artifacts )
{
Model model = pom.getModel( task );
File pomFile = pom.getFile();
final List<org.eclipse.aether.artifact.Artifact> results = new ArrayList<>();
org.eclipse.aether.artifact.Artifact pomArtifact =
new DefaultArtifact( model.getGroupId(), model.getArtifactId(), "pom", model.getVersion() ).setFile( pomFile );
results.add( pomArtifact );
for ( Artifact artifact : artifacts.getArtifacts() )
{
org.eclipse.aether.artifact.Artifact buildArtifact =
new DefaultArtifact( model.getGroupId(), model.getArtifactId(), artifact.getClassifier(),
artifact.getType(), model.getVersion() ).setFile( artifact.getFile() );
results.add( buildArtifact );
}
return results;
}