Uses constraint violation javax.annotation

Description

Hello,
I'm trying to use the aem-caravan-jaxrs-sample project (branch develop) on aem 6.4.3
the first installation works correctly, if I restart aem the following error occurs (it also appears with version 6.4.4), the error does not occur on version 6.4.0 (I don't understand what the difference is)

I'm using the local aem jar version with java 8

Can you help me out?

thank you

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 12.04.2019 06:49:09.712 *ERROR* [FelixDispatchQueue] com.adobe.cq.screens.com.adobe.cq.screens.sessions FrameworkEvent ERROR (org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve resource com.day.cq.cq-replication [com.day.cq.cq-replication [244](R 244.1)] because it is exposed to package 'javax.annotation' from resources org.apache.felix.framework [org.apache.felix.framework [0](R 0)] and javax.annotation-api [javax.annotation-api [549](R 549.0)] via two dependency chains. Chain 1: com.day.cq.cq-replication [com.day.cq.cq-replication [244](R 244.1)] import: (osgi.wiring.package=javax.annotation) | export: osgi.wiring.package: javax.annotation org.apache.felix.framework [org.apache.felix.framework [0](R 0)] Chain 2: com.day.cq.cq-replication [com.day.cq.cq-replication [244](R 244.1)] import: (&(osgi.wiring.package=org.apache.jackrabbit.vault.fs.api)(version>=2.4.0)(!(version>=3.0.0))) | export: osgi.wiring.package=org.apache.jackrabbit.vault.fs.api; uses:=javax.annotation org.apache.jackrabbit.vault [org.apache.jackrabbit.vault [136](R 136.1)] import: (osgi.wiring.package=javax.annotation) | export: osgi.wiring.package: javax.annotation javax.annotation-api [javax.annotation-api [549](R 549.0)] Unresolved requirements: [[com.day.cq.cq-replication [244](R 244.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.vault.fs.api)(version>=2.4.0)(!(version>=3.0.0)))]) org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve resource com.day.cq.cq-replication [com.day.cq.cq-replication [244](R 244.1)] because it is exposed to package 'javax.annotation' from resources org.apache.felix.framework [org.apache.felix.framework [0](R 0)] and javax.annotation-api [javax.annotation-api [549](R 549.0)] via two dependency chains. Chain 1: com.day.cq.cq-replication [com.day.cq.cq-replication [244](R 244.1)] import: (osgi.wiring.package=javax.annotation) | export: osgi.wiring.package: javax.annotation org.apache.felix.framework [org.apache.felix.framework [0](R 0)] Chain 2: com.day.cq.cq-replication [com.day.cq.cq-replication [244](R 244.1)] import: (&(osgi.wiring.package=org.apache.jackrabbit.vault.fs.api)(version>=2.4.0)(!(version>=3.0.0))) | export: osgi.wiring.package=org.apache.jackrabbit.vault.fs.api; uses:=javax.annotation org.apache.jackrabbit.vault [org.apache.jackrabbit.vault [136](R 136.1)] import: (osgi.wiring.package=javax.annotation) | export: osgi.wiring.package: javax.annotation javax.annotation-api [javax.annotation-api [549](R 549.0)] Unresolved requirements: [[com.day.cq.cq-replication [244](R 244.1)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.jackrabbit.vault.fs.api)(version>=2.4.0)(!(version>=3.0.0)))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149) at org.apache.felix.framework.Felix.startBundle(Felix.java:2119) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748)

Environment

None

Status

Assignee

Unassigned

Reporter

Stefano Messi

Labels

None

Components

Priority

Major
Configure