[ https://issues.apache.org/jira/browse/MJAVADOC-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957527#comment-17957527 ]
Olivier Lamy commented on MJAVADOC-98: -------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-javadoc-plugin#560|https://github.com/apache/maven-javadoc-plugin/issues/560]. > Add support for Javadoc version different from JAVA_HOME > -------------------------------------------------------- > > Key: MJAVADOC-98 > URL: https://issues.apache.org/jira/browse/MJAVADOC-98 > Project: Maven Javadoc Plugin (Moved to GitHub Issues) > Issue Type: New Feature > Affects Versions: 2.2 > Environment: All > Reporter: Wayne Fay > Assignee: Siveton Vincent > Priority: Major > Fix For: 2.3 > > Attachments: javadoc_version.diff, pom.xml > > > Robert Brehm recently posted a question on the Maven Users list (subject > "Javadoc plugin issue") about using the 1.5 Javadoc when his JAVA_HOME is set > to 1.4. He is using the maven-compiler-plugin to specify the 1.5 compiler and > expected the Javadoc plugin would pick that up and use it automatically, or > at least offer a way to configure the Javadoc plugin directly. I got > interested in the issue and wrote some code to support this functionality. > This is my first official foray into plugin development so I appreciate your > comments etc. Also I'm still trying to figure out the plugin testing aspect > so I haven't included tests with this first code drop... I'm not entirely > sure how to properly develop unit tests for this because it is very > environment-dependent. I did however include a sample pom.xml with the new > configuration parameters -- I've tested it myself on Windows with a small app > (JAVA_HOME set to 1.4 and pom.xml config pointing to 1.5) and it used the 1.5 > javadoc binary as configured. > I don't like having to include the <javadocVersion> node in the configuration > but org.apache.commons.lang.SystemUtils doesn't know how to decipher the > Javadoc version, only the Java version. And I was going to grab the Javac > specified in maven-compiler-plugin and use it to find the Javadoc executable, > then fork Javac to find the version etc, but decided that was just too much > work for right now... If you want to go down that path, go for it, I'm just > not sure if its worth the effort. ;-) -- This message was sent by Atlassian Jira (v8.20.10#820010)