Skip to content

Instantly share code, notes, and snippets.

@matejf
Created November 16, 2017 11:34
Show Gist options
  • Save matejf/55ee928a37a6affb90f040a9fad50bae to your computer and use it in GitHub Desktop.
Save matejf/55ee928a37a6affb90f040a9fad50bae to your computer and use it in GitHub Desktop.
Creating Karaf feature repository with CXF 3.2.0 feature - pax-cdi-features issue.
<?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>features</groupId>
<artifactId>features-repo</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>add-features-to-repo</id>
<phase>generate-resources</phase>
<goals>
<goal>features-add-to-repository</goal>
</goals>
<configuration>
<descriptors>
<!-- List the URLs of required feature repositories here -->
<descriptor>mvn:org.apache.karaf.features/enterprise/4.0.10/xml/features</descriptor>
<!--<descriptor>mvn:org.apache.cxf.karaf/apache-cxf/3.1.14/xml/features</descriptor>-->
<descriptor>mvn:org.apache.cxf.karaf/apache-cxf/3.2.0/xml/features</descriptor>
</descriptors>
<features>
<!-- List features you want in the offline repo here -->
<feature>cxf</feature>
</features>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment