无法执行“atlas-run-standalone --product jira”

时间:2015-02-20 05:32:59

标签: maven jira atlassian-plugin-sdk

我是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中的settings.xml中更改了我的代理设置,但它没用, 我一次又一次地得到同样的错误

1 个答案:

答案 0 :(得分:0)

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

以下是您需要的信任:

手动下载证书 这取决于您使用的浏览器。对于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