in core-it-support/core-it-plugins/maven-it-plugin-project/src/main/java/org/apache/maven/plugin/coreit/BuildRemotePomMojo.java [81:113]
public void execute() throws MojoExecutionException {
Properties props = new Properties();
getLog().info("[MAVEN-CORE-IT-LOG] Building remote POMs");
if (dependencies != null) {
for (Dependency dependency : dependencies) {
Artifact artifact = factory.createArtifactWithClassifier(
dependency.getGroupId(),
dependency.getArtifactId(),
dependency.getVersion(),
dependency.getType(),
dependency.getClassifier());
String id = artifact.getId();
getLog().info("[MAVEN-CORE-IT-LOG] Building " + id);
try {
MavenProject project = builder.buildFromRepository(artifact, remoteRepositories, localRepository);
dump(props, id + ".", project);
} catch (Exception e) {
getLog().warn("Failed to build remote POM for " + artifact.getId(), e);
}
put(props, id + ".file", artifact.getFile());
put(props, id + ".version", artifact.getVersion());
}
}
store(props, propertiesFile);
}