Hi all,
I have some troubles to build a WAR bundle under maven
with maven-bundle-plugin 2.0.1 and maven-war-plugin.
I have used:
<Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
<Embed-Transitive>true</Embed-Transitive>
<Embed-Directory>WEB-INF/lib</Embed-Directory>
<Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
the maven-bundle-plugin produces the right Bundle-Classpath in the
manifest with all the jars of my maven dependencies. The result is fully
compatible with the war packaging.
Now, I want to place some packages coming from my embedded dependencies
in the Export-Package (I need to expose a package containing annotations
possibly used by other bundles (with DynamicImport- or
resolution:=optional imports)).
When I place these packages in the <Export-Package> directive of
maven-bundle-plugin, they are not taken into account and won't
appear in the Export-Package: manifest directive.
Is there a mean to force what is specified in <Export-Package> to be
written in the produced manifest ?
I suspect that it is linked to the Warnings emitted by the
maven-bundle-plugin complaining about the absence of the dependencies.
[WARNING] Warning in manifest ... No sub JAR or directory
WEB-INF/lib/...
It seems normal to me, as the manifest is generated before the war
layout is constructed.
Does someone have some workaround ?
Best regards
--
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]