1

我正在构建一个依赖于 Apache Airavata 项目的 Java 应用程序。我可以通过将所有依赖项 jar 放在类路径上来启动并运行它,但是我在使用 Maven 设置项目时遇到问题。

问题似乎是一些 Maven 存储库不可用。几个月前我试过这个,结果是一样的。

更新

我在 Airavata 邮件列表上得到了一个答案,他们知道这个问题,他们应该已经修复了它并计划消除依赖。不过,服务器似乎没有工作:

http://markmail.org/search/+list:org.apache.airavata.users#query:%20list%3Aorg.apache.airavata.users+page:1+mid:y37nleni7hocoftg+state:results

无论如何,我现在意识到我应该使用airavata-messenger-client,并且可以与具有以下依赖项的 maven 一起使用:

<dependency>
    <groupId>org.apache.airavata</groupId>
    <artifactId>airavata-messenger-client</artifactId>
    <version>0.5</version>
</dependency>

<dependency>
    <groupId>org.apache.airavata</groupId>
    <artifactId>airavata-messenger-commons</artifactId>
    <version>0.5</version>
</dependency>

<dependency>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-transport-local</artifactId>
    <version>1.6.2</version>
</dependency>

错误信息

The container 'Maven Dependencies' references non existing library '[hidden]\.m2\repository\org\apache\airavata\airavata-message-broker\0.5\airavata-message-broker-0.5.jar'

[ERROR] [..] Failed to collect dependencies for [org.apache.airavata:airavata-message-broker:jar:0.5 (compile)]: Failed to read artifact descriptor for xmlbeans:xbean:jar:2.5.0: Could not transfer artifact xmlbeans:xbean:pom:2.5.0 from/to ogce.m2.all (http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all): Connection to http://community.ucs.indiana.edu:9090 refused: Connection refused: connect

pom.xml

<repositories>
    <repository>
        <id>repository.apache.org-public</id>
        <name>Apache</name>
        <url>http://repository.apache.org/content/groups/public</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.apache.airavata</groupId>
        <artifactId>airavata-message-broker</artifactId>
        <version>0.5</version>
    </dependency>
</dependencies>
4

1 回答 1

1

Airavata 从回购中提取了一些第三方罐子。请将以下两个 repos 复制粘贴到您的 pom 中,看看问题是否存在

<repository>
    <id>central</id>
    <name>Maven Central</name>
    <url>http://repo1.maven.org/maven2</url>
</repository>
<repository>
    <name>ogce.m2.all</name>
    <id>ogce.m2.all</id>
    <url>http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all</url>
</repository>
于 2012-12-13T21:21:04.347 回答