esteban-aliverti / JBPM-Samples

Simple Samples for JBPM
26 stars 47 forks source link

Dependency error when running Maven #2

Closed abaxter-rh4u closed 11 years ago

abaxter-rh4u commented 11 years ago

Hi,

I'm hitting a strange error when running mvn clean install:

[ERROR] Failed to execute goal on project simple-process-sample: Could not resolve dependencies for project com.plugtree.training.jbpm:simple-process-sample:jar:1.0-SNAPSHOT: Failure to find org.jbpm:jbpm-human-task:jar:5.3.0-SNAPSHOT in https://repository.jboss.org/nexus/content/groups/public/ 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]

The relevant jars appear to be in the repository, but they're not being pulled for some reason. Any ideas?

Thanks!

Adam

salaboy commented 11 years ago

Can you try with mvn clean install -U ? it will force the re download of the snapshots

abaxter-rh4u commented 11 years ago

I just tried that. I receive the following (snipped to just show the jbpm-human-task)

Downloading: https://repository.jboss.org/nexus/content/groups/public/org/jbpm/jbpm-human-task/5.3.0-SNAPSHOT/maven-metadata.xml Downloaded: https://repository.jboss.org/nexus/content/groups/public/org/jbpm/jbpm-human-task/5.3.0-SNAPSHOT/maven-metadata.xml (604 B at 1.7 KB/sec) Downloading: https://repository.jboss.org/nexus/content/groups/public/org/jbpm/jbpm-human-task/5.3.0-SNAPSHOT/jbpm-human-task-5.3.0-SNAPSHOT.jar

And then the same build failure error.

salaboy commented 11 years ago

You will need to change the 5.3.0-SNAPSHOT and use one of the timestamped snapshots published here: https://repository.jboss.org/nexus/content/groups/public/org/jbpm/jbpm-human-task/5.3.0-SNAPSHOT/

For some reason it seems that the SNAPSHOT artefacts were removed. That will solve your problem

abaxter-rh4u commented 11 years ago

I tried to change the dependency to:

org.jbpm jbpm-human-task 5.3.0-20130708.044623-950

and maven made an attempt to download .../org/jbpm/jbpm-human-task/5.3.0-SNAPSHOT/jbpm-human-task-5.3.0-20130708.044623-950.jar which doesn't exist, either.

salaboy commented 11 years ago

Can you make sure that you have access to the https://repository.jboss.org/nexus/ repository?

It sounds like maven is not finding the right jar to download. Notice that the jbpm-human-task doesn't have a jar.. you are probably changing the version to the wrong artefact.. look at the jbpm-human-task-core that should be the right one

abaxter-rh4u commented 11 years ago

Yes, I do have access to https://repository.jboss.org/nexus. All of the other SNAPSHOT dependencies download fine.

I looked through the maven poms and none of them specifically mention jbpm-human-task-core. They don't specify jbpm-human-task as a jar, either. Very strange.

salaboy commented 11 years ago

It seems that nexus is having troubles.. it is probably under maintenance -> https://repository.jboss.org/nexus/content/groups/public/org/jbpm/jbpm-human-task-core/5.3.0-SNAPSHOT/ That's the right path but it taking ages to load.

abaxter-rh4u commented 11 years ago

I've been able to get a portion of the project to compile. If I specify jbpm-human-task-core, instead of just jbpm-human-task, compilation occurs successfully.

salaboy commented 11 years ago

great ! I will close the issue then