Hi,

the log feature is probably missing in the pom.xml. Take a look on the default Karaf standard distribution:

https://github.com/apache/karaf/blob/karaf-4.0.x/assemblies/apache-karaf/pom.xml

You can see the default boot features containing log.

For convenience, you can use the standard feature which is a wrap for all standard features.

Regards
JB

On 03/07/2016 06:16 PM, 414n wrote:
Greetings,

it seems I stumbled upon this error too but I cannot find a way out, even
moving bundles to the bootFeatures section does not help.
As soon as at least one of the dependencies in my feature is not a valid
bundle and the wrap feature is added, the build always fails with the error
you reported:
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.4:assembly
(default-assembly) on project karaf-assembly: Unable to build assembly:
Unable to resolve root: missing requirement [root] osgi.identity;
osgi.identity=wrap; type=karaf.feature; version=0;
filter:="(&(osgi.identity=wrap)(type=karaf.feature)(version>=0.0.0))"
[caused by: Unable to resolve wrap/0.0.0: missing requirement [wrap/0.0.0]
osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle;
version="[2.4.5,2.4.5]"; resolution:=mandatory [caused by: Unable to resolve
org.ops4j.pax.url.wrap/2.4.5: missing requirement
[org.ops4j.pax.url.wrap/2.4.5] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))"]]

As you can see, this happens with the latest stable (4.0.4) but also with
the latest snapshot available (4.0.5-SNAPSHOT) as well:
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.5-SNAPSHOT:assembly
(default-assembly) on project karaf-assembly: Unable to build assembly:
Unable to resolve root: missing requirement [root] osgi.identity;
osgi.identity=wrap; type=karaf.feature; version=0;
filter:="(&(osgi.identity=wrap)(type=karaf.feature)(version>=0.0.0))"
[caused by: Unable to resolve wrap/0.0.0: missing requirement [wrap/0.0.0]
osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle;
version="[2.4.6,2.4.6]"; resolution:=mandatory [caused by: Unable to resolve
org.ops4j.pax.url.wrap/2.4.6: missing requirement
[org.ops4j.pax.url.wrap/2.4.6] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))"]]

I thought this might be caused by pax-logging-api not being included, but
AFAICT it's part of the "standard" feature which I indeed added to my
bootFeatures.
Shall we open a bug report about this?




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Problem-Building-Karaf-with-maven-tp4045152p4045714.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to