You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by tim tim <ti...@googlemail.com> on 2008/10/13 11:05:08 UTC
mvn2 url resolution for SNAPSHOT sources wrong
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn2 url resolution for SNAPSHOT sources wrong
Posted by Brett Porter <br...@gmail.com>.
'.' is not a valid separator for snapshots - it needs to be -SNAPSHOT.
Drools will need to redeploy it as 5.0.0-SNAPSHOT for it to work.
- Brett
On 13/10/2008, at 8:05 PM, tim tim wrote:
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org