-
1. Re: jBPM 5.2.0 & Maven
salaboy21 Jan 23, 2012 5:34 PM (in response to tlee)so what's the error?
Cheers
-
2. Re: jBPM 5.2.0 & Maven
tlee Jan 23, 2012 6:18 PM (in response to salaboy21)Hi Mauricio - I'm away from my dev box right now and I can't remember the exact error message - but it was to do with it not being found in the repo - I'll post again when I have the specific error.
-
3. Re: jBPM 5.2.0 & Maven
tlee Jan 24, 2012 4:28 AM (in response to salaboy21)So, looking at it again this morning it looks like using the example from the user guide works ok:
<dependencies> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-bpmn2</artifactId> <version>5.0.0</version> </dependency> </dependencies> But when I try and up the version to 5.2.0, using:
<dependencies> <dependency> <groupId>org.jbpm</groupId> <artifactId>jbpm-bpmn2</artifactId> <version>5.2.0</version> </dependency> </dependencies> I get this:
Downloading: https://repository.jboss.org/nexus/content/groups/public//org/jbpm/jbpm-bpmn2/5.2.0/jbpm-bpmn2-5.2.0.pom
[INFO] Unable to find resource 'org.jbpm:jbpm-bpmn2:pom:5.2.0' in repository jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/)
Downloading: http://repo1.maven.org/maven2/org/jbpm/jbpm-bpmn2/5.2.0/jbpm-bpmn2-5.2.0.pom
[INFO] Unable to find resource 'org.jbpm:jbpm-bpmn2:pom:5.2.0' in repository central (http://repo1.maven.org/maven2)
Downloading: https://repository.jboss.org/nexus/content/groups/public//org/jbpm/jbpm-bpmn2/5.2.0/jbpm-bpmn2-5.2.0.jar
[INFO] Unable to find resource 'org.jbpm:jbpm-bpmn2:jar:5.2.0' in repository jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public/)
Downloading: http://repo1.maven.org/maven2/org/jbpm/jbpm-bpmn2/5.2.0/jbpm-bpmn2-5.2.0.jar
[INFO] Unable to find resource 'org.jbpm:jbpm-bpmn2:jar:5.2.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.jbpm:jbpm-bpmn2:jar:5.2.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jbpm -DartifactId=jbpm-bpmn2 -Dversion=5.2.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jbpm -DartifactId=jbpm-bpmn2 -Dversion=5.2.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) sample-01:sample-01:jar:0.0.1-SNAPSHOT
2) org.jbpm:jbpm-bpmn2:jar:5.2.0
----------
1 required artifact is missing.
-------------
Thanks,
Tim
-
4. Re: jBPM 5.2.0 & Maven
gardellajp Jan 24, 2012 6:08 AM (in response to tlee)Suppose that artifact is not in maven central repository yet, so you can add this to your pom.xml:
<repositories>
<!-- use this repository for stable releases -->
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!-- use this repository for snapshot releases -->
<repository>
<id>jboss-snapshot-repository-group</id>
<name>JBoss SNAPSHOT Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
With this repositories, maven will can find the artifact and it's dependencies.
Juan
-
5. Re: jBPM 5.2.0 & Maven
tlee Jan 24, 2012 6:41 AM (in response to gardellajp)Thanks Juan, with the snapshot repository and using a version of 5.2.0-SNAPSHOT it downloads the dependencies fine