Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-242

When building an empty project with mvn clean install deploy it will fail because it executes maven-jar-plugin twice with "have to use classifier" error.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 3.0.0
    • None
    • None
    • None

    Description

      This issues should never happen because who has empty projects, well our project had a few, so I ran across this issue when running mvn clean install.

      "You have to use a classifier to attach supplemental artifacts to the project instead of replacing"

      I have attached the build log and an example pom that can reproduce the error, assuming you updated the distributionManagement section with an actual Maven Repository.

      Attachments

        1. empty-project-build.log
          8 kB
          Daniel Cruver
        2. pom.xml
          1 kB
          Daniel Cruver

        Activity

          People

            rfscholte Robert Scholte
            ddcruver Daniel Cruver
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: