Thanks, Jean-Babtiste.
I was somehow confused by the 3.x karaf-maven-plugin and 2.x
features-maven-plugin and mixed up the packaging. With the "pom" packaging,
features-maven-plugin generates the features.xml file. Unfortunately, the
file is empty, has no feature:
<?xml version="1.0" encoding="UTF-8"?>
<features>
</features>
The plugin section from my pom.xml:
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
<version>2.3.3</version>
<executions>
<execution>
<id>generate</id>
<phase>generate-resources</phase>
<goals>
<goal>generate-features-xml</goal>
</goals>
<configuration>
<kernelVersion>2.3.3</kernelVersion>
<outputFile>target/features.xml</outputFile>
</configuration>
</execution>
</executions>
</plugin>
I tried 2.3.0 and 2.3.3, still no content being generated.
When the build runs, it prints
[INFO] ...done!
[INFO] Step 2 : No Bundle file supplied for building list of exports
[INFO] ...done!
[INFO] Step 3 : Discovering bundles in Maven dependencies
[INFO] ...done!
[INFO] Step 4 : Generating
/home/radek/dev/proj/cloud-features/target/features.xml
[INFO] ...done!
so I assume the configuration should be OK.
I tried in the same pom.xml to comment out the features- plugin and use
instead the karaf- one (with packaging changed to "feature") and the
produced features.xml contains all the bundles discovered by going through
the maven dependencies.
Any ideas?
Thanks,
Radek
--
View this message in context:
http://karaf.922171.n3.nabble.com/Unknown-packaging-feature-with-karaf-maven-plugin-tp4030220p4030227.html
Sent from the Karaf - User mailing list archive at Nabble.com.