Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.9.1
-
None
-
None
-
Mac OSX, JDK 1.7+
-
Patch
Description
The logic to detect where the javadoc script is located is not correct for Oracle's JVM 1.7 and higher on Mac OSX.
The logic inside of AbstractJavadocMojo currently special-cases all JVMs running on OSX (line 3534):
else if ( SystemUtils.IS_OS_MAC_OSX ) { javadocExe = new File( SystemUtils.getJavaHome() + File.separator + "bin", javadocCommand ); }
But as of JDK 1.7 as distributed by Oracle, the default "else" block should apply here (line 3538):
else { javadocExe = new File( SystemUtils.getJavaHome() + File.separator + ".." + File.separator + "bin", javadocCommand ); }
The solution might be to modify line 3534 as follows (or perhaps also check for Oracle's vendor string as well--anyway, you get the idea):
else if ( SystemUtils.IS_OS_MAC_OSX && SystemUtils.JAVA_VERSION_FLOAT < 1.7f ) { javadocExe = new File( SystemUtils.getJavaHome() + File.separator + "bin", javadocCommand ); }
Patch forthcoming.
Attachments
Attachments
Issue Links
- is related to
-
MNG-4226 Better detection of JAVA_HOME on Apple Mac OS X
- Closed
- relates to
-
MJAVADOC-395 Add JDK8 support to maven-javadoc-plugin
- Closed