You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2012/11/25 00:51:16 UTC

adding/replacing attached artifacts

Please consider http://jira.codehaus.org/browse/MNG-4013

and then

http://jira.codehaus.org/browse/MNG-3119

My plan under https://jira.codehaus.org/browse/MNG-5387

is to close 3119 as invalid; there's a legitimate use case for adding
'duplicates' and shade should use it.

However, the fix for 4013 isn't much of a fix. It causes the attempt
to add the second (and subsequent) items to fail silently, rather than
to replace the existing.

I think that the net result is that MavenProject.addArtifact should
replace rather than ignore a second call.

Then, the MavenProjectHelper can have the same semantics, and there's
no need to add any functions to that interface.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org