pom.xml <http://karaf.922171.n3.nabble.com/file/n4043568/pom.xml>  
my-feature-1.xml
<http://karaf.922171.n3.nabble.com/file/n4043568/my-feature-1.xml>  

Hi - have been evaluating Karaf 4.0.3 as a platform to host our company's
mixed java, scala, clojure modules.  I am relatively new to OSGI.  I wanted
to try to create a simple feature consisting of some Java deps using the
karaf-maven-plugin and install it into Karaf.  The pom (attached) will 'mvn
install' just fine and I can easily add the feature repo within Karaf. 
Installing the feature yields dependency errors (steps below).  Is manual
intervention expected when working with 3rd party dependencies and I am
building the feature the right way?  And I'm not sure I understand what
requirement is missing in the last error?

thx!

karaf@root()> feature:repo-add mvn:com.company/my-feature/1.0.0/xml/features
Adding feature url mvn:com.company/my-feature/1.0.0/xml/features

karaf@root()> feature:install my-feature
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=my-feature; type=karaf.feature;
version="[1.0.0,1.0.0]";
filter:="(&(osgi.identity=my-feature)(type=karaf.feature)(version>=1.0.0)(version<=1.0.0))"
[caused by: Unable to resolve my-feature/1.0.0: missing requirement
[my-feature/1.0.0] osgi.identity; osgi.identity=slf4j.api; type=osgi.bundle;
version="[1.7.7,1.7.7]"; resolution:=mandatory [caused by: Unable to resolve
slf4j.api/1.7.7: missing requirement [slf4j.api/1.7.7] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]]

karaf@root()> bundle:install mvn:org.slf4j/slf4j-log4j12/1.6.0
Bundle ID: 53

karaf@root()> feature:install my-feature
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=my-feature; type=karaf.feature;
version="[1.0.0,1.0.0]";
filter:="(&(osgi.identity=my-feature)(type=karaf.feature)(version>=1.0.0)(version<=1.0.0))"
[caused by: Unable to resolve my-feature/1.0.0: missing requirement
[my-feature/1.0.0] osgi.identity; osgi.identity=avro-ipc; type=osgi.bundle;
version="[1.7.7,1.7.7]"; resolution:=mandatory [caused by: Unable to resolve
avro-ipc/1.7.7: missing requirement [avro-ipc/1.7.7] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.jboss.netty.bootstrap)(version>=3.4.0))"]]

karaf@root()> bundle:install mvn:io.netty/netty/3.4.0.Final
Bundle ID: 55

karaf@root()> feature:install my-feature
Error executing command: Resource has no uri

karaf@root()> feature:install my-feature
Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=my-feature; type=karaf.feature;
version="[1.0.0,1.0.0]";
filter:="(&(osgi.identity=my-feature)(type=karaf.feature)(version>=1.0.0)(version<=1.0.0))"
[caused by: Unable to resolve my-feature/1.0.0: missing requirement
[my-feature/1.0.0] osgi.identity;
osgi.identity=org.xerial.snappy.snappy-java; type=osgi.bundle;
version="[1.0.5,1.0.5]"; resolution:=mandatory [caused by: Unable to resolve
org.xerial.snappy.snappy-java [65](R 65.0): missing requirement
[org.xerial.snappy.snappy-java [65](R 65.0)] osgi.native;
(|(&(&(osgi.arch=x86_64)(osgi.os=win32)))(&(&(osgi.arch=x86)(osgi.os=win32)))(&(&(osgi.arch=x86)(osgi.os=macosx)))(&(&(osgi.arch=x86_64)(osgi.os=macosx)))(&(&(osgi.arch=x86_64)(osgi.os=linux)))(&(&(osgi.arch=x86)(osgi.os=linux)))(&(&(osgi.arch=arm)(osgi.os=linux))))]]




--
View this message in context: 
http://karaf.922171.n3.nabble.com/karaf-maven-plugin-and-dependency-resolution-tp4043568.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to