if no artifacts found try next repository

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1390906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-27 09:11:37 +00:00
parent fc214ca25e
commit 1e0f4369eb
1 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,6 @@ import org.springframework.stereotype.Service;
import javax.inject.Inject;
import javax.inject.Named;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
import java.io.File;
import java.io.IOException;
@ -685,9 +684,10 @@ public class DefaultBrowseService
List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>(
metadataResolver.resolveArtifacts( session, repoId, groupId, artifactId, version ) );
Collections.sort( artifacts, ArtifactMetadataVersionComparator.INSTANCE );
if ( artifacts != null && !artifacts.isEmpty() )
{
return buildArtifacts( artifacts, repoId );
}
}
}
catch ( MetadataResolutionException e )