Hi all,

What i want to do is generate a bundle where the dependencies needed by my
classes will be provided by embedding jar files in the bundle archive, and
add those jar file to the Bundle-ClassPath attribute. I have generated this
bundle using java's jar command. The bundle works perfectly. Now i am trying
to do similar generation using this maven plug in. 

Here the relevant section of my pom.xml

<configuration>
<instructions>
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
<Bundle-Name>MLBOsgiRemoteDeployment Plug-in</Bundle-Name>
<Bundle-SymbolicName>MLBOsgiRemoteDeployment</Bundle-SymbolicName>
<Bundle-Version>${pom.version}</Bundle-Version>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Bundle-Activator>mlb.osgi.remote.deploy.activator.MLBOsgiRemoteDeploymentBundleActivator</Bundle-Activator>
<Import-Package>mlb.osgi.deploy.service;version="1.0.0",org.osgi.framework;version="1.3.0",org.osgi.util.tracker;version="1.3.3"</Import-Package>
<Private-Package>mlb.osgi.remote.deploy.*</Private-Package>
</instructions>
<configuration>

On using this i get the error "Unresolved references to [<package name>] by
class(es) on the Bundle-Classpath [<list of jar file in the bundle
classpath>] and the bundle archive is not generated.

If i remove the <Import-Package>, the bundle archive is generated with right
right Bundle-ClassPath attribute. However, the plug in adds an
Import-Package attribute to the generated Manifest and that value contains a
ton of package, that i don't want. How do i control the Import package
value? If there is now way, can i at least instruct the maven plug in to
make resolution=optional for all the Import packages.

I am attaching the generated Manifest (
http://www.nabble.com/file/p18018547/MANIFEST-generated.txt
MANIFEST-generated.txt ) and the manifest that i actually need (
http://www.nabble.com/file/p18018547/MANIFEST-needed.txt MANIFEST-needed.txt 

) for your reference.



cheers
amol. 
-- 
View this message in context: 
http://www.nabble.com/Help-with-Felix-Maven-Plugin-%28Embed-Dependency-attribute%29-tp18018547p18018547.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to