karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2212) Karaf Maven Plugin fails with pax-http Error
Date Thu, 07 Mar 2013 23:28:15 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596555#comment-13596555
] 

Achim Nierbeck commented on KARAF-2212:
---------------------------------------

This is due to the fact that the pax-web features are in their own features file (repository).
It's known to karaf per default, since it's registered in the org.apache.karaf.features.cfg
as part of the default repository (featuresRepositories). 
This information isn't known to the maven plugin and therefore it fails. You need to add the
Pax-Web feature xml to your pom as dependency and also add it to the descriptors. Same as
if you would add camel features to your project. 
                
> Karaf Maven Plugin fails with pax-http Error
> --------------------------------------------
>
>                 Key: KARAF-2212
>                 URL: https://issues.apache.org/jira/browse/KARAF-2212
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 3.0.0
>         Environment: Ubuntu, RHEL with OpenJDK
>            Reporter: Aritra Chatterjee
>            Assignee: Achim Nierbeck
>
> 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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message