maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r786909 - /maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java
Date Sat, 20 Jun 2009 21:20:48 GMT
Author: bentmann
Date: Sat Jun 20 21:20:46 2009
New Revision: 786909

URL: http://svn.apache.org/viewvc?rev=786909&view=rev
Log:
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...)

Modified:
    maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java

Modified: maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java?rev=786909&r1=786908&r2=786909&view=diff
==============================================================================
--- maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java
(original)
+++ maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/resolver/AbstractArtifactResolutionException.java
Sat Jun 20 21:20:46 2009
@@ -25,6 +25,7 @@
 
 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 @@
                 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() )
                 {



Mime
View raw message