You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "William Ferguson (JIRA)" <ji...@codehaus.org> on 2007/08/03 03:28:13 UTC

[jira] Commented: (WAGON-73) MirroredWagon infinite loop

    [ http://jira.codehaus.org/browse/WAGON-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103900 ] 

William Ferguson commented on WAGON-73:
---------------------------------------

OK, our workaround to this bug (overriding the central repository in settings.xml instead of creating a mirror for it). Ie

			<repositories>
				<repository>
					<id>central</id>
					<name>Overrride of Central (not mirror)</name>
					<url>http://zosma.oz.hubbub.com.au:8080/proximity/repository/release</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
			<pluginRepositories>
				<pluginRepository>
					<id>central</id>
					<name>Override of Central</name>
					<url>http://zosma.oz.hubbub.com.au:8080/proximity/repository/release</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</pluginRepository>
			</pluginRepositories>

appears to work for all maven components except when there is a dependency on the maven-archetype-plugin.
For some reason 'mvn archetype:create ..' causes all Maven artifacts to be retrieved from the *real* central and not the one we have overridden in settings.xml. Whereas 'mvn clean compile' retrieves the Maven components from the overridden location.

We are currently stuck in a situation, where either
  a) 'mvn archetype:create' works
  b) Eclipse can download Maven dependencies
But not both.

So can we please get the patch applied?

> MirroredWagon infinite loop
> ---------------------------
>
>                 Key: WAGON-73
>                 URL: http://jira.codehaus.org/browse/WAGON-73
>             Project: wagon
>          Issue Type: Bug
>            Reporter: Phillip Webb
>            Assignee: Joakim Erdfelt
>            Priority: Critical
>             Fix For: 2.0
>
>         Attachments: returnsonmirroredwagon.patch, WAGON-73-ConnectAndGetTest.patch, WagonManagerTest.java.patch
>
>
> The MirroredWagon class includes a get method that runs into an infinite loop.
> I think a return is required after this.impl.get( resource, destination );
>     public void get( String resource, File destination )
>         throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
>     {
>         try
>         {
>             while ( true )
>             {
>                 try
>                 {
>                     this.impl.get( resource, destination );
>                 }
>                 catch ( TransferFailedException e )
>                 {
>                     nextMirror();
>                 }
>             }
>         }
>         catch ( ExhaustedMirrorsException e )
>         {
>         }
>     }

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