You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien HENRY (JIRA)" <ji...@codehaus.org> on 2008/07/24 10:40:27 UTC

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

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
         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

        

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

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Julien HENRY (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143214#action_143214 ] 

Julien HENRY commented on MNG-3678:
-----------------------------------

I understand the concept but I think it is an error that some released plugins or dependencies (especially Maven default one) are still referencing a snapshot repository. Also I thought Ibilio policy was to be self-containing. So I think no external repository should be allowed in pom.xml in Ibiblio.

> 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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3678.
-----------------------------

         Assignee: Brett Porter
       Resolution: Not A Bug
    Fix Version/s:     (was: 2.2.1)

this is by design - the problem is the reference to the old version of the site plugin, which will be updated in due course

> 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
>            Assignee: Brett Porter
>         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

        

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

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=143041#action_143041 ] 

Vincent Siveton commented on MNG-3678:
--------------------------------------

Some default plugins defined in the super pom [1] specify some repositories (like maven-assembly-plugin:2.2-beta-2) or use dependencies which have repositories section in their pom (like maven-ear-plugin:2.3.1 with maven-project:2.0.4->maven-project:2.0.4)

[1] https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-project/src/main/resources/org/apache/maven/project/pom-4.0.0.xml

> 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
>         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

        

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

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159770#action_159770 ] 

Stephane Nicoll commented on MNG-3678:
--------------------------------------

Well, I have exactly the opposite :)

I am trying to run the ITs of the EAR plugin with 2.0.9 and it keeps downloading version 2.3.1 of the plugin even though I added the snapshot repo in the settings of the IT. If I run maven on the command line with -U it does not download the 2.3.2-SNAPSHOT either ! 

Switching to mvn 2.0.8 and invoking the exact same command with the same repo and the same settings just works.

Anybody knows what's happening? This is bad since it seems I can't use a snapshot plugin with 2.0.9 anymore

> 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