如何配置maven pom存储库?

时间:2015-11-24 11:59:59

标签: java maven jboss7.x maven-3 wildfly

我按照以下描述创建项目:

TEIID/Archetype+Template+Connector+Project

在mvn clean install上我得到:

[ERROR] Failed to execute goal on project connector-myType: 
Could not resolve dependencies for project org.jboss.teiid.connectors:connector-myType:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.jboss.teiid:teiid-api:jar:8.7.0.Final: 
Failed to read artifact descriptor for org.jboss.teiid:teiid-api:jar:8.7.0.Final: 
Failure to find org.jboss.integration-platform:jboss-integration-platform-bom:pom:6.0.0-SNAPSHOT
in http://snapshots.jboss.org/maven2 was cached in the local repository, 
resolution will not be reattempted until the update interval of jboss has elapsed or updates are forced -> [Help 1]

未能找到org.jboss.integration-platform:jboss-integration-platform-b​​om:pom:6.0.0-SNAPSHOT     在http://snapshots.jboss.org/maven2中缓存在本地存储库中,

我添加到我的pom.xml中:

<repositories>

<repository>
    <id>jboss</id>
    <name>jboss</name>
    <url>http://snapshots.jboss.org/maven2</url>
    I also tried with https://repository.jboss.org/nexus/content/repositories/snapshots/
</repository>
</repositories>    

但它没有帮助,尽管两者都是

http://snapshots.jboss.org/maven2/org/jboss/integration-platform/jboss-integration-platform-bom/6.0.0-SNAPSHOT/

http://snapshots.jboss.org/maven2/org/jboss/integration-platform/jboss-integration-platform-bom/6.0.0-SNAPSHOT/存在!

它有什么不对吗?

1 个答案:

答案 0 :(得分:2)

未正确设置存储库。看看Maven Getting Started Guide

基本上它应该是:

print_help