Hi Alan,

thanks for the update.

The scope are correct on the dependencies (runtime/compile) ?

Yes, it would be great if you can share your pom and feature, it will help me to reproduce your issue.

Thanks
Regards
JB

On 03/08/2016 09:54 AM, 414n wrote:
HI JB,

as already stated in my previous message, the "standard" feature is
indeed listed both as a maven dependency and as a "bootFeature" in my
karaf-assembly POM.
I didn't mention it previously, but my POM originates from the
karaf-assembly archetype and I did little to no changes to it.
Looking at the POM you linked to, I just tried adding the "eventadmin"
startupFeature and moving my own feature to the "bootFeatures" section
(as suggested by Mike) and a package is indeed produced, but my bundles
are not automatically installed nor started then. Moving my feature back
to the startupFeatures section from the bootFeatures break again the
build with the aforementioned error message.
If it can be useful, I think I can provide two POMs to reproduce the issue.


Alan Alberghini
IOOOTA - a...@iooota.com <mailto:a...@iooota.com>
http://www.iooota.com
https://www.facebook.com/IOOOTA
On 08/03/2016 07:43, jbonofre [via Karaf] wrote:
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é
[hidden email] </user/SendEmail.jtp?type=node&node=4045719&i=0>
http://blog.nanthrax.net
Talend - http://www.talend.com


------------------------------------------------------------------------
If you reply to this email, your message will be added to the
discussion below:
http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Problem-Building-Karaf-with-maven-tp4045152p4045719.html

To unsubscribe from [Karaf-4.0.3] Problem Building Karaf with maven,
click here
<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4045152&code=YWxhbkBpb29vdGEuY29tfDQwNDUxNTJ8NjExMjcwNjA2>.
NAML
<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Problem-Building-Karaf-with-maven-tp4045152p4045722.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