Remove jackson dependency from restconf 77/79577/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jan 2019 14:55:58 +0000 (15:55 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jan 2019 14:55:58 +0000 (15:55 +0100)
Restconf actually does not depend on jackson, but a single test
relies on woodstox-core's XML formatting behavior.

Remove odl-jackson dependency and add a temporary woodstox-core
dependency for testing only.

Change-Id: I34038dbaa7807f25fe03de2514eb9b469b4b7979
JIRA: NETCONF-591
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/restconf/odl-restconf-common/pom.xml
features/restconf/odl-restconf-common/src/main/feature/feature.xml
restconf/restconf-nb-bierman02/pom.xml
restconf/restconf-nb-rfc8040/pom.xml

index d21103aaaf9fff3bf16b396748cbbf43ce003cd9..14ed498e320390b7fe1463ac3268b107271164d1 100644 (file)
         </dependency>
 
         <!-- TODO: Remove this when RESTCONF is converted to GSON -->
-        <dependency>
-            <groupId>org.opendaylight.odlparent</groupId>
-            <artifactId>odl-jackson-2.9</artifactId>
-            <version>4.0.8</version>
-            <type>xml</type>
-            <classifier>features</classifier>
-        </dependency>
         <dependency>
             <groupId>org.json</groupId>
             <artifactId>json</artifactId>
index 35984eb7b4bb5e6e00cfe89678b9750d556faf67..17e93e991e2a558aa4f25d5834bc513a67627125 100644 (file)
@@ -9,7 +9,6 @@
 <features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0" name="odl-netconf-${project.version}">
     <feature name="odl-restconf-common" version="${project.version}">
         <feature version="[4,5)">odl-karaf-feat-jetty</feature>
-        <feature version="[4,5)">odl-jackson-2.9</feature>
         <feature version="[2.1,3)">odl-yangtools-export</feature>
     </feature>
 </features>
index 9cd37dd097081336e81e512758fe05a749eacd81..aa361efa5bdd235b401e850728c5d04a19884c85 100644 (file)
       <groupId>net.java.dev.stax-utils</groupId>
       <artifactId>stax-utils</artifactId>
     </dependency>
-    <dependency>
-      <groupId>com.fasterxml.jackson.dataformat</groupId>
-      <artifactId>jackson-dataformat-xml</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.json</groupId>
       <artifactId>json</artifactId>
     </dependency>
 
     <!-- Testing Dependencies -->
+    <!-- FIXME: remove this and fixup the one test which relies on it -->
+    <dependency>
+      <groupId>com.fasterxml.woodstox</groupId>
+      <artifactId>woodstox-core</artifactId>
+      <version>5.0.3</version>
+    </dependency>
     <dependency>
       <groupId>org.glassfish.jersey.test-framework.providers</groupId>
       <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
index ed88e7a2a4b663bc621186fa0c6601d6c56fa10c..8af83e1c193ae38dccdc30865c497ecad7287c32 100644 (file)
       <artifactId>netty-codec-http</artifactId>
     </dependency>
 
-    <dependency>
-      <groupId>com.fasterxml.jackson.dataformat</groupId>
-      <artifactId>jackson-dataformat-xml</artifactId>
-    </dependency>
-
     <dependency>
       <groupId>net.java.dev.stax-utils</groupId>
       <artifactId>stax-utils</artifactId>