Skip to content

[MSOURCES-140] Build fails when using install deploy #212

Closed

Description

@jira-importer

Joern opened MSOURCES-140 and commented

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.

Probably caused by MSOURCES-121


Affects: 3.3.0

Issue Links:

  • MSOURCES-121 Check for duplicated addition of the same file
    ("is caused by")

  • MSOURCES-141 Check duplication of attached jar should be configurable to not fail when using the build cache

  • MSOURCES-143 Can't create a source and test jar in Commons using commons-parent

Remote Links:

Activity

  1. jira-importer commented on Dec 12, 2023

    @jira-importer
    Author

    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: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.

  2. jira-importer commented on Dec 27, 2023

    @jira-importer
    Author

    Haonan Hou commented

    I met the same error with v3.3.0. 

  3. added
    bugSomething isn't working
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions