public Artifact setVersion( String version ) { if ( getVersion().equals( version ) ) { return this; } return newInstance( getGroupId(), getArtifactId(), getClassifier(), getExtension(), version, getProperties(), getFile() ); }
public Artifact setProperties( Map<String, String> properties ) { if ( getProperties().equals( properties ) ) { return this; } return newInstance( getGroupId(), getArtifactId(), getClassifier(), getExtension(), getVersion(), copy( properties ), getFile() ); }
public Artifact setFile( File file ) { if ( eq( getFile(), file ) ) { return this; } return newInstance( getGroupId(), getArtifactId(), getClassifier(), getExtension(), getVersion(), getProperties(), file ); }