Hi Raman,

Can you check if standard feature dependency is present in the pom.xml and with compile as scope ?

Basically, you should have:

        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>framework</artifactId>
            <version>4.0.4</version>
            <type>kar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.features</groupId>
            <artifactId>standard</artifactId>
            <version>4.0.4</version>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>

in your pom.xml.

Is it the case ?

Thanks,
Regards
JB

On 01/26/2016 06:18 PM, Raman Gupta wrote:
I am trying to use karaf-maven-plugin version 4.0.4 to verify a
feature, but always get the following error:

Message: 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)))"]]

It seems that the pax wrap feature is not being loaded by the verifier
(wrap is used in my features.xml).

I don't specify a custom config.properties, so the default is being
used, which should load the wrap feature.

Any ideas?

Regards,
Raman Gupta


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to