The core packages are provided by the framework, so, you should not
embed them.
Regards
JB
On 09/01/2015 09:34 PM, rcbandit wrote:
Yes, I have in one of my bundles embedded OSGI bundles
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>6.0.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>5.0.1</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Embed-Dependency>*;inline=true</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Import-Package>
org.osgi.framework,
javax.xml.bind
</Import-Package>
<Export-Package>
</Export-Package>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Activator>org.system.activator.Activator</Bundle-Activator>
<Main-Class>org.system.main.Main</Main-Class>
</instructions>
</configuration>
</plugin>
This is because I want to use the bundle as Felix embedded mode and also
when it's deployed in Karaf to deploy bundles from XML file.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Unresolved-requirements-custom-jar-12-R-12-0-osgi-wiring-package-osgi-wiring-package-org-osgi-framew-tp4041134p4042265.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com