Do not use compile dependency for embedded code 73/37073/4
authorRobert Varga <rovarga@cisco.com>
Mon, 4 Apr 2016 13:26:22 +0000 (15:26 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 4 Apr 2016 14:31:53 +0000 (16:31 +0200)
We are embedding xtend and its dependencies into our jar and using
compile dependency means karaf plugin will download the jars as it
will see it as a runtime dependency.

Degrade the dependency to scope=provided, as we will provide the
dependencies by our own jar. This breaks maven-xtend-plugin, which
needs guava<15 and relies on it being pulled in transitively. Fix that
by adding an explitic dependency in plugin declaration.

Change-Id: Idb358bca4ce8eab7179d6867e603dd6b2306e732
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-generator-impl/pom.xml
common/parent/pom.xml

index e0e0e90dbff48e24a46fb2e497fc1232a2ea92fe..dc1a4ff17ac8c226b41048e6c8fceed342f92265 100644 (file)
         <dependency>
             <groupId>org.eclipse.xtend</groupId>
             <artifactId>org.eclipse.xtend.lib</artifactId>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.eclipse.xtend</groupId>
             <artifactId>org.eclipse.xtend.lib.macro</artifactId>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.eclipse.xtext</groupId>
             <artifactId>org.eclipse.xtext.xbase.lib</artifactId>
+            <scope>provided</scope>
         </dependency>
     </dependencies>
 
index ae873d8a5f21bf8b0e015f702522d2f167c69d67..781f7cc0f1bc604fa55a36b03f220ae172b9ae4e 100644 (file)
                             </configuration>
                         </execution>
                     </executions>
+                    <dependencies>
+                        <dependency>
+                            <groupId>com.google.guava</groupId>
+                            <artifactId>guava</artifactId>
+                            <version>14.0.1</version>
+                        </dependency>
+                    </dependencies>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.servicemix.tooling</groupId>