mirror of https://github.com/apache/maven.git
[MNG-7332] No longer support --define
The reason is that it is broken in Commons CLI and -D just works. We don't want to work around symptoms. Another point is that java(1) does not have --define either so we'd like to keep that consistent. Closes #611.
This commit is contained in:
parent
0a72185a6e
commit
f43f9f8a3b
|
@ -123,7 +123,7 @@ public class CLIManager
|
|||
options = new Options();
|
||||
options.addOption( Option.builder( Character.toString( HELP ) ).longOpt( "help" ).desc( "Display help information" ).build() );
|
||||
options.addOption( Option.builder( Character.toString( ALTERNATE_POM_FILE ) ).longOpt( "file" ).hasArg().desc( "Force the use of an alternate POM file (or directory with pom.xml)" ).build() );
|
||||
options.addOption( Option.builder( Character.toString( SET_SYSTEM_PROPERTY ) ).longOpt( "define" ).hasArg().desc( "Define a system property" ).build() );
|
||||
options.addOption( Option.builder( Character.toString( SET_SYSTEM_PROPERTY ) ).hasArg().desc( "Define a system property" ).build() );
|
||||
options.addOption( Option.builder( Character.toString( OFFLINE ) ).longOpt( "offline" ).desc( "Work offline" ).build() );
|
||||
options.addOption( Option.builder( Character.toString( VERSION ) ).longOpt( "version" ).desc( "Display version information" ).build() );
|
||||
options.addOption( Option.builder( Character.toString( QUIET ) ).longOpt( "quiet" ).desc( "Quiet output - only show errors" ).build() );
|
||||
|
|
Loading…
Reference in New Issue