Maven的pom.xml中添加了javadoc 插件,原来写的代码,由于代码的注释写了一些非标准标记,导致报错。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project urule-console: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:13: 错误: 未知标记: Title
[ERROR] * @Title: UruleConfig
[ERROR] ^
[ERROR] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:14: 错误: 未知标记: Description
[ERROR] * @Description:
[ERROR] ^
[ERROR] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:16: 错误: 未知标记: date
[ERROR] * @date 2020/8/19 18:07
[ERROR] ^
[ERROR] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:17: 错误: 未知标记: Version
[ERROR] * @Version 1.0
[ERROR] ^
[ERROR] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsole
epositoryRepositoryReader.java:56: 警告: @throws 没有说明
[ERROR] * @throws Exception
[ERROR] ^
[ERROR]
[ERROR] Command line was: "D:Program FilesJavajdk1.8.0_131jre..injavadoc.exe" @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 'D:workbenchsource-codegithubyouseriesuruleurule-console argetapidocs' dir.
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
[WARNING] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:22: 警告 - @Title:是未知标记。
[WARNING] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:22: 警告 - @Description:是未知标记。
[WARNING] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:22: 警告 - @date是未知标记。
[WARNING] D:workbenchsource-codegithubyouseriesuruleurule-consolesrcmainjavacomstekuruleconsoleconfigUruleConfig.java:22: 警告 - @Version是未知标记 - 除了大小写之外其他方面与已知标记相同。
error变成了warning, 问题解决