while (iter.hasNext()) {
AttachedArtifact attached = (AttachedArtifact)iter.next();
Artifact attachedArtifact = createArtifactFromAttached(attached, artifact);
try {
installer.install( attachedArtifact.getFile(), attachedArtifact, localRepo );
}
catch (ArtifactInstallationException e) {
throw new BuildException(
"Error installing attached artifact '" + attachedArtifact.getDependencyConflictId() + "': " + e.getMessage(), e );
}