mirror of https://github.com/apache/maven.git
[MNG-4247] Displaying which artifacts are downloaded and from which repo
Only displaying a simple : [INFO] Downloaded http://x.x.x.x:x/....... As there is so much places where ArtifactResolutionRequest is created without any access to mavenExecutionRequest.getTransferListener() Issue id: MNG-4247 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@797678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aae5e98767
commit
5ad174e3d6
|
@ -43,6 +43,11 @@ public class ArtifactResolutionRequest
|
|||
|
||||
private boolean resolveTransitively = false;
|
||||
|
||||
public ArtifactResolutionRequest( )
|
||||
{
|
||||
// nothing here
|
||||
}
|
||||
|
||||
public Artifact getArtifact()
|
||||
{
|
||||
return artifact;
|
||||
|
|
|
@ -346,6 +346,9 @@ public class DefaultWagonManager
|
|||
|
||||
if ( downloaded )
|
||||
{
|
||||
|
||||
logger.info( "Downloaded " + repository.getUrl() + remotePath );
|
||||
|
||||
// keep the checksum files from showing up on the download monitor...
|
||||
if ( downloadMonitor != null )
|
||||
{
|
||||
|
|
|
@ -81,7 +81,8 @@ public class DefaultProjectDependenciesResolver
|
|||
.setRemoteRepostories( remoteRepositories )
|
||||
.setManagedVersionMap( project.getManagedVersionMap() )
|
||||
.setFilter( filter );
|
||||
|
||||
// FIXME setTransferListener
|
||||
|
||||
ArtifactResolutionResult result = repositorySystem.resolve( request );
|
||||
resolutionErrorHandler.throwErrors( request, result );
|
||||
project.setArtifacts( result.getArtifacts() );
|
||||
|
|
|
@ -133,7 +133,7 @@ public class DefaultPluginManager
|
|||
.setLocalRepository( localRepository )
|
||||
.setRemoteRepostories( remoteRepositories )
|
||||
.setResolveTransitively( false );
|
||||
|
||||
// FIXME setTransferListener
|
||||
ArtifactResolutionResult result = repositorySystem.resolve( request );
|
||||
|
||||
try
|
||||
|
@ -275,6 +275,7 @@ public class DefaultPluginManager
|
|||
.setFilter( filter )
|
||||
.setResolveTransitively( true );
|
||||
//.setResolveRoot( false );
|
||||
// FIXME setTransferListener
|
||||
|
||||
ArtifactResolutionResult result = repositorySystem.resolve( request );
|
||||
resolutionErrorHandler.throwErrors( request, result );
|
||||
|
|
|
@ -231,7 +231,7 @@ public class DefaultProjectBuilder
|
|||
.setArtifact( artifact )
|
||||
.setLocalRepository( configuration.getLocalRepository() )
|
||||
.setRemoteRepostories( configuration.getRemoteRepositories() );
|
||||
|
||||
// FIXME setTransferListener
|
||||
ArtifactResolutionResult result = repositorySystem.resolve( request );
|
||||
|
||||
try
|
||||
|
@ -307,7 +307,7 @@ public class DefaultProjectBuilder
|
|||
.setLocalRepository( request.getLocalRepository() )
|
||||
.setRemoteRepostories( project.getRemoteArtifactRepositories() )
|
||||
.setManagedVersionMap( project.getManagedVersionMap() );
|
||||
|
||||
// FIXME setTransferListener
|
||||
ArtifactResolutionResult result;
|
||||
|
||||
ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
|
|
|
@ -187,7 +187,8 @@ public class DefaultProjectBuildingHelper
|
|||
request.setFilter( artifactFilterManager.getCoreArtifactFilter() );
|
||||
request.setLocalRepository( localRepository );
|
||||
request.setRemoteRepostories( remoteRepositories );
|
||||
|
||||
// FIXME setTransferListener
|
||||
|
||||
ArtifactResolutionResult result = repositorySystem.resolve( request );
|
||||
|
||||
resolutionErrorHandler.throwErrors( request, result );
|
||||
|
|
|
@ -23,9 +23,11 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.apache.maven.MavenTransferListener;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.model.Profile;
|
||||
import org.apache.maven.model.building.ModelBuildingRequest;
|
||||
import org.apache.maven.wagon.events.TransferListener;
|
||||
|
||||
public interface ProjectBuildingRequest
|
||||
{
|
||||
|
@ -140,5 +142,9 @@ public interface ProjectBuildingRequest
|
|||
* @return This request, never {@code null}.
|
||||
*/
|
||||
void setBuildStartTime( Date buildStartTime );
|
||||
|
||||
// TODO ?
|
||||
//TransferListener getTransferListener();
|
||||
//void setTransferListener ( TransferListener transferListener );
|
||||
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ class RepositoryModelResolver
|
|||
request.setArtifact( artifactParent );
|
||||
request.setLocalRepository( localRepository );
|
||||
request.setRemoteRepostories( remoteRepositories );
|
||||
|
||||
// FIXME setTransferListener
|
||||
ArtifactResolutionResult result = repositorySystem.resolve( request );
|
||||
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue