diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java index d148472ac1..048b54e85f 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java @@ -98,7 +98,7 @@ public class DefaultArtifactCollector private void recurse( ResolutionNode node, Map resolvedArtifacts, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List listeners ) - throws CyclicDependencyException, TransitiveArtifactResolutionException, OverConstrainedVersionException + throws CyclicDependencyException, ArtifactResolutionException, OverConstrainedVersionException { fireEvent( ResolutionListener.TEST_ARTIFACT, listeners, node ); @@ -265,8 +265,9 @@ public class DefaultArtifactCollector catch ( ArtifactMetadataRetrievalException e ) { artifact.setDependencyTrail( node.getDependencyTrail() ); - throw new TransitiveArtifactResolutionException( e.getMessage(), artifact, remoteRepositories, - e ); + throw new ArtifactResolutionException( + "Unable to get dependency information: " + e.getMessage(), artifact, remoteRepositories, + e ); } recurse( child, resolvedArtifacts, managedVersions, localRepository, remoteRepositories, source, diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/TransitiveArtifactResolutionException.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/TransitiveArtifactResolutionException.java deleted file mode 100644 index 7578a1efa8..0000000000 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/TransitiveArtifactResolutionException.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.apache.maven.artifact.resolver; - -import org.apache.maven.artifact.Artifact; - -import java.util.List; - -/* - * Copyright 2001-2005 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @author Jason van Zyl - * @version $Id$ - */ -public class TransitiveArtifactResolutionException - extends ArtifactResolutionException -{ - public TransitiveArtifactResolutionException( String message, Artifact artifact, List remoteRepositories, - Throwable t ) - { - super( message, artifact, remoteRepositories, t ); - } -}