Exclude byte-buddy from features 42/81942/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 7 May 2019 12:34:24 +0000 (14:34 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 May 2019 12:43:01 +0000 (14:43 +0200)
While shade-plugin installs a dependency-reduced pom.xml, maven
does not see that but rather the original, hence we need to
explicitly exclude byte-buddy so as not to leak it.

JIRA: MDSAL-444
Change-Id: I58e6a22b94cc46ebfff7c9fe63ffaf135971da71
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/odl-mdsal-binding-runtime/pom.xml
features/odl-mdsal-trace/pom.xml

index 57043932869c58b3645d772b1f2d87760f04beaf..66923765ce295299045754a005b698fb21eca367 100644 (file)
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>mdsal-binding-generator-util</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.opendaylight.mdsal</groupId>
+            <artifactId>mdsal-binding-dom-codec</artifactId>
+            <exclusions>
+                <exclusion>
+                    <!-- This dependency is shaded, but the build reactor
+                         still sees it, hence we need to explicitly exclude it -->
+                    <groupId>net.bytebuddy</groupId>
+                    <artifactId>byte-buddy</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
         <dependency>
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>mdsal-binding-dom-codec-osgi</artifactId>
index 1525fe713951d8878f1c09822949e723bf65ed23..82e63b11595e500c90a1ee932f5e9ad2b0479498 100644 (file)
         <dependency>
             <groupId>org.opendaylight.mdsal</groupId>
             <artifactId>mdsal-trace-impl</artifactId>
+             <exclusions>
+                 <exclusion>
+                    <!-- This dependency is shaded in mdsal-binding-dom-codec, but
+                         the build reactor still sees it, hence we need to explicitly
+                                            exclude it -->
+                     <groupId>net.bytebuddy</groupId>
+                     <artifactId>byte-buddy</artifactId>
+                 </exclusion>
+             </exclusions>
         </dependency>
         <dependency>
             <groupId>org.opendaylight.mdsal</groupId>