Maven 1

Maven doesn't try to find snapshots in all repositories

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-rc1
  • Component/s: core
  • Labels:
    None
  • Number of attachments :
    0

Description

In my environment I have several remote repositories.
When Maven tries to update a snapshot, as soon as it found the snapshot on a given repo, it doesn't try to check if there's a more recent in another repo.

Activity

Hide
Lukas Theussl added a comment -

I can't seem to be able to reproduce anything these days ... or am I missing something:

maven plugin:download -Dmaven.repo.remote=http://people.apache.org/repo/m1-snapshot-repository/,http://repo1.maven.org/maven -DgroupId=maven -DartifactId=maven-xdoc-plugin -Dversion=1.10.1-SNAPSHOT
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-RC1-SNAPSHOT

build:start:

plugin:download-artifact:
    [echo] repo is 'http://people.apache.org/repo/m1-snapshot-repository/'
    [echo] trying to download http://people.apache.org/repo/m1-snapshot-repository//maven/plugins/maven-xdoc-plugin-1.10.1-SNAPSHOT.jar
.................... (211K)
    [echo] repo is 'http://repo1.maven.org/maven'
    [echo] trying to download http://repo1.maven.org/maven/maven/plugins/maven-xdoc-plugin-1.10.1-SNAPSHOT.jar

plugin:download:
    [delete] Deleting 1 files from /home/lukas/local/java/maven/trunk/plugins
    [delete] /home/lukas/.maven/plugins not found.
    [delete] Deleting 148 files from /home/lukas/.maven/cache
    [delete] Deleted 15 directories from /home/lukas/.maven/cache
    [copy] Copying 1 file to /home/lukas/local/java/maven/trunk/plugins
BUILD SUCCESSFUL

Show
Lukas Theussl added a comment - I can't seem to be able to reproduce anything these days ... or am I missing something:
maven plugin:download -Dmaven.repo.remote=http://people.apache.org/repo/m1-snapshot-repository/,http://repo1.maven.org/maven -DgroupId=maven -DartifactId=maven-xdoc-plugin -Dversion=1.10.1-SNAPSHOT
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-RC1-SNAPSHOT

build:start:

plugin:download-artifact:
    [echo] repo is 'http://people.apache.org/repo/m1-snapshot-repository/'
    [echo] trying to download http://people.apache.org/repo/m1-snapshot-repository//maven/plugins/maven-xdoc-plugin-1.10.1-SNAPSHOT.jar
.................... (211K)
    [echo] repo is 'http://repo1.maven.org/maven'
    [echo] trying to download http://repo1.maven.org/maven/maven/plugins/maven-xdoc-plugin-1.10.1-SNAPSHOT.jar

plugin:download:
    [delete] Deleting 1 files from /home/lukas/local/java/maven/trunk/plugins
    [delete] /home/lukas/.maven/plugins not found.
    [delete] Deleting 148 files from /home/lukas/.maven/cache
    [delete] Deleted 15 directories from /home/lukas/.maven/cache
    [copy] Copying 1 file to /home/lukas/local/java/maven/trunk/plugins
BUILD SUCCESSFUL

Hide
Arnaud Heritier added a comment -

You're right. The plugin:download doesn't seem to reproduce this problem.
Can you try to build the multichanges plugin which has a SNAPSHOT dependency actually. Here it's what I have :

$ maven -Dmaven.repo.remote=http://people.apache.org/repo/m1-snapshot-repository/,http://repo1.maven.org/maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-RC1-SNAPSHOT

Trying to get missing/snapshot dependencies required by Maven MultiChanges Plugin:
Attempting to download maven-changes-plugin-1.7-SNAPSHOT.jar( groupid = maven, artifactid = maven-changes-plugin, version = 1.7-SNAPSHOT, type = jar ).
Searching in repository : http://people.apache.org/repo/m1-snapshot-repository/
Required credentials not available for BASIC <any realm>@people.apache.org:80
Preemptive authentication requested but no default credentials available
Skipping download as local copy is up to date!
build:start:

