【maven】在IDEA上 使用maven进行打包时报错:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar

时间:2023-01-26 21:10:36

报错内容如下:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.095 s
[INFO] Finished at: 2018-10-24T09:23:56+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar (attach-javadocs) on project tx-client: MavenReportException: Error while generating Javadoc: 
[ERROR] Exit code: 1 - D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\src\main\java\com\codingapi\tx\annotation\TxTransaction.java:37: ����: @return û��˵��
[ERROR]      * @return
[ERROR]        ^
[ERROR] D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\src\main\java\com\codingapi\tx\annotation\TxTransaction.java:31: ����: @return û��˵��
[ERROR]      * @return
[ERROR]        ^
[ERROR] D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\src\main\java\com\codingapi\tx\annotation\TxTransaction.java:47: ����: û�� @return
[ERROR]     boolean readOnly() default false;
[ERROR]             ^
[ERROR] D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\src\main\java\com\codingapi\tx\annotation\TxTransaction.java:24: ����: @return û��˵��
[ERROR]      * @return
[ERROR]        ^
[ERROR] D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\src\main\java\com\codingapi\tx\Constants.java:20: ����: ��ʽ����� HTML
[ERROR]      * ������һ��Ҫ�� @Transaction �������㣨ASPECT_ORDER С�� <tx:annotation-driven>��ǩ�е�order ��
[ERROR]                                                   ^
[ERROR] D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\src\main\java\com\codingapi\tx\Constants.java:20: ����: '>' ���÷�����
[ERROR]      * ������һ��Ҫ�� @Transaction �������㣨ASPECT_ORDER С�� <tx:annotation-driven>��ǩ�е�order ��
[ERROR]                                                                        ^
[ERROR] 
[ERROR] Command line was: "C:\Program Files\Java\jdk1.8.0_171\jre\..\bin\javadoc.exe" @options @packages
[ERROR] 
[ERROR] Refer to the generated Javadoc files in 'D:\document\IdeaProjects\myTestDocument\tx-lcn-master\tx-client\target\apidocs' dir.
[ERROR] 
[ERROR] -> [Help 1]

 

解决方案:

打开终端,【前提是你的环境装了maven】

【maven】在IDEA上 使用maven进行打包时报错:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar

 

命令执行:

mvn clean install  -DskipTests  -Dmaven.javadoc.skip=true

【maven】在IDEA上 使用maven进行打包时报错:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar

 

【maven】在IDEA上 使用maven进行打包时报错:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar

 

 即可全部打包完成!!!

如果有别的问题 可以依次解决完成后,再执行这个命令进行打包!!