mirror of https://github.com/apache/maven.git
PR: MNG-122
remove transitive artifact resolution exception git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1901992586
commit
7129bb1b9e
|
@ -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,
|
||||
|
|
|
@ -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 <a href="mailto:jason@maven.org">Jason van Zyl</a>
|
||||
* @version $Id$
|
||||
*/
|
||||
public class TransitiveArtifactResolutionException
|
||||
extends ArtifactResolutionException
|
||||
{
|
||||
public TransitiveArtifactResolutionException( String message, Artifact artifact, List remoteRepositories,
|
||||
Throwable t )
|
||||
{
|
||||
super( message, artifact, remoteRepositories, t );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue