cancel
Showing results for 
Search instead for 
Did you mean: 

Project build error in pom.xml

al_lv
Champ in-the-making
Champ in-the-making
Hey,

after I imported a generated project into eclipse the pom.xml shows an error:

Project build error: Non-resolvable parent POM: Failure to find org.activiti:activiti-rootSmiley Tongueom:5.0 in http://fox.camunda.com/mvn/ was cached in the local repository, resolution will not be reattempted until the update interval of camunda has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM

Also the ANT-task deploy.bar in build.xml doesn't run:

Buildfile: D:\ActivitiWorkspace\SendEmail01\build.xml
bootstrap.maven.tasks:
mvn-init:
     [echo] Using maven.repo.local=C:\Users\AL_LV/.m2/repository
[artifactSmiley Tongueom] Downloading: org/activiti/activiti-root/5.0/activiti-root-5.0.pom from repository camunda at http://fox.camunda.com/mvn/
[artifactSmiley Tongueom] Unable to locate resource in repository
[artifactSmiley Tongueom] [INFO] Unable to find resource 'org.activiti:activiti-rootSmiley Tongueom:5.0' in repository camunda (http://fox.camunda.com/mvn/)
[artifactSmiley Tongueom] Downloading: org/activiti/activiti-root/5.0/activiti-root-5.0.pom from repository central at http://repo1.maven.org/maven2
[artifactSmiley Tongueom] Unable to locate resource in repository
[artifactSmiley Tongueom] [INFO] Unable to find resource 'org.activiti:activiti-rootSmiley Tongueom:5.0' in repository central (http://repo1.maven.org/maven2)
[artifactSmiley Tongueom] An error has occurred while processing the Maven artifact tasks.
[artifactSmiley Tongueom]  Diagnosis:
[artifactSmiley Tongueom]
[artifactSmiley Tongueom] Unable to initialize POM pom.xml: Cannot find parent: org.activiti:activiti-root for project: org.activitiSmiley FrustratedendEmail01:jar:5.0 for project org.activitiSmiley FrustratedendEmail01:jar:5.0
[artifactSmiley Tongueom] Unable to download the artifact from any repository
[artifactSmiley Tongueom]

BUILD FAILED
D:\ActivitiWorkspace\SendEmail01\build.xml:34: Unable to initialize POM pom.xml: Cannot find parent: org.activiti:activiti-root for project: org.activitiSmiley FrustratedendEmail01:jar:5.0 for project org.activitiSmiley FrustratedendEmail01:jar:5.0

Total time: 3 seconds


What is wrong hier and how can I fix it?

Thanks

Alexej
6 REPLIES 6

al_lv
Champ in-the-making
Champ in-the-making
I added -SNAPSHOT in the line 15 of pom.xml and it runs now the maven part of deploy.bar task.

Is it a cerrect way?

bernd_ruecker
Champ in-the-making
Champ in-the-making
Hi al_lv.

The problem is that you need to add a maven repository containing the Activiti 5.0 artifacts (we haven't recognized that, since we all have it locally on development machines ;-)). Either you do that in your Maven settings.xml or you add the Alfresco Repository to your pom.xml:


  <repositories>
       <repository>
                  <id>Alfresco</id>
                  <url>http://maven.alfresco.com/nexus/content/groups/public/</url>
       </repository>
       <repository>
                  <id>camunda</id>
                  <url>http://fox.camunda.com/mvn/</url>
       </repository>
  </repositories>

Hope that helps, we will fix that in the template for the next version. Thanks for raising that issue!

Cheers
Bernd

bl4cky
Champ in-the-making
Champ in-the-making
Same Problem with 5.6

edit: Seems it is a proxy issue

bernd_ruecker
Champ in-the-making
Champ in-the-making
Hi bl4ckY.

It is correctly in the pom.xml: http://svn.codehaus.org/activiti/activiti/trunk/modules/activiti-cycle-maven-template/pom.xml. Is it really not in your generated project?

or is that "edit" a hint that it is correct in the pom.xml but you have local proxy issues?

Cheers
Bernd

bl4cky
Champ in-the-making
Champ in-the-making
pom.xml looks good to me and yes, i have a local proxy issue Smiley Happy

bernd_ruecker
Champ in-the-making
Champ in-the-making
Okay, then good luck with that 😉