Using source in JavaDoc part to fix generation of Java 8 docs in JDK 11.
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<configuration>
+ <source>${envSource}</source>
<doctitle>${project.name} (${project.version}) documentation</doctitle>
<stylesheetfile>stylesheet.css</stylesheetfile>
<docfilessubdirs>true</docfilessubdirs>
<properties>
<src.main.java.dir>src/main/java</src.main.java.dir>
<src.test.java.dir>src/test/java</src.test.java.dir>
+ <envSource>11</envSource>
<envClassifier />
</properties>
<build>
<properties>
<src.main.java.dir>src/main/java</src.main.java.dir>
<src.test.java.dir>src/test/java</src.test.java.dir>
+ <envSource>11</envSource>
<envClassifier />
</properties>
<build>
<properties>
<src.main.java.dir>src/main/java8</src.main.java.dir>
<src.test.java.dir>src/test/java8</src.test.java.dir>
- <envClassifier />
+ <envSource>8</envSource>
+ <envClassifier>java8</envClassifier>
</properties>
<build>
<plugins>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-plugin.version}</version>
<configuration>
+ <source>${envSource}</source>
<doctitle>${project.name} (${project.version}) documentation</doctitle>
<stylesheetfile>stylesheet.css</stylesheetfile>
<docfilessubdirs>true</docfilessubdirs>
