in core-it-support/core-it-plugins/maven-it-plugin-artifact/src/main/java/org/apache/maven/plugin/coreit/InstallMojo.java [48:66]
public void execute() throws MojoExecutionException {
getLog().info("[MAVEN-CORE-IT-LOG] Installing project artifacts");
try {
if (isPomArtifact()) {
installer.install(pomFile, mainArtifact, localRepository);
} else {
installer.install(mainArtifact.getFile(), mainArtifact, localRepository);
}
if (attachedArtifacts != null) {
for (Artifact attachedArtifact : attachedArtifacts) {
installer.install(attachedArtifact.getFile(), attachedArtifact, localRepository);
}
}
} catch (Exception e) {
throw new MojoExecutionException("Failed to install artifacts", e);
}
}