Description
According to http://karaf.apache.org/manual/2.2.8/developers-guide/custom-distribution.html :
<dependency> <groupId>org.apache.karaf</groupId> <artifactId>apache-karaf</artifactId> <version>2.2.8</version> <type>xml</type> <classifier>features</classifier> </dependency>
However, the artifact cannot be found in Maven central.
Probable workaround :
This seems to be the closest relevant artifact. I'm trying it now, but I'm yet not sure it will work...
<dependency> <groupId>org.apache.karaf.assemblies.features</groupId> <artifactId>standard</artifactId> <version>${karaf.version}</version> <type>xml</type> <classifier>features</classifier> </dependency>
plugins section :
<plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>features-maven-plugin</artifactId> <version>${karaf.version}</version> <executions> <execution> <id>add-features-to-repo</id> <phase>generate-resources</phase> <goals> <goal>add-features-to-repo</goal> </goals> <configuration> <descriptors> <descriptor>mvn:org.apache.karaf.assemblies.features/standard/${karaf.version}/xml/features</descriptor> <descriptor>file:${project.basedir}/target/classes/soluvas-content-features.xml</descriptor> </descriptors> <features> <feature>soluvas-content-feature</feature> </features> </configuration> </execution> </executions> </plugin>
Attachments
Issue Links
- is related to
-
KARAF-1682 Custom distribution section of dev guide is outdates
- Resolved