Skip to content
Advertisement

Apache Karaf – Unable to resolve root: missing requirement – caused by: Unable to resolve java-api

I have Apache Karaf 4.0.1 running on a Linux Centos 7 server.

I get the following error:

JavaScript

Any ideas?

I am a novice with apache-karaf/OSGi, so please excuse me if there is pertinent information lacking in this question, I would be glad to add info when suggested.

More info:

I build it using maven with Java1.7. I also tried building it with Java8, but there is no change.

In reference to this part of the error message:

JavaScript

In one of the modules, there is the following in the POM:

JavaScript

Advertisement

Answer

I resolved this by removing these dependencies from the pom:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement