Hi Greg,

Greg Sandell wrote:
> I have a call to maven-deploy-plugin bound to package phase that works
> correctly when I call "maven clean package" but if I call "maven clean
> deploy" I get:
> 
> "java.lang.IllegalStateException: Cannot add two different pieces of
> metadata for: project com.thomsonreuters.images:icon-Remove"
> 
> (We are using maven-deploy-plugin to push an image file,
> icon-Remove-1.0.gif, to our maven repo server, Artifactory.)
> 
> I'm just wondering if anybody can explain what Maven is tripping over.  

not sure about that.

But you may want to look at the build-helper:attach-artifact goal
<http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html>
to push your image. This might be closer to the Maven Way of doing things.

Hope this helps.

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to