[rules-users] Drools Maven repository error

Wilson O Ojwang wojwang at alcatel-lucent.com
Tue Jun 10 17:49:46 EDT 2008


All,

I am getting the following error while updating drools 4.0.7 repo. using 
the following ant task

<artifact:dependencies pathId="dependency.class.path">
    <dependency groupId="org.drools" artifactId="drools-repository" 
version="4.0.7"/>
</artifact:dependencies>

OR using

 <artifact:dependencies pathId="dependency.class.path">
    <dependency groupId="org.drools" artifactId="drools-core" 
version="4.0.7"/>
   <dependency groupId="org.drools" artifactId="drools-compiler" 
version="4.0.7"/>
</artifact:dependencies>

======== Here is the error ==============

ant
Buildfile: build.xml
[artifact:dependencies] Downloading: 
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.pom from central
[artifact:dependencies] Downloading: 
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.pom from central
[artifact:dependencies] Downloading: 
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.jar from central
[artifact:dependencies] Downloading: 
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.jar from central
[artifact:dependencies] An error has occurred while processing the Maven 
artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.drools:drools-repository:jar:4.0.7
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the 
project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file 
-DgroupId=org.drools -DartifactId=drools-repository -Dversion=4.0.7 
-Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository 
you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file 
-DgroupId=org.drools -DartifactId=drools-repository -Dversion=4.0.7 
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]         1) org.apache.maven:super-pom:jar:2.0
[artifact:dependencies]         2) org.drools:drools-repository:jar:4.0.7
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies]   org.apache.maven:super-pom:jar:2.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   central (http://repo1.maven.org/maven2)
[artifact:dependencies]

BUILD FAILED
/home/wojwang/workspace_5350/HibernateDrools/build.xml:13: Unable to 
resolve artifact: Missing:
----------
1) org.drools:drools-repository:jar:4.0.7

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.drools 
-DartifactId=drools-repository -Dversion=4.0.7 -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.drools 
-DartifactId=drools-repository -Dversion=4.0.7 -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.apache.maven:super-pom:jar:2.0
        2) org.drools:drools-repository:jar:4.0.7

----------
1 required artifact is missing.

for artifact:
  org.apache.maven:super-pom:jar:2.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

=============================


Thanks for your help.

Regards
Wilson




More information about the rules-users mailing list