mirror of https://github.com/apache/maven.git
o leave the setting of the path to the artifactResolver
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3d6106465
commit
cd21e94926
|
@ -51,12 +51,9 @@ public class DefaultWagonManager
|
|||
private PlexusContainer container;
|
||||
|
||||
public Artifact createArtifact( String groupId, String artifactId, String version, String type )
|
||||
throws ArtifactHandlerNotFoundException
|
||||
{
|
||||
Artifact artifact = new DefaultArtifact( groupId, artifactId, version, type );
|
||||
|
||||
artifact.setPath( path( artifact ) );
|
||||
|
||||
return artifact;
|
||||
}
|
||||
|
||||
|
@ -77,14 +74,6 @@ public class DefaultWagonManager
|
|||
return wagon;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param wagon
|
||||
* @throws Exception
|
||||
* @todo how we can handle exception here? Maybe we should just swallow it?
|
||||
* Plexus exception handling is not very precise here (it sucks in short words:) )
|
||||
* Maybe plexus should not throw any exception here as this is internal problem of plexus
|
||||
* and any ingeration from outside or intelligent error handlig are rather excluded.
|
||||
*/
|
||||
public void releaseWagon( Wagon wagon )
|
||||
throws Exception
|
||||
{
|
||||
|
@ -105,15 +94,6 @@ public class DefaultWagonManager
|
|||
releaseWagon( wagon );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the requested artifact from any of the remote repositories and place in
|
||||
* the specified local ArtifactRepository.
|
||||
*
|
||||
* @param artifact
|
||||
* @param remoteRepositories
|
||||
* @param localRepository
|
||||
* @throws TransferFailedException
|
||||
*/
|
||||
public void get( Artifact artifact, Set remoteRepositories, ArtifactRepository localRepository )
|
||||
throws TransferFailedException
|
||||
{
|
||||
|
@ -211,7 +191,9 @@ public class DefaultWagonManager
|
|||
catch ( TransferFailedException e )
|
||||
{
|
||||
getLogger().warn( "Failure getting artifact from repository '" + repository + "': " + e );
|
||||
|
||||
getLogger().debug( "Stack trace", e );
|
||||
|
||||
continue;
|
||||
}
|
||||
catch ( Exception e )
|
||||
|
|
|
@ -18,6 +18,7 @@ package org.apache.maven.artifact.manager;
|
|||
*/
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.handler.manager.ArtifactHandlerNotFoundException;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.wagon.TransferFailedException;
|
||||
|
@ -46,5 +47,7 @@ public interface WagonManager
|
|||
throws TransferFailedException;
|
||||
|
||||
void put( File source, Artifact artifact, ArtifactRepository deploymentRepository )
|
||||
throws Exception;
|
||||
throws Exception;
|
||||
|
||||
Artifact createArtifact( String groupId, String artifactId, String version, String type );
|
||||
}
|
Loading…
Reference in New Issue