jaxb-api should be scope=compile 90/76790/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Oct 2018 11:26:15 +0000 (13:26 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Oct 2018 11:59:20 +0000 (13:59 +0200)
Keeping scope=provided breaks downstream tests with JDK9+,
hence we need to rework the dependencies to make sure we always
pull jaxb-api, but we also need to exclude it from odl-yangtools-data
feature, because it is provided by Karaf.

Change-Id: Id09281c89a74c3d6c780179dfa21ced545318ba1
JIRA: YANGTOOLS-906
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit eeb3076563314a67ccbe2d083dede2051d12e060)

features/odl-yangtools-data/pom.xml
yang/yang-data-impl/pom.xml

index a55d95b1a384ab43c181195d7b317eb7d8a87583..b6cccd2b88d1484a8a117c7fc25739db736a4867 100644 (file)
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-data-impl</artifactId>
+            <exclusions>
+                <exclusion>
+                    <!-- jaxb-api is providided by karaf boot classpath -->
+                    <groupId>javax.xml.bind</groupId>
+                    <artifactId>jaxb-api</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
index 3efc4438c18f1dba20847847c2a0553967d5d6ad..b68a0e3140692f697638370502b8e119f90854d0 100644 (file)
             <groupId>javax.xml.bind</groupId>
             <artifactId>jaxb-api</artifactId>
             <version>2.2.1</version>
-            <scope>provided</scope>
         </dependency>
 
         <dependency>