java-json-tools / json-schema-validator

A JSON Schema validation implementation in pure Java, which aims for correctness and performance, in that order
http://json-schema-validator.herokuapp.com/
Other
1.63k stars 399 forks source link

Getting uses constraint violation Exception while changing version 2.2.6 to 2.2.8 in json-schema-validator #270

Open satishkatiki opened 6 years ago

satishkatiki commented 6 years ago

json-schema-validator 2.2.6 expected javax.annotation 1.3 version where as json-schema-validator 2.2.8 expecting javax.annotation 3.0.0 to 4.0.0.

After changing 2.2.6 to 2.2.8 in com.github.java-json-tools.json-schema-validator it is exposed to javax.annotation package from two resources org.jsr-305 and org.eclipse.osgi via two dependency chains as below.

Could you please help on this to resolve.

g! diag 342

com.github.java-json-tools.json-schema-validator [342] Bundle was not resolved because of a uses constraint violation. org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource com.github.java-json-tools.json-schema-validator [osgi.identity; osgi.identity="com.github.java-json-tools.json-schema-validator"; type="osgi.bundle"; version:Version="2.2.8"] because it is exposed to package 'javax.annotation' from resources org.jsr-305 [osgi.identity; osgi.identity="org.jsr-305"; type="osgi.bundle"; version:Version="3.0.1"] and org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.102.v20160118-1700"; singleton:="true"] via two dependency chains.

Chain 1: com.github.java-json-tools.json-schema-validator [osgi.identity; osgi.identity="com.github.java-json-tools.json-schema-validator"; type="osgi.bundle"; version:Version="2.2.8"] import: (&(osgi.wiring.package=javax.annotation)(&(version>=3.0.0)(!(version>=4.0.0)))) | export: osgi.wiring.package: javax.annotation org.jsr-305 [osgi.identity; osgi.identity="org.jsr-305"; type="osgi.bundle"; version:Version="3.0.1"]

Chain 2: com.github.java-json-tools.json-schema-validator [osgi.identity; osgi.identity="com.github.java-json-tools.json-schema-validator"; type="osgi.bundle"; version:Version="2.2.8"] import: (&(osgi.wiring.package=com.github.fge.jackson)(&(version>=1.8.0)(!(version>=2.0.0)))) export: osgi.wiring.package=com.github.fge.jackson; uses:=com.google.common.base com.github.fge.jackson-coreutils [osgi.identity; osgi.identity="com.github.fge.jackson-coreutils"; type="osgi.bundle"; version:Version="1.8.0"] import: (&(osgi.wiring.package=com.google.common.base)(&(version>=16.0.0)(!(version>=17.0.0))))
export: osgi.wiring.package=com.google.common.base; uses:=javax.annotation

com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="16.0.1"] import: (osgi.wiring.package=javax.annotation) | export: osgi.wiring.package: javax.annotation org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.102.v20160118-1700"; singleton:="true"]