Uploaded image for project: 'Maven Install Plugin'
  1. Maven Install Plugin
  2. MINSTALL-151

Projects without primary artifacts, but with attachment artifacts fail install

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M1
    • 3.1.1
    • None
    • None

    Description

      I have a module which has a packaging of feature from the karaf-maven-plugin. When running the mvn install command, the following error occurs:

      Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install (default-install) on project <project_name>: NoFileAssignedException: The packaging plugin for this project did not assign a main file to the project but it has attachments. Change packaging to 'pom'. -> [Help 1]
      

      Reverting back to version 2.5.2 made the mvn install command succeed.

      Attachments

        1. minstall-151.zip
          9 kB
          Peter Huffer
        2. minstall-151-example-PeterSchloemer.zip
          1 kB
          Peter Schlömer
        3. mvn-install-fail.zip
          6 kB
          Claudio Clemens

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              peter.huffer Peter Huffer
              Votes:
              7 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: