You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Edwin Punzalan (JIRA)" <ji...@codehaus.org> on 2005/06/17 03:06:23 UTC

[jira] Created: (MNG-479) unable to override the default central repository

unable to override the default central repository
-------------------------------------------------

         Key: MNG-479
         URL: http://jira.codehaus.org/browse/MNG-479
     Project: Maven 2
        Type: Bug
  Components: maven-core  
    Versions: 2.0-alpha-2    
 Environment: WinXP
    Reporter: Edwin Punzalan
    Priority: Minor


Adding to my pom.xml:
....
    <repositories>
        <repository>
            <id>central</id>
            <name>custom repository</name>
            <url>http://maven.company.com/maven2</url>
        </repository>
    </repositories>
....

did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MNG-479) unable to override the default central repository

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]
     
Kenney Westerhof reopened MNG-479:
----------------------------------


The patch didn't fix it, see attached integration test.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: Brett Porter
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-479) unable to override the default central repository

Posted by "Rahul Thakur (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]

Rahul Thakur updated MNG-479:
-----------------------------

    Attachment: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff

Please use this one. Tested along with updated unit test. 

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-479) unable to override the default central repository

Posted by "Rahul Thakur (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]

Rahul Thakur updated MNG-479:
-----------------------------

    Attachment: DefaultModelInheritanceAssembler.diff

Minor patch. Haven't tested as the latest svn build is broken. 

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler.diff
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-479) unable to override the default central repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-479?page=comments#action_44412 ] 

Brett Porter commented on MNG-479:
----------------------------------

honestly, I think we should get rid of id's altogether and start keying by the url, with hostname as a generalisation.

We should add a settings element that specifies whether the default repositories are used - I don't know if a project ever really needs to knock them out itself (besides, its transitive deps are going to go right back there...)


> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-479) unable to override the default central repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]

Brett Porter updated MNG-479:
-----------------------------

    Fix Version: 2.0-beta-1

when speaking to Jason we came to the conclusion that this shouldn't be allowed, but we need to review and then document and do a failure in this instance instead of the current non-determinate behaviour.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Priority: Minor
>      Fix For: 2.0-beta-1

>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-479) unable to override the default central repository

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-479?page=comments#action_42738 ] 

John Casey commented on MNG-479:
--------------------------------

Actually, I disagree. I believe that this could be a very useful feature in certain circumstances. For example, if a company wishes to have ultimate control over what is and isn't used in their projects (whether for security, IP, or other reasons), then a logical first step might be to run m2 in an isolated environment and never access the default central repository. In this case, they would even mirror those artifacts found on ibiblio that they want to use - perhaps after somehow vetting them for security or IP concerns. If we disallow overriding of the central repository, then the best experience they can expect is to have error after error in their build process because they have a firewall or router that blocks connections to ibiblio.

There are perfectly valid use cases for not using the default central repository.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Minor
>      Fix For: 2.0-beta-1

>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-479) unable to override the default central repository

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]
     
John Casey closed MNG-479:
--------------------------

    Resolution: Fixed

added integration test under it0054.

This has been obsoleted by the fix for MNG-757

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-479) unable to override the default central repository

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]

John Casey updated MNG-479:
---------------------------

           Description: 
Adding to my pom.xml:
....
    <repositories>
        <repository>
            <id>central</id>
            <name>custom repository</name>
            <url>http://maven.company.com/maven2</url>
        </repository>
    </repositories>
....

did not override the central repository but instead uses the above configured repository as backup/mirror.

  was:
Adding to my pom.xml:
....
    <repositories>
        <repository>
            <id>central</id>
            <name>custom repository</name>
            <url>http://maven.company.com/maven2</url>
        </repository>
    </repositories>
....

did not override the central repository but instead uses the above configured repository as backup/mirror.

    Remaining Estimate: 1 hour
     Original Estimate: 3600

updating the original estimate to reflect the time needed to setup the test and verify the results. This has been fixed by the fix for MNG-757. Will close as soon as it's verified.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-479) unable to override the default central repository

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]

