When I run mvn javadoc:javadoc
, I get the following error:
[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - cannot read options (The system cannot find the file specified) Command line was:"C:\Program Files\Java\jdk1.6.0_14\jre\..\bin\javadoc.exe" @options @packages
When I invoke the command "C:\Program Files\Java\jdk1.6.0_14\jre..\bin\javadoc.exe"
on my system it runs the javadoc executable.
I am running:
- JDK 1.6.0_14
- Maven 2.0.8
The javadoc reporting part of my POM looks like:
<reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> ...
And relevant environment variables:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14 M2_HOME=C:\Program Files\Apache Software Foundation\apache-maven-2.0.8 M2_REPO=C:\Documents and Settings\<user>\.m2\repository //<user> is my user MAVEN_OPTS=-XX:MaxPermSize=128m -Xmx512m
I have tried reinstalling Java and Maven, as well as using Maven 2.1.0, JDK 1.6.0_11, and even JDK 1.5.0_11. I have compared my setup to a coworker who has practically the same environment but no problems. It used to work about a month ago, and no, I don't know what's changed on my system since then. I first encountered it with JDK 1.6.0_11. This happens on every project I've tried in our repository, and my coworkers have no problems with the same projects. So I'm pretty sure it's just my environment and not the projects themselves.
I would really appreciate any suggestions on this.