mirror of https://github.com/apache/maven.git
o Include the enabled policy in the log output (just saying "can't resolve X from Y when Y actually contains X is rather confusing...)
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@786909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f2c5b4511
commit
863135a347
|
@ -25,6 +25,7 @@ import java.util.List;
|
|||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
|
||||
|
||||
/**
|
||||
* Base class for artifact resolution exceptions.
|
||||
|
@ -212,6 +213,19 @@ public class AbstractArtifactResolutionException
|
|||
sb.append( remoteRepository.getId() );
|
||||
sb.append( " (" );
|
||||
sb.append( remoteRepository.getUrl() );
|
||||
|
||||
ArtifactRepositoryPolicy releases = remoteRepository.getReleases();
|
||||
if ( releases != null )
|
||||
{
|
||||
sb.append( ", releases=" ).append( releases.isEnabled() );
|
||||
}
|
||||
|
||||
ArtifactRepositoryPolicy snapshots = remoteRepository.getSnapshots();
|
||||
if ( snapshots != null )
|
||||
{
|
||||
sb.append( ", snapshots=" ).append( snapshots.isEnabled() );
|
||||
}
|
||||
|
||||
sb.append( ")" );
|
||||
if ( i.hasNext() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue