Reputation: 31
I'm learning Karaf, following this tutorial: https://github.com/cschneider/Karaf-Tutorial/tree/master/tasklist
I build it as requested. Then I attempt to start karaf like this:
./bin/karaf
from where I exported binaries. In response I get:
Could not resolve mvn:org.apache.felix/org.apache.felix.framework/5.6.10
What am I doing wrong?
Here's the content of log:
Mar 03, 2018 3:56:01 PM org.apache.karaf.main.Main main
SEVERE: Could not launch framework
java.lang.RuntimeException: Could not resolve mvn:org.apache.felix/org.apache.felix.framework/5.6.10
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.createClassLoader(Main.java:466)
at org.apache.karaf.main.Main.launch(Main.java:253)
at org.apache.karaf.main.Main.main(Main.java:178)
Upvotes: 3
Views: 2793
Reputation: 44422
I had this issue when I used 'mc' to unzip karaf archive file.
During unarchiving I was getting a message about duplicate file in examples directory.
Karaf was getting broken, refusing to start because of missing dependencies.
The issue was resolved when I used tar command line
tar -C /opt/ -xvzf apache-karaf-4.2.9.tar.gz
You can compare directories that were unzipped using different ways below
Upvotes: 3
Reputation: 117
Could not resolve mvn:org.apache.felix/org.apache.felix.framework/5.6.10:
means that the dependencies of the framework Apache Felix are missed from your karaf directory.
To resolve this framework you will need to provide all the dependencies (jar files) or you can simply download the complete installation folder from here
Upvotes: 0
Reputation: 257
It's a kind of black magic.
You have to use -z option while unpacking karaf tar package, like "tar -xvzf ......."
Upvotes: 4