osgi - Adding Embeded-Dependency in maven -


actually when build project deploys bundle running osgi console. bundle in installed state , shows red alert commons-net bundle can not find.

one way of solving problem install bundle running osgi framework explicitly.

another way adding embeded-dependency maven. approach not working. added embeded-dependency instruction tag in maven-build-plugin. didn't show error.

please let me know if suggestions.

embeded-dependency did not show error can place instructions. if key-value pair not known inserted manifest.mf is. try writing embed-dependency, should make work.

a example following (how created hibernate bundle ourselves):

<plugin>     <groupid>org.apache.felix</groupid>     <artifactid>maven-bundle-plugin</artifactid>     <extensions>true</extensions>     <configuration>         <instructions>             <bundle-symbolicname>${project.artifactid}</bundle-symbolicname>             <_exportcontents>                 !org.hibernate.validator.*,                 org.hibernate.*;-noimport:=true,             </_exportcontents>             <import-package>                 javax.persistence*;version="1.1.0",                 javax.naming*,                 javax.sql,                 javax.transaction*;version="1.1.0",                 javax.xml.stream.*,                 javax.xml.*,                 org.slf4j,                 org.w3c.dom,                 org.xml.sax*,                 antlr.*,                 org.jboss.logging.*,                 org.dom4j*,                 *;resolution:=optional             </import-package>             <embed-dependency>                 groupid=org.hibernate;artifactid=hibernate-core,                 groupid=org.hibernate;artifactid=hibernate-entitymanager,                 groupid=org.hibernate.common;artifactid=hibernate-commons-annotations             </embed-dependency>         </instructions>     </configuration> </plugin> 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -