maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (WAGON-73) MirroredWagon infinite loop
Date Fri, 03 Aug 2007 01:28:13 GMT

    [ 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

        

Mime
View raw message