plugin:plugin:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to c:\USERS\JTBox\projects\maven-1\plugins\multichanges/target/classes

java:jar-resources:

test:test:
[echo] No tests to run.

jar:jar:

[echo] Rewriting POM...
[copy] Copying 1 file to C:\USERS\JTBox\projects\maven-1\plugins\multichanges\target
[jar] Updating jar: C:\USERS\JTBox\projects\maven-1\plugins\multichanges\target\maven-multichanges-plugin-1.3-SNAPSHOT.jar
[delete] Deleting: C:\USERS\JTBox\projects\maven-1\plugins\multichanges\target\project.xml
BUILD SUCCESSFUL

Total time : 5 seconds
Finished at : Friday, November 10, 2006 1:52:01 PM CET

Maven doesn't try to download the SNAPSHOT from : http://repo1.maven.org/maven

Show
Arnaud Heritier added a comment - You're right. The plugin:download doesn't seem to reproduce this problem. Can you try to build the multichanges plugin which has a SNAPSHOT dependency actually. Here it's what I have :
$ maven -Dmaven.repo.remote=http://people.apache.org/repo/m1-snapshot-repository/,http://repo1.maven.org/maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-RC1-SNAPSHOT

Trying to get missing/snapshot dependencies required by Maven MultiChanges Plugin:
Attempting to download maven-changes-plugin-1.7-SNAPSHOT.jar( groupid = maven, artifactid = maven-changes-plugin, version = 1.7-SNAPSHOT, type = jar ).
Searching in repository : http://people.apache.org/repo/m1-snapshot-repository/
Required credentials not available for BASIC <any realm>@people.apache.org:80
Preemptive authentication requested but no default credentials available
Skipping download as local copy is up to date!
build:start:

plugin:plugin:
java:prepare-filesystem:

java:init:

java:compile:
[echo] Compiling to c:\USERS\JTBox\projects\maven-1\plugins\multichanges/target/classes

java:jar-resources:

test:test:
[echo] No tests to run.

jar:jar:

[echo] Rewriting POM...
[copy] Copying 1 file to C:\USERS\JTBox\projects\maven-1\plugins\multichanges\target
[jar] Updating jar: C:\USERS\JTBox\projects\maven-1\plugins\multichanges\target\maven-multichanges-plugin-1.3-SNAPSHOT.jar
[delete] Deleting: C:\USERS\JTBox\projects\maven-1\plugins\multichanges\target\project.xml
BUILD SUCCESSFUL

Total time : 5 seconds
Finished at : Friday, November 10, 2006 1:52:01 PM CET
Maven doesn't try to download the SNAPSHOT from : http://repo1.maven.org/maven
Hide
Lukas Theussl added a comment -

Ok, I can reproduce that.
I don't really know what's going on though, what is the difference with the former case?

Show
Lukas Theussl added a comment - Ok, I can reproduce that. I don't really know what's going on though, what is the difference with the former case?
Hide
Lukas Theussl added a comment -

Ok, I know what's the difference: plugin:download is still using the (deprecated) HttpUtils. So there is something to fix in Maven's DependencyVerifier class.

Show
Lukas Theussl added a comment - Ok, I know what's the difference: plugin:download is still using the (deprecated) HttpUtils. So there is something to fix in Maven's DependencyVerifier class.
Hide
Arnaud Heritier added a comment -

ok. I'll try to fix it this WE.
Thanks for the test.

Show
Arnaud Heritier added a comment - ok. I'll try to fix it this WE. Thanks for the test.
Hide
Arnaud Heritier added a comment -

It's the normal behavior. In theory, a project doesn't deploy its snapshots on several repositories. For one project you have a repository for snapshots and one for release (or only one for both).

Show
Arnaud Heritier added a comment - It's the normal behavior. In theory, a project doesn't deploy its snapshots on several repositories. For one project you have a repository for snapshots and one for release (or only one for both).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: