Problem with dashboard-builder-bom:pom:6.2.0.CR4 via Nexus Sonatype Repo

1,007 views
Skip to first unread message

Fred A.J.

unread,
Feb 3, 2015, 3:51:22 PM2/3/15
to drools...@googlegroups.com
Hi all,

I am having trouble pulling down the dependencies on the CR4 release through our local Sonatype Nexus Repository when I do a maven install. I recently posted this issue on StackOverflow and was advised to post here (thanks Laune!). The error message I'm seeing is:

Failed to execute goal on project :
Could not resolve dependencies for project :
Failed to collect dependencies at org.drools:drools-compiler:jar:6.2.0.CR4:
Failed to read artifact descriptor for org.drools:drools-compiler:jar:6.2.0.CR4:
Failure to find org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.2.0.CR4 in was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

I'm using m2eclipse in my IDE (Spring Tool Suite 3.6.3), and in my settings.xml I am directing to a Group Repository that includes Maven Central and JBoss public on our local Repo. I have discovered that Central doesn't have org.jboss.dashboard-builder there, but JBoss public certainly does, so I'm confused why it won't pick it up. If I try to build directly against JBoss, I get a different error for a maven plugin instead (that Central has). I have tried updating indexes, expiring caches but it seems fruitless.... although I'm no Nexus pro. I would much appreciate any advice you may have. My settings & pom are below.

Thanks!

Fred


Settings.xml
  <mirrors>
   
<mirror>
     
<id>nexus</id>
     
<mirrorOf>*</mirrorOf>
     
<url>(local server)/nexus/content/groups/public</url>
   
</mirror>    
 
</mirrors>
 
<profiles>
   
<profile>
     
<id>nexus</id>
     
<repositories>
       
<repository>
         
<id>central</id>
         
<url>http://central</url>
         
<releases><enabled>true</enabled></releases>
         
<snapshots><enabled>true</enabled></snapshots>
       
</repository>
     
</repositories>
     
<pluginRepositories>
       
<pluginRepository>
         
<id>central</id>
         
<url>http://central</url>
         
<releases><enabled>true</enabled></releases>
         
<snapshots><enabled>true</enabled></snapshots>
       
</pluginRepository>
     
</pluginRepositories>
   
</profile>  
 
</profiles>
 
<activeProfiles>
   
<activeProfile>nexus</activeProfile>
 
</activeProfiles>

pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   
<modelVersion>4.0.0</modelVersion>
   
<groupId>com.mypackage.here</groupId>
   
<artifactId>TaskLaunchManager</artifactId>
   
<version>0.0.1-SNAPSHOT</version>
   
<name>TaskLaunchManager</name>

   
<properties>
       
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       
<app.name>task-launch-manager</app.name>
       
<log4j.version>1.2.16</log4j.version>
       
<junit.version>4.8.1</junit.version>
       
<drools.version>6.2.0.CR4</drools.version>
       
<slf4j.version>1.7.9</slf4j.version>
   
</properties>

   
<!-- Drools Maven BOM (Bill of Materials) -->
   
<dependencyManagement>
       
<dependencies>
           
<dependency>
               
<groupId>org.drools</groupId>
               
<artifactId>drools-bom</artifactId>
               
<type>pom</type>
               
<version>${drools.version}</version>
               
<scope>import</scope>
           
</dependency>
           
<dependency>
               
<groupId>org.kie</groupId>
               
<artifactId>kie-bom</artifactId>
               
<type>pom</type>
               
<version>${drools.version}</version>
               
<scope>import</scope>
           
</dependency>
       
</dependencies>
   
</dependencyManagement>

   
<!-- Required dependencies -->
   
<dependencies>
       
<dependency>
           
<groupId>log4j</groupId>
           
<artifactId>log4j</artifactId>
           
<version>${log4j.version}</version>
           
<scope>compile</scope>
       
</dependency>
       
<dependency>
       
<groupId>org.slf4j</groupId>
           
<artifactId>slf4j-log4j12</artifactId>
           
<version>${slf4j.version}</version>
           
<scope>compile</scope>
       
</dependency>      
       
<dependency>
           
<groupId>junit</groupId>
           
<artifactId>junit</artifactId>
           
<version>${junit.version}</version>
           
<scope>test</scope>
       
</dependency>

       
<dependency>
           
<groupId>org.drools</groupId>
           
<artifactId>drools-compiler</artifactId>
           
<scope>runtime</scope>
       
</dependency>

       
<dependency>
           
<groupId>org.kie</groupId>
           
<artifactId>kie-api</artifactId>
       
</dependency>
       
<dependency>
           
<groupId>org.kie</groupId>
           
<artifactId>kie-internal</artifactId>
       
</dependency>
       
<dependency>
           
<groupId>org.drools</groupId>
           
<artifactId>drools-core</artifactId>
       
</dependency>
       
<dependency>
           
<groupId>org.drools</groupId>
           
<artifactId>drools-decisiontables</artifactId>
       
</dependency>

   
</dependencies>

</project>



Fred A.J.

unread,
Feb 4, 2015, 2:25:32 PM2/4/15
to drools...@googlegroups.com
For anyone else that may stumble into this... I got it resolved! Write-up at stackoverflow:


Thanks!
...
Reply all
Reply to author
Forward
0 new messages