Workaround for https://bugs.openjdk.java.net/browse/JDK-8212233.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 31 Jan 2020 15:12:35 +0000 (17:12 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 31 Jan 2020 15:12:35 +0000 (17:12 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index f978f99..55ab765 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -44,7 +44,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>2.3.2</version>
+                <version>3.8.1</version>
                 <configuration>
                     <source>1.8</source>
                     <target>1.8</target>
@@ -70,7 +70,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-javadoc-plugin</artifactId>
-                <version>2.9</version>
+                <version>2.10.4</version>
                 <executions>
                     <execution>
                         <id>attach-javadocs</id>
                         </goals>
                     </execution>
                 </executions>
+                <configuration>
+                    <!-- workaround for https://bugs.openjdk.java.net/browse/JDK-8212233 -->
+                    <javaApiLinks>
+                        <property>
+                            <name>foo</name>
+                            <value>bar</value>
+                        </property>
+                    </javaApiLinks>
+                    <!-- Workaround for https://stackoverflow.com/questions/49472783/maven-is-unable-to-find-javadoc-command -->
+                    <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
+                </configuration>
             </plugin>
 
             <plugin>
     </scm>
 
 
-</project>
\ No newline at end of file
+</project>