的JIRA休息-Java的客户端0.2 m1.jar
问题描述:
Maven的依赖我想使用maven下载JIRA休息-Java的客户端0.2 m1.jar。但我不知道这个依赖。的JIRA休息-Java的客户端0.2 m1.jar
我尝试以下
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client</artifactId>
<version>0.2-m1</version>
</dependency>
但它不是下载。当我运行mvn compile
它说
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.444s
[INFO] Finished at: Thu May 02 09:53:19 IST 2013
[INFO] Final Memory: 7M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project appanalytix: Could not resolve dependencies for project com.vlx.appanalytix:appanalytix:war:1.0-SNAPSHOT
: Failure to find com.atlassian.jira:jira-rest-java-client:jar:0.2-m1 in http://repository.codehaus.org was cached in the local repository, resolu
tion will not be reattempted until the update interval of codehaus-release-repo has elapsed or updates are forced -> [Help 1]
手动我能够下载罐子。但我想用maven下载它。我怎样才能做到这一点? 谢谢
答
看起来像你可能只是添加Atlassian的公共回购到您的settings.xml
或您的pom.xml
。
来源:https://developer.atlassian.com/display/DOCS/Atlassian+Maven+Repositories, 的URL公共回购是http://maven.atlassian.com/public
谷歌搜索也表明该回购URL可能工作以及:https://repository.atlassian.com/maven2
例如添加到您的项目的pom.xml, 你会添加以下为<project>
孩子:
<repositories>
<repository>
<id>central</id>
<name>Atlassian Public Repository</name>
<layout>default</layout>
<url>http://maven.atlassian.com/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
(如果你已经有一个仓库sectio n,那么你只需将存储库添加到它)。 下面是POM的文档,如果你想多一点信息:http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
感谢。但我不知道如何添加。你能帮我么? – iUser 2013-05-02 04:59:09
我已经添加上述更明确的信息。 – kahowell 2013-05-02 05:06:51