mirror of https://github.com/apache/maven.git
[MNG-5185] [MNG-5181]
can be activated using -Dmaven.simpleLocalRepoMan=true (for add in MAVEN_OPTS)
This commit is contained in:
parent
27f8b0f81a
commit
8ada7e763b
|
@ -136,7 +136,9 @@ public class CLIManager
|
|||
options.addOption( OptionBuilder.withLongOpt( "encrypt-password" ).hasArg().withDescription( "Encrypt server password" ).create( ENCRYPT_PASSWORD ) );
|
||||
options.addOption( OptionBuilder.withLongOpt( "threads" ).hasArg().withDescription( "Thread count, for instance 2.0C where C is core multiplied" ).create( THREADS ) );
|
||||
|
||||
options.addOption( OptionBuilder.withLongOpt( "simple-local-repository-manager" ).withDescription( "Use a simple local Repository Manager (no use of _maven.repositories)" ).create( SIMPLE_LOCAL_REPOSITORY_MANAGER ) );
|
||||
options.addOption( OptionBuilder.withLongOpt( "simple-local-repository-manager" ).withDescription(
|
||||
"Use a simple local Repository Manager (no use of _maven.repositories) can be activated using -Dmaven.simpleLocalRepoMan=true" ).create(
|
||||
SIMPLE_LOCAL_REPOSITORY_MANAGER ) );
|
||||
// Adding this back in for compatibility with the verifier that hard codes this option.
|
||||
|
||||
options.addOption( OptionBuilder.withLongOpt( "no-plugin-registry" ).withDescription( "Ineffective, only kept for backward compatibility" ).create( "npr" ) );
|
||||
|
|
|
@ -542,7 +542,7 @@ public class MavenCli
|
|||
private void repository( CliRequest cliRequest )
|
||||
throws Exception
|
||||
{
|
||||
if ( cliRequest.commandLine.hasOption( CLIManager.SIMPLE_LOCAL_REPOSITORY_MANAGER ) )
|
||||
if ( cliRequest.commandLine.hasOption( CLIManager.SIMPLE_LOCAL_REPOSITORY_MANAGER ) || Boolean.getBoolean( "maven.simpleLocalRepoMan" ) )
|
||||
{
|
||||
cliRequest.request.setUseSimpleLocalRepostoryManager( true );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue