javadoc生成文档时总是报java.lang.IllegalArgumentException错误,是classpath里面字符冲突引起的。我在classpath中包含了%JAVA_HOME%\lib;解决方法是重新设置classpath或者删除classpath.要注意设置完成后重启下cmd或者editplus,重启后生效!
见官方参考文档 [url]http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html[/url]
[quote]
On Windows with Sun JDK, why javadoc:javadoc goal blows up due to an IllegalArgumentException
in sun.net.www.ParseUtil.decode()?
You are on Windows XP with Sun JDK 5 or JDK 6 freshly installed, and when you run mvn
javadoc:javadoc, you are stick by an sun.net.www.ParseUtil.decode() exception like this one.
......
Your CLASSPATH environement variable is probably corrupted, i.e. something like:
CLASSPATH=.;C:\Java\jdk1.6.0_03\jre\lib\ext\QTJava.zip;%JAVAHOME%with %JAVAHOME% not a valid
environment variable.
To resolve it, just reset the CLASSPATH environement variable, i.e.:
set CLASSPATH=or set a new CLASSPATH environement variable, i.e.:
set CLASSPATH=C:\Java\jdk1.6.0_03\jre\lib\ext\QTJava.zipor fix the wrong environment variable.
Refer you to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6219854 from Sun for more
details. [/quote]
见官方参考文档 [url]http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html[/url]
[quote]
On Windows with Sun JDK, why javadoc:javadoc goal blows up due to an IllegalArgumentException
in sun.net.www.ParseUtil.decode()?
You are on Windows XP with Sun JDK 5 or JDK 6 freshly installed, and when you run mvn
javadoc:javadoc, you are stick by an sun.net.www.ParseUtil.decode() exception like this one.
......
Your CLASSPATH environement variable is probably corrupted, i.e. something like:
CLASSPATH=.;C:\Java\jdk1.6.0_03\jre\lib\ext\QTJava.zip;%JAVAHOME%with %JAVAHOME% not a valid
environment variable.
To resolve it, just reset the CLASSPATH environement variable, i.e.:
set CLASSPATH=or set a new CLASSPATH environement variable, i.e.:
set CLASSPATH=C:\Java\jdk1.6.0_03\jre\lib\ext\QTJava.zipor fix the wrong environment variable.
Refer you to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6219854 from Sun for more
details. [/quote]