You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by David Daniel <da...@gmail.com> on 2016/03/01 18:46:06 UTC

system packages for karaf-maven-plugin validation

How do I let the validator know that I am exposing javax.validation as a
system package.  My error is

Caused by: org.osgi.service.resolver.ResolutionException: Unable to resolve
root: missing requirement [root] osgi.identity;
osgi.identity=org.glassfish.jersey.core.jersey-server; type=osgi.bundle;
version="[2.22.1,2.22.1]"; resolution:=mandatory [caused by: Unable to
resolve org.glassfish.jersey.core.jersey-server/2.22.1: missing requirement
[org.glassfish.jersey.core.jersey-server/2.22.1] osgi.wiring.package;
filter:="(&(osgi.wiring.package=javax.validation)(version>=1.1.0)(!(version>=2.0.0)))"]

I also tried adding the bundle
        <bundle>mvn:javax.validation/validation-api/1.1.0.Final</bundle>

Thanks for any help,
  David

Re: system packages for karaf-maven-plugin validation

Posted by Guillaume Nodet <gn...@apache.org>.
You can add those bundles as libraries

https://github.com/apache/karaf/blob/master/assemblies/apache-karaf/pom.xml#L185-L200

2016-03-01 18:46 GMT+01:00 David Daniel <da...@gmail.com>:

> How do I let the validator know that I am exposing javax.validation as a
> system package.  My error is
>
> Caused by: org.osgi.service.resolver.ResolutionException: Unable to
> resolve root: missing requirement [root] osgi.identity;
> osgi.identity=org.glassfish.jersey.core.jersey-server; type=osgi.bundle;
> version="[2.22.1,2.22.1]"; resolution:=mandatory [caused by: Unable to
> resolve org.glassfish.jersey.core.jersey-server/2.22.1: missing requirement
> [org.glassfish.jersey.core.jersey-server/2.22.1] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.validation)(version>=1.1.0)(!(version>=2.0.0)))"]
>
> I also tried adding the bundle
>         <bundle>mvn:javax.validation/validation-api/1.1.0.Final</bundle>
>
> Thanks for any help,
>   David
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/