I have a features file I'm trying to valide with the features-maven-plugin
(2.2.5) and having some problems. I have the following feature definition:
<feature name="p141-bundles" version="${project.version}">
<feature version="${cxf.version}">cxf-jaxb</feature>
<bundle>mvn:com.cxtsoftware.p141.bundles/jaxb2-basics-runtime/0.6.3</bundle>
</feature>
When I run the plugin I get the following errors
[INFO] - step 2: Checking if all imports for bundles can be resolved
[WARNING] Failed to validate feature p141-bundles
[WARNING] No export found to match javax.xml.bind (imported by
mvn:com.cxtsoftware.p141.bundles/jaxb2-basics-runtime/0.6.3)
[WARNING] No export found to match javax.xml.bind.annotation.adapters
(imported by mvn:com.cxtsoftware.p141.bundles/jaxb2-basics-runtime/0.6.3)
[WARNING] No export found to match javax.activation (imported by
mvn:com.cxtsoftware.p141.bundles/jaxb2-basics-runtime/0.6.3)
I can solve it by adding <feature
version="${cxf.version}">cxf-specs</feature> as another dependent feature
but I don't understand why I have to do that since cxf-jaxb is already
dependent on cxf-specs. When I fix this I have tons of other problems as
well but this was a simple example.
Is the validate capability of the plugin not working right? For example, I
ran it against the apache-servicemix feature and it failed with tons of "No
export found to match..." errors as well but that feature is clearly valid.
Thanks,
Chris