public Artifact build()
{
ArtifactReference ref = new ArtifactReference();
- ref.setArtifactId( artifactMetadata.getProject() );
+ ref.setArtifactId( artifactMetadata.getId() );
ref.setGroupId( artifactMetadata.getNamespace() );
ref.setVersion( artifactMetadata.getVersion() );
String extension = FilenameUtils.getExtension( file.getName() );
Artifact artifact = new Artifact( ref.getGroupId(), ref.getArtifactId(), ref.getVersion() );
+ artifact.setRepositoryId( artifactMetadata.getRepositoryId() );
artifact.setClassifier( classifier );
artifact.setPackaging( type );
artifact.setFileExtension( extension );
Artifact actual = list.get( 0 );
assertEquals( artifact.getNamespace(), actual.getGroupId() );
assertEquals( artifact.getId(), actual.getArtifactId() );
- assertEquals( artifact.getProject(), actual.getGroupId() );
+ // olamy test has no more sense as we reuse an other object now
+ //assertEquals( artifact.getProject(), actual.getGroupId() );
assertEquals( artifact.getRepositoryId(), actual.getRepositoryId() );
assertEquals( artifact.getVersion(), actual.getVersion() );
assertEquals( TEST_TYPE, actual.getPackaging() );