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

<packaging>kar</packaging> fails to attach artifact

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.2.11, 2.3.2, 2.4.0, 3.0.0
    • Component/s: karaf-kar
    • Labels:
    • Environment:

      maven 3.0.5

      Description

      Maven kar packaging is broken, after KARAF-1853. See sample pom.xml and maven output snippet:

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
      
      
          <groupId>com.stuff</groupId>
          <artifactId>stuff-kar</artifactId>
          <version>1.9.0-SNAPSHOT</version>
          <packaging>kar</packaging>
      
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.karaf.tooling</groupId>
                      <artifactId>karaf-maven-plugin</artifactId>
                      <version>3.0.0-SNAPSHOT</version>
                      <extensions>true</extensions>
                  </plugin>
              </plugins>
          </build>
      </project>
      
      [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-create-kar (default-features-create-kar) on project stuff-kar:
       Execution default-features-create-kar of goal org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-create-kar failed:
       For artifact {com.stuff:stuff-kar:1.9.0-SNAPSHOT:kar}:
       An attached artifact must have a different ID than its corresponding main artifact. -> [Help 1]
      

        Activity

        Hide
        tnarake Timo Naroska added a comment -
        • additional integration-tests
        • archetype uses kar-packaging again
        Show
        tnarake Timo Naroska added a comment - additional integration-tests archetype uses kar-packaging again
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        I'm going to check if the same issue doesn't affect the features-maven-plugin (from Karaf 2.2.x, 2.3.x, 2.x).

        Show
        jbonofre Jean-Baptiste Onofré added a comment - I'm going to check if the same issue doesn't affect the features-maven-plugin (from Karaf 2.2.x, 2.3.x, 2.x).
        Show
        jbonofre Jean-Baptiste Onofré added a comment - Fixed on trunk: http://svn.apache.org/viewvc?view=revision&revision=1459114

          People

          • Assignee:
            jbonofre Jean-Baptiste Onofré
            Reporter:
            tnarake Timo Naroska
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development