mirror of https://github.com/apache/archiva.git
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:
parent
fc214ca25e
commit
1e0f4369eb
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue