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 5f04cb16b565c26f95b738144bb7295330608e7a..f3ada9aaecd01c6a6a94d15c6064405d746192bc 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 11525a683d6798906fda2192b13217a731d0ff10..c5000f0efab7908f8907658d76e3cbc1e95be271 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 95fdeac5daabf604fce762df00f0b3d25cea49cd..7727fc1e5d34c97cdcbdfb2d0b2b2b4c0c9827b2 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 caa2b1a41a6687c97bd4ae13456b5958228c5fd0..77ede454acf69ae365c9ec9d79dc2add29c468bb 100644 (file)
@@ -45,6 +45,7 @@
         <dependency>
             <groupId>org.eclipse.tycho</groupId>
             <artifactId>org.eclipse.osgi</artifactId>
+            <scope>test</scope>
         </dependency>
     </dependencies>
 </project>