{
MavenProjectHelper helper = (MavenProjectHelper) lookup( MavenProjectHelper.ROLE );
MavenProject project = getMavenProject();
if ( attached.getClassifier() != null )
{
helper.attachArtifact( project, attached.getType(), attached.getClassifier(), attached.getFile() );
}
else
{
helper.attachArtifact( project, attached.getType(), attached.getFile() );
}