From 328a777cd5a04900894169f50b6cbbfb60ebadd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Boutemy?= Date: Fri, 26 Dec 2014 17:19:40 +0100 Subject: [PATCH] [MNG-5747] keep useLegacyLocalRepositoryManager on copy --- .../maven/execution/DefaultMavenExecutionRequest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 933e1687af..a38ce15731 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 @@ -147,7 +147,7 @@ public class DefaultMavenExecutionRequest */ private boolean noSnapshotUpdates; - private boolean useSimpleLocalRepositoryManager = false; + private boolean useLegacyLocalRepositoryManager = false; public DefaultMavenExecutionRequest() { @@ -191,6 +191,7 @@ public class DefaultMavenExecutionRequest copy.setWorkspaceReader( original.getWorkspaceReader() ); copy.setNoSnapshotUpdates( original.isNoSnapshotUpdates() ); copy.setExecutionListener( original.getExecutionListener() ); + copy.setUseLegacyLocalRepository( original.isUseLegacyLocalRepository() ); return copy; } @@ -1106,12 +1107,12 @@ public class DefaultMavenExecutionRequest public boolean isUseLegacyLocalRepository() { - return this.useSimpleLocalRepositoryManager; + return this.useLegacyLocalRepositoryManager; } - public MavenExecutionRequest setUseLegacyLocalRepository( boolean useSimpleLocalRepositoryManager ) + public MavenExecutionRequest setUseLegacyLocalRepository( boolean useLegacyLocalRepositoryManager ) { - this.useSimpleLocalRepositoryManager = useSimpleLocalRepositoryManager; + this.useLegacyLocalRepositoryManager = useLegacyLocalRepositoryManager; return this; }