Skip to content

[MJAR-253] Since 3.0.0 builds fail with You have to use a classifier to attach supplemental artifacts to the project instead of replacing them. #404

@jira-importer

Description

@jira-importer

c opened MJAR-253 and commented

See also:

https://stackoverflow.com/questions/40964500/maven-jar-plugin-3-0-2-error-you-have-to-use-a-classifier-to-attach-supplementa

https://issues.apache.org/jira/browse/MJAR-198?focusedCommentId=16420958&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16420958

https://issues.apache.org/jira/browse/MJAR-198?focusedCommentId=16516772&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16516772

Builds where multiple jars were created with different names using the finalName field (for example to create jars to put together in an assembly) are failing since version 3.0.0 of the plugin.

Apparently cause they now require a classifier field to be set:
You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.

The problem with fixing this by setting a classifier is that it gets added after the finalName field, including a dash, which means the final jar has the wrong name.

 


Affects: 3.0.0, 3.0.1, 3.0.2, 3.1.0

Issue Links:

  • MJAR-198 jar:jar without classifier replaces default jar
    ("is caused by")

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions