Posts Maven: error due to attempt to deploy `sources` artifact twice
Post
Cancel

Maven: error due to attempt to deploy `sources` artifact twice

Unable to get rid of the 400 error when running a build to deploy your artifact to a maven repository? Have you read about how the sources:jar goal is executed twice and then tried overriding that behavior? Still not working?

Well, if you're like me and you are blindly running your build from Netbeans, you might want to verify that you're not executing both the install and deploy goals. Run them separately and your artifact should be uploaded to your repo without issue. :)
This post is licensed under CC BY 4.0 by the author.