The -runsystempackages instruction is a setting used by bnd when it launches an 
OSGi framework at runtime.

Maven is a build tool. Therefore, runtime instructions are not relevant.

Why is the offending package in your Import-Package statement to begin with? It 
seems that you have misunderstood the purpose of the Import-Package 
instruction. You should probably just delete it entirely from the POM and allow 
bnd to do its job normally.

Regards,
Neil


On 16 May 2014 at 20:34:12, Nishanth Chakrapani ([email protected]) wrote:

Hello Team, 
I am using Maven bundle Plugin to create bundles. I am using a system 
class "com.sun.net.ssl.internal.ssl.Provider()". But when i deploy this 
bundle to the server, its showing "unable to resolve" error. I searched in 
the internet and found that i have to use runsystempackages in bnd. But i 
am not sure how to give this value in the pom.xml file under the 
maven-bundle-plugin 

Here is a sample of my plugin definition in pom.xml 
<plugin> 
<groupId>org.apache.felix</groupId> 
<artifactId>maven-bundle-plugin</artifactId> 
<version>${maven-bundle-plugin.version}</version> 
<extensions>true</extensions> 
<configuration> 
<obrRepository>NONE</obrRepository> 
<instructions> 
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> 
<Bundle-Name>${project.artifactId} built from 
Gia-Basic-Archetype</Bundle-Name> 
<Bundle-Version>${project.version}</Bundle-Version> 
<Bundle-Classpath>.</Bundle-Classpath> 
<Export-Package></Export-Package> 
<Import-Package>com.ge.og.ibas.responsemax.api, 
com.ge.og.ibas.responsemax.api.dashboard, 
com.sun.net.ssl.internal.ssl, 
javax.net.ssl, 
com.ge.dsp.core.spi, 
com.ge.dsp.core.spi.annotation, 
org.osgi.framework;version="1.5", 
org.osgi.service.blueprint, 
org.apache.cxf.jaxrs.impl, 
org.apache.cxf.jaxrs.provider, 
org.codehaus.jackson.map, 
org.codehaus.jackson.annotate, 
org.codehaus.jackson.type, 
org.codehaus.jackson.jaxrs, 
javax.ws.rs;version=1.0, 
javax.ws.rs.core;version=1.0, 
javax.xml.bind;version=2.1.0, 
javax.xml.bind.annotation;version=2.1.0, 
javax.xml.bind.annotation.adapters, 
org.springframework.beans.factory;version="${spring.version}", 
org.springframework.beans.factory.annotation;version="${spring.version}"</Import-Package>
 
</instructions> 
</configuration> 
</plugin> 

-- 
*Regards,* 
*Nishanth.C* 
*9962270939* 

Reply via email to