jira启动错误解决:Failed to read artifact descriptor for com.atlassian.plugins.rest:atlassian-rest-doclet:jar:2.9.2:

真的是服了,jira插件各种奇怪的报错信息

[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ TPJK-DualMode-Jira ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- jira-maven-plugin:8.0.0:generate-rest-docs (default-generate-rest-docs) @ ***-
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.512 s
[INFO] Finished at: 2020-06-02T16:29:25+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.0.0:generate-rest-docs (default-generate-rest-docs) on project ***: An error has occurred in Javadoc report generation: Unable to resolve artifact:groupId = 'com.atlassian.plugins.rest'
[ERROR] artifactId = 'atlassian-rest-doclet'
[ERROR] version = '2.9.2': Failed to read artifact descriptor for com.atlassian.plugins.rest:atlassian-rest-doclet:jar:2.9.2: Failure to find com.atlassian.pom:public-pom:pom:3.0.2 in https://maven.aliyun.com/repository/central was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced
[ERROR] -> [Help 1]

看这个错误,是因为找不到

atlassian-rest-doclet插件依赖,但这个依赖明明是放在本地仓库里的。继续分析,错误发生的过程是在
generate-rest-docs,于是禁用rest-docs既可以了

在pom文件的properties标签里,加入

<maven.javadoc.skip>true</maven.javadoc.skip>

 或者启动的时候加入参数

-Dmaven.javadoc.skip=true
原文地址:https://www.cnblogs.com/blog-cq/p/13032065.html