0

我是 atlassian-plugin-sdk 的新手,在运行命令 atlas-run-standalone --product jira 时,出现以下错误

C:\Users\aaaaa>atlas-run-standalone --product jira

Executing: "D:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" com.atlassia
n.maven.plugins:maven-amps-plugin:5.0.13:run-standalone -gs D:\atlassian-plugin-
sdk\apache-maven-3.2.1/conf/settings.xml -Dproduct=jira

[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-amps-plugin:5.0.13:run-standalone (default-cli) @ standalone-pom ---

Downloading: https://maven.atlassian.com/repository/public/com/atlassian/plugins
/rest/atlassian-rest-common/2.9.2-m01/atlassian-rest-common-2.9.2-m01.pom
Downloading: https://maven.atlassian.com/repository/public/com/sun/jersey/contri
bs/wadl-resourcedoc-doclet/1.8-atlassian-8/wadl-resourcedoc-doclet-1.8-atlassian
-8.pom

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.018 s
[INFO] Finished at: 2015-02-20T10:27:34+05:30
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:5.0.13:run-standalone (default-cli) on project standalone-pom:
Execution default-cli of goal com.atlassian.maven.plugins:maven-amps-plugin:5.0.13:run-standalone failed: Plugin com.atlassian.maven.plugins:maven-amps-plugin:5.0.13 
or one of itsdependencies could not be resolved: Failed to collect dependencies at com.atlassian.maven.plugins:maven-amps-plugin:jar:5.0.13 -> 
com.atlassian.plugins.rest:atlassian-rest-doclet:jar:2.9.2 -> com.atlassian.jersey:atlassian-jersey-restdoc:jar:1.0.3 ->
com.atlassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01: Failed to read artifact descriptor for com.atlassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01:
Could not transfer artifact com.atlassian.plugins.rest:atlassian-rest-common:pom:2.9.2-m01 from/to atlassian-public (https://maven.atlassian.com/repository/public): 
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unableto find valid certification path to requested target -> [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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException



C:\Users\aaaa>atlas-version

ATLAS Version:    5.0.13
ATLAS Home:       D:\atlassian-plugin-sdk
ATLAS Scripts:    D:\atlassian-plugin-sdk\bin
ATLAS Maven Home: D:\atlassian-plugin-sdk\apache-maven-3.2.1
--------
Executing: "D:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" --version -g
s D:\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T23:07:5
2+05:30)
Maven home: D:\atlassian-plugin-sdk\apache-maven-3.2.1
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_65\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

请帮我解决这个问题注意:我已经在 maven 的 setting.xml 中更改了我的代理设置,但它没有用,我一次又一次地遇到同样的错误

4

1 回答 1

0

我想我在 answers.atlassian.com 上回答了你的问题,这里的答案是一样的:https ://maven.atlassian.com不受你的 Java 信任。

以下是您需要使 ti 受信任的内容:

手动下载证书 这取决于您使用的浏览器。对于 IE7,您需要浏览到网站(例如https://maven.atlassian.com)然后:

  • 右键单击页面并访问其属性菜单
  • 点击证书按钮
  • 单击详细信息选项卡
  • 选择复制到文件
  • 您将被带到证书导出向导,单击下一步
  • 选择您想要选择的证书格式,然后将证书保存到您选择的目录中。

将证书安装到您的密钥库 您可以使用 Java 的 keytool 命令将其导入您的密钥库,例如:

keytool -import -file myCertificate.cer -keystore myKeystor

来源:https ://confluence.atlassian.com/display/CONFKB/Unable+to+Install+Plugin+Due+to+Maven+SSL

于 2015-02-21T16:56:22.857 回答