Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error when generating Javadoc due to old JDK7 compiler version
The javadoc goal fails since we are trying to create Javadoc for JDK7 while the code has language features of JDK8. ``` mvn org.apache.maven.plugins:maven-javadoc-plugin:javadoc -Prelease ``` There are various errors such as the one shown below. ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.7.0:javadoc (default-cli) on project xtable-api: An error has occurred in Javadoc report generation: [ERROR] Exit code: 1 [ERROR] /home/stamatis/Projects/Apache/incubator-xtable/xtable-api/src/main/java/org/apache/xtable/spi/sync/TableFormatSync.java:74: error: lambda expressions are not supported in -source 1.7 [ERROR] target -> target.syncFilesForSnapshot(snapshot.getPartitionedDataFiles()), [ERROR] ^ [ERROR] (use -source 8 or higher to enable lambda expressions) ``` The Apache parent pom sets the `maven.compiler.source` and `maven.compiler.target` to (JDK) 7 and that is being picked up by various plugins including the maven-javadoc-plugin leading to the error below. 1. Override compiler's `target` (and implicitly `source`) property to use JDK 8. 2. Remove explicit `release` configuration from maven-compiler-plugin since it is set by the Apache parent pom.
- Loading branch information