Tag Archives: javadoc

[Solved] Maven MVN skips generating Javadoc package and reports an error

encountered javadoc with maven packaging error problem, at first did not find javadoc, later found and see the configuration of javadoc in pom.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project qcloud-java-sdk: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 – D:\qcloudapi-sdk-java\src\main\java\com\qcloud\Common\Request.java:24: Error: Unknown flag: brief
[ERROR] * @brief request call class
[ERROR] ^
[ERROR] D:\qcloudapi-sdk-java\src\main\java\com\qcloud\Common\Sign.java:24: error: unknown flag: brief
[ERROR] * @brief Signed
[ERROR] ^
[ERROR] D:\qcloudapi-sdk-java\src\main\java\com\qcloud\Common\Sign.java:26: Error: Unknown token: date
[ERROR] * @date 2017-03-15 18:00:00
[ERROR] ^
[ERROR] D:\qcloudapi-sdk-java\src\main\java\com\qcloud\Common\Sign.java:32: warning: @return not specified
[ERROR] * @return
[ERROR] ^

Use the command mvn install -Dmaven.javadoc.skip=true

Again, I found that the gpg.exe error was reported.

 

Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project qcloud-java-sdk: Unable to execute gpg command: Error while executing process. Cannot run program "gpg.exe": CreateProcess error=2, system could not find the specified file. -> [Help 1]

Last use

mvn install -Dmaven.javadoc.skip=true -Dgpg.skip

Done!

Windows Android studio generates Javadoc

Programmer algorithm practice must read, common Java API skills to share>>>

Tools -> Generate Javadoc…

Generally, there are two problems in generating doc

Solutions are set in other command link arguments

1. NullPointerException exception

Scheme: – bootclasspath D:: – soft/android-sdk-windows/platforms/android-23/android.jar

Note that for different computers, – bootclasspath does not need to be modified, just the specific android.jar address

2. GBK garbled

Scheme: – encoding UTF-8 – charset UTF-8

In conclusion:

Just set it in the other command link arguments

-encoding utf-8 -charset utf-8 -bootclasspath D:\Soft\android-sdk-windows\platforms\android-23\android.jar