简体   繁体   中英

How to configure maven pom repositories?

I create project as described in:

TEIID/Archetype+Template+Connector+Project

on mvn clean install I get:

[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]

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,

I added into my 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>    

but it din't help, although both

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

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

whats wrong with it ?

The repository is not correctly setup. Have a look at Maven Getting Started Guide .

Essentially it should be:

<repositories>
    <repository>
        <id>jboss</id>
        <name>jboss</name>
        <url>http://repository.jboss.org/nexus/content/groups/public/</url>
        <layout>default</layout>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>   

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM