Hopefully fix javadoc publishing with Java 11+
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <inherited>true</inherited>
+ <configuration>
+ <!-- When we use a Java 11+ JVM, we need a JDK 8, otherwise we can't compile the old unsafe code -->
+ <sourcepath>${jdk8.home}${file.separator}jre${file.separator}lib${file.separator}rt.jar</sourcepath>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <inherited>true</inherited>
+ <configuration>
+ <!-- When we use a Java 11+ JVM, we need a JDK 8, otherwise we can't compile the old unsafe code -->
+ <sourcepath>${jdk8.home}${file.separator}jre${file.separator}lib${file.separator}rt.jar</sourcepath>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