Kenney Westerhof updated MNG-479:
---------------------------------

    Attachment: it0042.tgz

An integration test using projecthelp:effective-pom to see if the central repository has been overridden.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: Brett Porter
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-479) unable to override the default central repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-479?page=comments#action_44811 ] 

Brett Porter commented on MNG-479:
----------------------------------

I don't want this bug to track the changes in IDs - there is a separate bug for that already.

but yes, key based on URL, authenticate based on the hostname part of the URL and the protocol used.

That's probably not rich enough. I'd like to think about it some more. We might live with id's for v2.0

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-479) unable to override the default central repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]
     
Brett Porter closed MNG-479:
----------------------------

     Assign To: Brett Porter  (was: John Casey)
    Resolution: Fixed

applied, thanks!

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: Brett Porter
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-479) unable to override the default central repository

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-479?page=comments#action_44260 ] 

John Casey commented on MNG-479:
--------------------------------

I've been rethinking this one a little bit, and I'm not sure we should allow redefinition of repositories. The problem is the intention of doing this: what you're really trying to achieve is isolation from the public repositories, right? Otherwise, why redefine the 'central' repository? So, if you're doing that, you really want your overridden repository to be used by everything in your transitive dependency graph. However, since POMs must have the ability to state their own build environment - including the repositories used to track down their dependencies - they must resolve using a repository list independent of the project being built...which means that the overridden 'central' repository is reverted to the one specified in the super-pom for transitive deps. This is what Kenney is describing above.

I believe what a user would be actually trying to achieve is mirroring of the central repository in this case. Currently, this is possible using the settings.xml, which can also be configured at the global installation level. Not ideal if each developer workstation has a separate install of maven, but maybe ok as a first step...

I think we should actively warn if a user tries to override pre-existing repositories, and drop the override. We can tell them to use the mirror functionality instead.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-479) unable to override the default central repository

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-479?page=comments#action_44493 ] 

John Casey commented on MNG-479:
--------------------------------

Will we retain the mirroring functionality, and just identify mirror-master relationships by the master's URL, then? That seems like a pretty good way to do things, except for one lingering problem: authentication. We're currently keying in on the repository id in order to lookup authentication info out of the settings.xml...if we go by full URL, there will be a lot of duplication. I suppose this is where you're talking about the hostname being used?

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-479) unable to override the default central repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]
     
Brett Porter closed MNG-479:
----------------------------

    Resolution: Fixed

patch was back to front, ensuring the parent always won (including the test case).

reversed - fixed.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Assignee: Brett Porter
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MNG-479) unable to override the default central repository

Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-479?page=all ]
     
Kenney Westerhof reopened MNG-479:
----------------------------------

     Assign To:     (was: Brett Porter)

Still doesn't work when specified in either the pom or the settings.xml.
It seems only direct dependencies of the project are resolved in the overrided repo's.
As soon as an indirect dep is found the super-pom seems to be the parent of that indirect dep's pom,
effectively erasing the override. This is even the case when override repo's  are specified in settings.xml.
The closest I got to overriding is specifying a mirror, but that doesn't work for snapshot repo's, so some snapshots cannot be found.

> unable to override the default central repository
> -------------------------------------------------
>
>          Key: MNG-479
>          URL: http://jira.codehaus.org/browse/MNG-479
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-2
>  Environment: WinXP
>     Reporter: Edwin Punzalan
>     Priority: Blocker
>      Fix For: 2.0-beta-1
>  Attachments: DefaultModelInheritanceAssembler-with-updated-JUnitTest.diff, DefaultModelInheritanceAssembler.diff, it0042.tgz
>
>
> Adding to my pom.xml:
> ....
>     <repositories>
>         <repository>
>             <id>central</id>
>             <name>custom repository</name>
>             <url>http://maven.company.com/maven2</url>
>         </repository>
>     </repositories>
> ....
> did not override the central repository but instead uses the above configured repository as backup/mirror.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org