Hi,

if one of your own features does use the wrap url-handler,
make sure you have a dependency on the wrap feature in your feature and
mark it as prerequisite=true

regards, Achim


2016-01-26 19:00 GMT+01:00 Raman Gupta <[email protected]>:

> Here you go:
>
> http://pastebin.com/4F13xSp9
>
> Regards,
> Raman
>
> On 01/26/2016 12:40 PM, Jean-Baptiste Onofré wrote:
> > Can you share your pom.xml ?
> >
> > Thanks,
> > Regards
> > JB
> >
> > On 01/26/2016 06:39 PM, Raman Gupta wrote:
> >> I didn't, but adding those does not help. I also tried adding
> >> slf4j-api >= 1.6.0 as suggested by the error message. Still fails with
> >> the same error. I tried both the pom <dependencies> section as well as
> >> the plugin <dependencies>.
> >>
> >> Regards,
> >> Raman
> >>
> >> On 01/26/2016 12:24 PM, Jean-Baptiste Onofré wrote:
> >>> 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
> >>>>
> >>>
> >
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to