You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/07/25 18:05:26 UTC

[jira] Updated: (MNG-3678) Maven downloads from snapshot repos even when no snapshot repository is in the pom

     [ http://jira.codehaus.org/browse/MNG-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey updated MNG-3678:
----------------------------

    Fix Version/s: 2.0.11

we can take a closer look at this for 2.0.11, but it's part of the original design of Maven that repositories are aggregated from dependency POMs in order to help search for the next level of transitive dependencies. These dependency-specified repositories are only used for resolving the transitive dependency closure for that artifact's own dependencies, not for sibling artifacts, etc.

The same goes for plugins, IIRC.

In light of this, I'm not sure what you're reporting is actually an error.

> Maven downloads from snapshot repos even when no snapshot repository is in the pom
> ----------------------------------------------------------------------------------
>
>                 Key: MNG-3678
>                 URL: http://jira.codehaus.org/browse/MNG-3678
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: Win XP
>            Reporter: Julien HENRY
>             Fix For: 2.0.11
>
>         Attachments: pom.xml, stack.txt
>
>
> Easy to reproduce. Start with an empty local repository (rename ~/.m2/repository) and use a very simple pom.xml. The tips is to use a pom project instead of a jar project. Now run mvn clean install.
> In the log, you will see:
> ...
> Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/servlet-api-2.5/6.1.5/servlet-api-2.5-6.1.5.jar
> Downloading: http://people.apache.org/repo/m2-snapshot-repository//org/mortbay/jetty/servlet-api-2.5/6.1.5/servlet-api-2.5-6.1.5.jar
> ...
> I think there are some <repository> sections in some pom.xml on Ibiblio that still contain snapshot repositories.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira