cstamas opened a new pull request, #11245:
URL: https://github.com/apache/maven/pull/11245

   When CLI contains unsupported parameters, the `context.options` may be null, 
that is violated by `populateUserProperties` method.
   
   Before (master):
   ```
   $ mvn --encrypt-master-password xxxxx
   [ERROR] Error executing Maven.
   [ERROR] Error parsing program arguments
   [ERROR] Caused by: Failed to parse CLI arguments: Unrecognized option: 
--encrypt-master-password
   [ERROR] Error populating user properties
   [ERROR] Caused by: Cannot invoke 
"org.apache.maven.api.cli.Options.userProperties()" because "context.options" 
is null
   [ERROR] Error reading core extensions descriptor
   [ERROR] Caused by: null
   $
   ```
   
   With PR:
   ```
   $ mvn --encrypt-master-password 
   [ERROR] Error executing Maven.
   [ERROR] Error parsing program arguments
   [ERROR] Caused by: Failed to parse CLI arguments: Unrecognized option: 
--encrypt-master-password
   $
   ```
   
   Backport of 7baf2a8921923bb4782490e0adb5d4b0381ae4fc


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to