I am trying to automatically generate Apache Karaf's (2.3.0) feature desscriptor file (features.xml).
From Karaf's doc I have learned that I can use the "features" packaging.
my pom.xml
<project>
...
<packaging>feature</packaging>
<dependencies>
<dependency>
<groupId>org.apache.jclouds</groupId>
<artifactId>jclouds-core</artifactId>
<scope>provided</scope>
<version>${jclouds.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>${karaf.version}</version>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>true</aggregateFeatures>
</configuration>
</plugin>
</plugins>
</build>
</project>
But mvn clean install
complains:
Unknown packaging: feature
I have also tried to use the features-maven-plugin
, but I get the same result.