CONTROLLER-1764: avoid refreshes 33/65933/5
authorStephen Kitt <skitt@redhat.com>
Mon, 27 Nov 2017 16:25:18 +0000 (17:25 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 29 Jan 2018 18:50:58 +0000 (18:50 +0000)
odl-mdsal-trace can no longer be installed with Karaf 4, because of a
number of bundle refreshes which result in the datastore restarting
while changing classloaders, resulting in chaos. This patch enforces a
number of optional dependencies, avoiding the refreshes.

Change-Id: I8f5c75c454c40a19f9a4996571f6f8505de00fb0
Signed-off-by: Stephen Kitt <skitt@redhat.com>
opendaylight/config/config-persister-directory-xml-adapter/pom.xml
opendaylight/md-sal/sal-clustering-commons/pom.xml

index 29c539a7339e20e4326162056e0e69cbbd89d5aa..143aa1052e88d09eba490fc80c381844dd1a7b47 100644 (file)
       <groupId>javax.validation</groupId>
       <artifactId>validation-api</artifactId>
     </dependency>
+
     <dependency>
       <groupId>org.eclipse.persistence</groupId>
       <artifactId>org.eclipse.persistence.core</artifactId>
     </dependency>
+    <!-- Persistence core has optional dependencies on JTA, javax.mail and antlr -->
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jta_1.1_spec</artifactId>
+      <!-- TODO Add this to odlparent dependency management -->
+      <version>1.1.1</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.mail</groupId>
+      <artifactId>mail</artifactId>
+      <!-- TODO Add this to odlparent dependency management -->
+      <version>1.4.4</version>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.persistence</groupId>
+      <artifactId>org.eclipse.persistence.antlr</artifactId>
+    </dependency>
 
     <dependency>
       <groupId>org.eclipse.persistence</groupId>
       <artifactId>org.eclipse.persistence.moxy</artifactId>
     </dependency>
+    <!-- Moxy has an optional dependency on Jersey -->
+    <dependency>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-core</artifactId>
+    </dependency>
+
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
       <artifactId>config-persister-file-xml-adapter</artifactId>
index e8dcede8d21613d395e6e4c403295a77e33d4bbe..b75bff35214ac13f16155d7d0f43a2598d3bec1f 100644 (file)
       <groupId>com.typesafe.akka</groupId>
       <artifactId>akka-remote_2.12</artifactId>
     </dependency>
+    <dependency>
+      <!-- Enforce Netty’s optional dependency on servlet API -->
+      <groupId>javax.servlet</groupId>
+      <artifactId>javax.servlet-api</artifactId>
+    </dependency>
     <dependency>
       <groupId>com.typesafe.akka</groupId>
       <artifactId>akka-slf4j_2.12</artifactId>