You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MSOURCES-140] Build fails when using install deploy #212
By configuration maven-source-plugin is bound to verify phase.
When executing commands like mvn install deploy, which includes phase verify 2 times, the build fails with error "We have duplicated artifacts attached." - it worked with 3.2.1
When just using mvn deploy it works.
I know install and deploy together are redundant but in many build pipelines it is used that way and maven as such also allows the combination.
This one is also a bit of a ticking time bomb. Just ran into an issue where all our normal builds (both local and CI/CD) were running fine. But trying to go through the maven release process fails at the mvn release:perform step due to this duplicate check (not sure what the release plugin is doing to trigger this)
So there's likely to be a lot of people who upgrade the plugin and don't encounter the problem until they actually next make a release.
Activity
jira-importer commentedon Dec 12, 2023
Rob Vesse commented
This one is also a bit of a ticking time bomb. Just ran into an issue where all our normal builds (both local and CI/CD) were running fine. But trying to go through the maven release process fails at the
mvn release:performstep due to this duplicate check (not sure what the release plugin is doing to trigger this)So there's likely to be a lot of people who upgrade the plugin and don't encounter the problem until they actually next make a release.
jira-importer commentedon Dec 27, 2023
Haonan Hou commented
I met the same error with v3.3.0.