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

Karaf Maven Plugin fails with pax-http Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.0.0
    • None
    • karaf
    • None
    • Ubuntu, RHEL with OpenJDK

    Description

      Karaf Maven Plugin fails with the following error when trying to create a custom distribution using the karaf-maven-plugin:

      [ERROR] Failed to execute goal
      org.apache.karaf.tooling:karaf-maven-plugin:3.0.0-SNAPSHOT:features-add-to-repository
      (features-add-to-repository) on project apache-karaf: Error populating
      repository: Unable to find the feature 'pax-http' -> [Help 1]

      Sample pom.xml configuration:

      <artifactId>apache-karaf</artifactId>
      <packaging>pom</packaging>
      <name>Custom Karaf Distribution</name>
      <dependencies>
      <dependency>
      <groupId>org.apache.karaf</groupId>
      <artifactId>apache-karaf</artifactId>
      <version>${karaf.version}</version>
      <type>tar.gz</type>
      </dependency>
      </dependencies>

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.karaf.tooling</groupId>
      <artifactId>karaf-maven-plugin</artifactId>
      <executions>
      <execution>
      <id>features-add-to-repository</id>
      <phase>generate-resources</phase>
      <goals>
      <goal>features-add-to-repository</goal>
      </goals>
      <configuration>
      <descriptors>
      <descriptor>
      mvn:org.apache.karaf.features/spring/${karaf.version}/xml/features
      </descriptor>
      </descriptors>
      <features>
      <feature>config</feature>
      <feature>standard</feature>
      <feature>region</feature>
      <feature>package</feature>
      <feature>kar</feature>
      <feature>ssh</feature>
      <feature>management</feature>
      <feature>webconsole</feature>
      <feature>spring</feature>
      <feature>spring-jms</feature>
      <feature>spring-tx</feature>
      </features>
      <repository>target/features-repo</repository>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>

      Attachments

        Activity

          People

            achim_nierbeck Achim Nierbeck
            aritra Aritra Chatterjee
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: