Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5373

Karaf-maven-plugin fails to create feature file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.2
    • 4.1.3, 4.2.0.M1
    • karaf
    • None
    • Maven 3.5.0, Java 8 update 131, Windows 10

    Description

      In the attached pom.xml, the plugin org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an attempt to create a feature.xml. However, the build (simply mvn clean install) fails with:
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) on project karaf-maven-plugin-bug: The packaging for this project did not assign a file to the build artifact

      There isn't even a target folder created.

      However, if one downgrades the karaf-maven-plugin by running "mvn clean install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is installed into the local .m2. I've also verified this feature is usable.

      Ouput to note when using version 4.0.9:
      [INFO] — maven-install-plugin:2.5.2:install (default-install) @ karaf-maven-plugin-bug —
      [INFO] No primary artifact to install, installing attached artifacts instead.

      Note that this project consist only of a single pom.xml, no additional files.

      Attachments

        1. pom.xml
          1 kB
          Mikael Åsberg

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            Mikael Åsberg Mikael Åsberg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: