Skip to content

Commit 9689b9f

Browse files
committed
Fix build failure with JDK 11.0.2.
Signed-off-by: leadpony <[email protected]>
1 parent 817010b commit 9689b9f

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

api/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@
6565
<br>Comments to : [email protected]
6666
]]>
6767
</bottom>
68-
<links>
69-
<link>http://docs.oracle.com/javase/8/docs/api/</link>
70-
</links>
7168
</configuration>
7269

7370
<executions>

demos/customprovider-jdk9/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
<plugin>
5353
<groupId>org.apache.maven.plugins</groupId>
5454
<artifactId>maven-surefire-plugin</artifactId>
55-
<version>2.20</version>
5655
<executions>
5756
<execution>
5857
<goals>

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<new_impl_version>1.2.0</new_impl_version>
8080
<non.final>false</non.final>
8181
<legal.doc.source>${maven.multiModuleProjectDirectory}</legal.doc.source>
82+
<javadoc.link.jdk>http://docs.oracle.com/javase/8/docs/api</javadoc.link.jdk>
8283
</properties>
8384

8485
<build>
@@ -178,6 +179,12 @@
178179
<groupId>org.apache.maven.plugins</groupId>
179180
<artifactId>maven-javadoc-plugin</artifactId>
180181
<version>3.0.1</version>
182+
<configuration>
183+
<detectJavaApiLink>false</detectJavaApiLink>
184+
<links>
185+
<link>${javadoc.link.jdk}</link>
186+
</links>
187+
</configuration>
181188
</plugin>
182189
<plugin>
183190
<groupId>org.apache.maven.plugins</groupId>
@@ -366,6 +373,7 @@
366373
<groupId>org.apache.maven.plugins</groupId>
367374
<artifactId>maven-compiler-plugin</artifactId>
368375
<configuration>
376+
<source>8</source>
369377
<release>8</release>
370378
</configuration>
371379
<executions>
@@ -431,6 +439,16 @@
431439
</modules>
432440
</profile>
433441

442+
<profile>
443+
<id>jdk11-setup</id>
444+
<activation>
445+
<jdk>[11,)</jdk>
446+
</activation>
447+
<properties>
448+
<javadoc.link.jdk>https://docs.oracle.com/en/java/javase/11/docs/api</javadoc.link.jdk>
449+
</properties>
450+
</profile>
451+
434452
<profile>
435453
<id>all</id>
436454
<activation>

0 commit comments

Comments
 (0)