Add ow2 as provided 22/83622/7
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Aug 2019 12:12:32 +0000 (14:12 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 15 Aug 2019 12:57:51 +0000 (14:57 +0200)
This adds ow2.asm as provided to javadocs, and defang bytebuddy's
references to sun.reflect.

Change-Id: I576f3c4eaaf2a0fe4af8aef44b7b0b7712dfebc6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
docs/pom.xml

index 368998969b941205efd25f566eddfa40ca94ce6a..190123e86e65f70ff3230258c62ea321c2de5e04 100644 (file)
             <artifactId>junit</artifactId>
             <scope>provided</scope>
         </dependency>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
 
     <build>
                 </executions>
             </plugin>
 
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <!-- For JDK11 builds we want to remove references to sun.reflect -->
+                        <id>remove-sun.reflect-links</id>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <target>
+                                <replace file="${project.build.directory}/src/org/opendaylight/mdsal/binding/dom/codec/jar/bytebuddy/implementation/bind/annotation/Super.java"
+                                    token="{@link sun.reflect" value="{@code sun.reflect" failOnNoReplacements="true"/>
+                                <replace file="${project.build.directory}/src/org/opendaylight/mdsal/binding/dom/codec/jar/bytebuddy/implementation/auxiliary/TypeProxy.java"
+                                    token="{@link sun.reflect" value="{@code sun.reflect" failOnNoReplacements="true"/>
+                            </target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>build-helper-maven-plugin</artifactId>