[MNG-4433] [regression] command line option "-update-snapshots" does not work for parent POMs

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@834587 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-11-10 18:32:14 +00:00
parent c10f412029
commit 27ff5d5c41
2 changed files with 2 additions and 0 deletions

View File

@ -965,6 +965,7 @@ public class DefaultMavenExecutionRequest
projectBuildingRequest.setPluginArtifactRepositories( getPluginArtifactRepositories() );
projectBuildingRequest.setRepositoryCache( getRepositoryCache() );
projectBuildingRequest.setOffline( isOffline() );
projectBuildingRequest.setForceUpdate( isUpdateSnapshots() );
projectBuildingRequest.setServers( getServers() );
projectBuildingRequest.setMirrors( getMirrors() );
projectBuildingRequest.setProxies( getProxies() );

View File

@ -166,6 +166,7 @@ class RepositoryModelResolver
request.setOffline( projectBuildingRequest.isOffline() );
request.setCache( projectBuildingRequest.getRepositoryCache() );
request.setTransferListener( projectBuildingRequest.getTransferListener() );
request.setForceUpdate( projectBuildingRequest.isForceUpdate() );
ArtifactResolutionResult result = repositorySystem.resolve( request );