hello there,

i have a problem with downloading the sources from a snapshot repository.

when i call

 mvn dependency:sources

(or mvn eclipse:eclipse -DdownloadSources=true)

the compiled jar is downloaded correctly, but the sources jar is
searched for in a wrong directory

download for the compiled jar is correct ->
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/drools-solver-core-5.0.0.20081009.190700-124.jar

wrong, the timestamp is part of the path ->
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.20081009.190700-124/drools-solver-core-5.0.0.20081009.190700-124-sources.jar


the sources are there, i can browse and download them manually:
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/


and the snapshot release of a different project (jboss-seam-pdf) from
the same repository is retrieved correctly:

Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288-sources.jar
Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288.jar


i asked the owners of the faulty repository, and they don't seem to
have the same problem.

http://www.nabble.com/drools-5.0.0-SNAPSHOT-Maven-repository-broken--ts19881450.html

and comparing the poms of the working jboss-seam-pdf and the
drools-solver repository i can not find any difference. (but i am a
mvn newbie)

my system is:

Maven version: 2.0.8
Java version: 1.6.0_06
OS name: "linux" version: "2.6.24-19-generic" arch: "amd64" Family: "unix"



below is a simple pom.xml, that creates the error for me (on two
different computers in different networks):

-------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        
        
        <artifactId>testMavenDownloadSources</artifactId>
        <groupId>test</groupId>
        <version>0.1-SNAPSHOT</version>
        <name>testMavenDownload</name>
        
        <build>
                <finalName>testMavenDownload</finalName>
                <pluginManagement>
                        <plugins>
                                <!-- IDE -->
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-eclipse-plugin</artifactId>
                                        <version>2.4</version>
                                        <configuration>
                                                
<downloadSources>true</downloadSources>
                                                
<downloadJavadocs>true</downloadJavadocs>
                                        </configuration>
                                </plugin>
                                <plugin>
                                        
<groupId>org.apache.maven.plugins</groupId>
                                        
<artifactId>maven-dependency-plugin</artifactId>
                                </plugin>

                        </plugins>
                        
                </pluginManagement>
        </build>
        <repositories>
                <repository>
                        <id>snapshots.jboss.org</id>
                        <url>http://snapshots.jboss.org/maven2</url>
                </repository>
                <repository>
                        <id>repository.jboss.org</id>
                        <url>http://repository.jboss.org/maven2</url>
                </repository>
        </repositories>
        
        <dependencies>
                <dependency>
                        <!-- snapshot dependecy that downloads the sources -->
                        <groupId>org.jboss.seam</groupId>
                        <artifactId>jboss-seam-pdf</artifactId>
                        <version>2.1.0-SNAPSHOT</version>               
                </dependency>
                <dependency>
                        <!-- snapshot dependency that does not download the 
sources -->
                        <groupId>org.drools.solver</groupId>
                        <artifactId>drools-solver-core</artifactId>
                        <version>5.0.0.SNAPSHOT</version>
                </dependency>
                
        </dependencies>
        
</project>


-------------------------------------------------------

thank you, tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to