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

   `mvn --encrypt-password` printed a bare `FileNotFoundException`, 
`BadPaddingException` or `ArrayIndexOutOfBoundsException` when 
`settings-security.xml` was missing or its `<master>` was not the output of 
`--encrypt-master-password`. Each case now names the file and the way out, and 
the master password is checked before the prompt for the password to encrypt. 
The cipher failure stays visible with `-e`.
   
   `maven-4.0.x` and master do not have this code. `maven-3.9.x` has it and is 
not changed here.
   
   Verified: `mvn -Dsettings.security=<file whose master is encrypted with 
another key> -ep x` on the built distribution → `Cannot decrypt the master 
password in the settings security file <file>. The <master> value must be the 
output of 'mvn --encrypt-master-password': …`


-- 
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