Fix failing LockManagerTest (NoClassDefFoundError) 46/62446/2
authorMichael Vorburger <vorburger@redhat.com>
Wed, 30 Aug 2017 10:53:14 +0000 (12:53 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Wed, 30 Aug 2017 12:16:53 +0000 (12:16 +0000)
The LockManagerTest is currently failing on clean master with:
java.lang.NoClassDefFoundError:
org/opendaylight/controller/md/sal/binding/impl/BindingToNormalizedNodeCodec

The cause of this problem is that genius.testutils has a dependency to
sal-binding-broker-impl's attached <type>test-jar, only - but not the
main artifact (where BindingToNormalizedNodeCodec is).

It's easy to fix like this - but I don't really understand, and don't
have time to further investigate, how this could have suddenly broken...
presumably someone changed a dependency in some POM in controller or
somewhere which had this as a side effect.  Be that as it may - it works
again now with this change.

Change-Id: Ic46d0f78cb89b0a704f1e603f8dd115f46987cb1
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
commons/testutils/pom.xml

index 1adbc9487504da471df209a408de93c0cea41ae9..bae3ad85bb63df5b782d031e71bc3816a1a30c7d 100644 (file)
@@ -70,6 +70,11 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
       <artifactId>mdsal-binding-test-utils</artifactId>
       <scope>compile</scope>
     </dependency>
+    <dependency>
+      <groupId>org.opendaylight.controller</groupId>
+      <artifactId>sal-binding-broker-impl</artifactId>
+      <scope>compile</scope>
+    </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
       <artifactId>sal-binding-broker-impl</artifactId>