Maven2のsiteで「Unable to find javadoc command」

感想おまちしてます!

Maven

siteを動かしてみると以下のエラーが。

[INFO] javadoc:javadoc
org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation:Unable to find javadoc command: The javadoc executable 'C:\fujihara\Sun\SDK\jdk\bin\javadoc.exe' doesn't exist or is not a file. Verify the JAVA_HOME environment variable.
at org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:238)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813)
at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85)
Caused by: org.apache.maven.reporting.MavenReportException: Unable to find javadoc command: The javadoc executable 'C:\fujihara\Sun\SDK\jdk\bin\javadoc.exe' doesn't exist or is not a file. Verify the JAVA_HOME environment variable.
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:1172)
at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:136)
at org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:224)
... 7 more
Caused by: java.io.IOException: The javadoc executable 'C:\fujihara\Sun\SDK\jdk\bin\javadoc.exe' doesn't exist or is not a file. Verify the JAVA_HOME environment variable.
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getJavadocExecutable(AbstractJavadocMojo.java:2391)
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:1168)
... 9 more
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD FAILURE SimpleJarProject:SimpleJarProject:jar:1.0-SNAPSHOT (  task-segment: [site] )
[INFO] ----------------------------------------------------------------------------
[INFO] An error has occurred in JavaDocs report generation:Unable to find javadoc command: The javadoc executable 'C:\fujihara\Sun\SDK\jdk\bin\javadoc.exe' doesn't exist or is not a file. Verify the JAVA_HOME environment variable.
[INFO] ----------------------------------------------------------------------------

「Unable to find javadoc command」っていってるのでJAVA_HOMEを見てみると、javadoc.exeが入ってなかった。
JavaSE(JREではなくJDK)をダウンロードして、javadoc.exeが入っていることを確認。
そこに環境変数JAVA_HOMEを設定したら成功。