Do not scan transitive dependencies 47/51447/6
authorRobert Varga <rovarga@cisco.com>
Sun, 5 Feb 2017 20:52:08 +0000 (21:52 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 6 Feb 2017 16:05:48 +0000 (17:05 +0100)
Doing so pulls in aries, which is provided by karaf, causing reactivation
of the platform, breaking pax-exam tests. This fixes the issue partially,
as blueprint is not being directly reactivated.

This is true for odl-mdsal-broker-local and odl-mdsal-xsql. Also the sample
test app should not be pulling tycho into an OSGi container, make sure the
dependency is only for test.

Change-Id: I5b08e19e39347fe6e5c03bf6dbe1cb05e36274e3
Signed-off-by: Robert Varga <rovarga@cisco.com>
features/mdsal/odl-mdsal-broker-local/pom.xml
features/mdsal/odl-mdsal-xsql/pom.xml
opendaylight/blueprint/pom.xml
opendaylight/md-sal/samples/clustering-test-app/provider/pom.xml

index 5f04cb1..f3ada9a 100644 (file)
         </dependency>
     </dependencies>
 
-</project>
\ No newline at end of file
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.karaf.tooling</groupId>
+                <artifactId>karaf-maven-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <includeTransitiveDependency>false</includeTransitiveDependency>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
index 11525a6..c5000f0 100644 (file)
             <scope>provided</scope>
         </dependency>
     </dependencies>
-</project>
\ No newline at end of file
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.karaf.tooling</groupId>
+                <artifactId>karaf-maven-plugin</artifactId>
+                <extensions>true</extensions>
+                <configuration>
+                    <includeTransitiveDependency>false</includeTransitiveDependency>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>
index 95fdeac..7727fc1 100644 (file)
@@ -50,6 +50,7 @@
       <groupId>org.apache.aries.blueprint</groupId>
       <artifactId>org.apache.aries.blueprint.core</artifactId>
       <version>1.7.1</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>org.opendaylight.controller</groupId>
index caa2b1a..77ede45 100644 (file)
@@ -45,6 +45,7 @@
         <dependency>
             <groupId>org.eclipse.tycho</groupId>
             <artifactId>org.eclipse.osgi</artifactId>
+            <scope>test</scope>
         </dependency>
     </dependencies>
 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.