diff --git a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java index b0c45021e1..937cc8e6e0 100644 --- a/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java +++ b/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java @@ -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() ); diff --git a/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java b/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java index 405e0d6b11..86a6f58ad0 100644 --- a/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java +++ b/maven-core/src/main/java/org/apache/maven/project/RepositoryModelResolver.java @@ -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 );