All,
I'm attempting to use the features-maven-plugin to generate a features.xml file
for my application. In keeping with how the SMX and Camel folks implement this
plugin, I've created a new project called "features" which contains only a
pom.xml file with my directives. It looks similar to this:
<project (followed by the normal maven stuff)>
<modelVersion>4.0.0</modelVersion>
<groupId>myApp</groupId>
<artifactId>features</artifactId>
<version>0.4.0-SNAPSHOT</version>
<parent>
<artifactId>myApp</artifactId>
<groupId>myApp</groupId>
<version>0.4.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<artifactid>myApp</artifactId>
<groupId>moduleOne</groupId>
<version>${pom.version}</version>
</dependency>
<dependency>
<artifactid>myApp</artifactId>
<groupId>moduleTwo</groupId>
<version>${pom.version}</version>
</dependency>
<dependency>
<artifactid>myApp</artifactId>
<groupId>moduleThree</groupId>
<version>${pom.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<groupId>org.apache.felix.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>generate-features-xml</goal>
</goals>
<configuration>
<features>
<feature>moduleOne</feature>
<feature>moduleTwo</feature>
<feature>moduleThree</feature>
</features>
<repository>target/features-repo</repository>
</configuration>
</execution>
</executions>
</plugins>
</build>
</project>
When doing a "mvn clean install", I get the following error:
Unable to create featureures.xml file: java.io.FileNotFoundException:
/home/me/myWorkspace/myApp/features/target/classes/features.xml
So, clearly I'm not doing this right. Can anyone provide some help? The plugin
itself is not documented, so I'm at a bit of a loss.
v/r,
Mike van