Fabrizio Stellato
Fabrizio Stellato

Reputation: 1891

Unable to download artifactory from search.maven.org

I'm trying to do a clean install on this project

https://github.com/jberet/jberet-wildfly-samples

I'm stucked with this error:

Could not resolve dependencies for project org.jberet.samples:clusterInfinispan:war:1.4.0.Alpha-SNAPSHOT: Failed to collect dependencies at org.jberet:jberet-wildfly-cluster-infinispan:jar:1.3.0.Final: Failed to read artifact descriptor for org.jberet:jberet-wildfly-cluster-infinispan:jar:1.3.0.Final: Failure to find org.jberet:jberet-wildfly:pom:1.4.0.Alpha-SNAPSHOT

It appears that artifactory is ONLY available on search.maven.org

I tried to do either a force update -U and to manually clean the local repo directory, but nothing changes. I wonder if I have to manually add the above repo or should automatically seek there

Any hints?

Upvotes: 0

Views: 284

Answers (3)

jirka.pinkas
jirka.pinkas

Reputation: 940

Wow, you are right: https://search.maven.org/artifact/org.jberet/jberet-wildfly-cluster-infinispan/1.3.0.Final/jar

I'm not sure if anybody here on Stackoverflow will be able to help you.

Continue your issue with jberet's community: https://github.com/jberet/jberet-wildfly-samples/issues/2 you have to solve it with them.

EDIT:

Now that I think more about it, it's also possible to add their SNAPSHOT repository to your settings.xml file: https://maven.apache.org/settings.html#Repositories but I didn't find link to their repository.

Anyway: witnessing this I would stay away from jberet project, because this is a big failure on their part.

Upvotes: 1

NoDataFound
NoDataFound

Reputation: 11949

Read the maven error: "failure to find org.jberet:jberet-wildfly:pom:1.4.0.Alpha-SNAPSHOT" means there is a a dependency referencing org.jberet:jberet-wildfly:pom 1.4.0.Alpha-SNAPSHOT.

You should check local pom.xml referencing 1.4.0.Alpha-SNAPSHOT and replace it with a non SNAPSHOT (1.4.0.Alpha for beginners).

Upvotes: 0

Yiao SUN
Yiao SUN

Reputation: 978

I think he didn't publish 1.4.0.Alpha in maven center. You can try to change 1.4.0.Alpha to 1.3.0.Final in pom.xml like this

   <parent>
        <groupId>org.jberet</groupId>
        <artifactId>jberet-parent</artifactId>
        <version>1.3.0.Final</version>
    </parent>

    <groupId>org.jberet.samples</groupId>
    <artifactId>wildfly-jberet-samples</artifactId>
    <version>1.3.0.Final</version>

And use mvn clean install -Pwildfly

Upvotes: 1

Related Questions