views:

13

answers:

0

Perhaps I am missing something simple.

I am looking here: http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

and here: http://wiki.ops4j.org/display/ops4j/Getting+the+benefits+of+maven-bundle-plugin+in+other+project+types

I would like to a export a package in a transitively-included JAR. However, no matter what I do, I seem to get:

[WARNING] Warning in manifest for org.openmrs.web:openmrs-webapp:war:1.8.0-SNAPSHOT : No sub JAR or directory WEB-INF/classes
...
[WARNING] Warning in manifest for org.openmrs.web:openmrs-webapp:war:1.8.0-SNAPSHOT : No sub JAR or directory WEB-INF/lib/spring-expression-3.0.2.RELEASE.jar
...
[WARNING] Warning in manifest for org.openmrs.web:openmrs-webapp:war:1.8.0-SNAPSHOT : Superfluous export-package instructions: [org.springframework.*]

The MANIFEST.MF has correct classpath:

Bundle-ClassPath: .,WEB-INF/classes,WEB-INF/lib/antlr-runtime-3.2.jar,
 WEB-INF/lib/stax-api-1.0.1.jar,WEB-INF/lib/spring-beans-3.0.2.RELEASE
 .jar,WEB-INF/lib/request-1.0.1.jar,WEB-INF/lib/openmrs-api-1.8.0-SNAP
 SHOT.jar,WEB-INF/lib/jstl-1.1.2.jar,WEB-INF/lib/stax-1.2.0.jar,WEB-IN
 F/lib/velocity-1.6.2.jar,WEB-INF/lib/saxon-dom-8.7.jar,WEB-INF/lib/co

but I am guessing the above errors come from the way we are running the plug-in during process-classes. I would like to run the plug-in instead when the target/openmrs/WEB-INF/... folder already exists.

Is there an appropriate goal to do this?

Thank you Yours Misha