utopiq
utopiq

Reputation: 21

Why Nexus is not downloading an artifact which is listed in the index?

Using Maven I'm trying to add a new dependency to my project:

<dependency>
    <groupId>org.jboss.seam</groupId>
    <artifactId>seam-bom</artifactId>
    <version>3.1.0.Final</version>
    <type>pom</type>   
</dependency>

Browsing Nexus repository index corresponding to the JBoss repository, I can see the artifact:

https://repository.jboss.org/nexus/content/groups/public/

But if I browse the repository storage in Nexus, the artifact is no present, and I when I try to build the project, I get an error:

Failure to find org.jboss.seam:seam-bom:pom:3.1.0.Final in http://eplus.cci.gc.es/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

Upvotes: 2

Views: 844

Answers (2)

Iker Aguayo
Iker Aguayo

Reputation: 4125

The Seam Maven dependencies are not hosted by Maven Central.

Add this in your pom.xml.

<project...
<repositories>
        <repository>
            <id>jboss-releases</id>
            <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
        </repository>
    </repositories>

Upvotes: 0

Mysterion
Mysterion

Reputation: 9320

If somehow -U didn't work for you - you could remove it manually from your local maven repository or use this command mvn dependency:purge-local-repository (it will clean all project dependencies from local repo)

For more info take a look here - http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

Upvotes: 0

Related Questions