-
Notifications
You must be signed in to change notification settings - Fork 8
maven
wjggwm edited this page Jun 19, 2017
·
1 revision
有些同学可能会因为打包生成javadoc时JDK版本兼容问题导致打包不成功 错误如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (javadoc) on project projectName: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - E:\Java\JavaProject\WorkProject\Project\project\src\main\java\com\wang\TEst.java:26: 警告: @return 没有说明
[ERROR] * @return
[ERROR] ^
可以在install、package等命令时忽略javadoc生成,具体如下:
package -Dmaven.javadoc.skip=true
忽略测试、javadoc:
package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true