Tag Archives: maven mvn

[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!