[rules-users] Re: drools 5.0.0-SNAPSHOT Maven repository broken?

Geoffrey De Smet ge0ffrey.spam at gmail.com
Wed Oct 8 12:35:23 EDT 2008


With kind regards,
Geoffrey De Smet


tim tim schreef:
> hi
> 
> when i am getting drools snapshot via "mvn eclipse:eclipse"
> the compiled drools jars are downloaded but the sources are not, 
> although i have
> <downloadSources>true</downloadSources>
> defined as parameter in my pom.xml and the sources of the other 
> libraries are downloaded correctly.
> when i use drools 4.0.7 those sources are downloaded correctly.
> 
> i can find the sources manually in the http://snapshots.jboss.org/maven2 
> repository, they are just not downloaded
> automatically.
> 
> i deleted the |mvn-eclipse-cache.properties |file in my target directory 
> before calling mvn. (see 
> http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html)

Doesn't "mvn eclipse:clean" delete that cache too?

> 
> an extract from my maven output:
> 
> // the compiled jars are located correctly:
> ..
> [INFO] snapshot org.drools.solver:drools-solver:5.0.0.SNAPSHOT: checking 
> for updates from snapshots.jboss.org <http://snapshots.jboss.org>
> [INFO] snapshot org.drools.solver:drools-solver:5.0.0.SNAPSHOT: checking 
> for updates from repo1.maven.org <http://repo1.maven.org>
> Downloading: 
> http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver/5.0.0.SNAPSHOT/drools-solver-5.0.0.20081008.102800-121.pom
> 1K downloaded
> Downloading: 
> http://snapshots.jboss.org/maven2/org/drools/drools-compiler/5.0.0.SNAPSHOT/drools-compiler-5.0.0.20081008.102800-232.jar
> 943K downloaded
> Downloading: 
> http://snapshots.jboss.org/maven2/org/drools/drools-core/5.0.0.SNAPSHOT/drools-core-5.0.0.20081008.102800-233.jar
> 1547K downloaded
> Downloading: 
> http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/drools-solver-core-5.0.0.20081008.102800-121.jar
> 94K downloaded
> ...
> // but maven searches for the sources in the wrong repositories:
> 
> Downloading: 
> http://repository.jboss.org/maven2/org/drools/drools-compiler/5.0.0.20081008.102800-232/drools-compiler-5.0.0.20081008.102800-232-sources.jar
> Downloading: 
> http://repo1.maven.org/maven2/org/drools/drools-compiler/5.0.0.20081008.102800-232/drools-compiler-5.0.0.20081008.102800-232-sources.jar
> Downloading: 
> http://repo1.maven.org/maven2/org/drools/drools-compiler/5.0.0.20081008.102800-232/drools-compiler-5.0.0.20081008.102800-232-sources.jar
> Downloading: 
> http://repository.jboss.org/maven2/org/drools/drools-core/5.0.0.20081008.102800-233/drools-core-5.0.0.20081008.102800-233-sources.jar
> Downloading: 
> http://repo1.maven.org/maven2/org/drools/drools-core/5.0.0.20081008.102800-233/drools-core-5.0.0.20081008.102800-233-sources.jar
> Downloading: 
> http://repo1.maven.org/maven2/org/drools/drools-core/5.0.0.20081008.102800-233/drools-core-5.0.0.20081008.102800-233-sources.jar
> ...
> 
> does someone else have this problem?
> 
> or maybe my pom.xml is wrong?
> the relevant parts of my pom.xml file are:
> 
> <repositories>
>         <repository>
>             <id>repo1.maven.org <http://repo1.maven.org></id>
I don't think you need to explicitly add this one, it's always 
automatically added, unless you overwrite it with the id "central" I think.
>             <url>http://repo1.maven.org/maven2</url>
>             <snapshots>
>                 <enabled>true</enabled>
repo1.maven.org doesn't contain snapshots as far as I know, so it should 
be false
It could be that the eclipse plugin only searches on the first snapshot 
repo it encounters? Which version of the eclipse plugin are you using?
>             </snapshots>
>             <releases>
>                 <enabled>true</enabled>
>             </releases>
>         </repository>
>         <repository>
>             <id>repository.jboss.org <http://repository.jboss.org></id>
>             <url>http://repository.jboss.org/maven2</url>
>             <snapshots>
>                 <enabled>false</enabled>
>             </snapshots>
>             <releases>
>                 <enabled>true</enabled>
>             </releases>
>         </repository>
>         <repository>
>             <id>snapshots.jboss.org <http://snapshots.jboss.org></id>
>             <url>http://snapshots.jboss.org/maven2</url>
>             <snapshots>
>                 <enabled>true</enabled>
>             </snapshots>
>             <releases>
>                 <enabled>false</enabled>
>             </releases>
>             </repository>
> </repositories>
> 
> <dependencies>
>         <dependency>
>             <groupId>janino</groupId>
>             <artifactId>janino</artifactId>
>             <version>2.5.10</version>
>         </dependency>
>         <dependency>
>             <groupId>org.drools</groupId>
>             <artifactId>drools-core</artifactId>
>             <version>5.0.0.SNAPSHOT</version>
>         </dependency>
>         <dependency>
>             <groupId>org.drools</groupId>
>             <artifactId>drools-compiler</artifactId>
>             <version>5.0.0.SNAPSHOT</version>
>         </dependency>
>         <dependency>
>                 <groupId>org.drools.solver</groupId>
>                 <artifactId>drools-solver-core</artifactId>
>                 <version>5.0.0.SNAPSHOT</version>
>         </dependency>
> </dependencies>
> 
> unfortunately i have no idea what the problem might be and installing 
> the sources manually every time i update is no very attractive option..
> 
> 
> thanks in advance, tim
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list