Hiteshsai007 commented on issue #10202: URL: https://github.com/apache/maven/issues/10202#issuecomment-4877538325
I have opened a PR to address this issue. **Root Cause:** The `Init` goal in `maven-cli` presents editable templates like `env:$VARIABLE_NAME` during the encryption setup wizard. When the user provides their input (e.g., `MVN_PASSWORD`), the code saves only the raw input, discarding the required `env:` prefix. This results in `<value>MVN_PASSWORD</value>` in `settings-security4.xml` instead of the correct `<value>env:MVN_PASSWORD</value>`. The `MasterDispatcher` in `plexus-sec-dispatcher` then fails validation because no `MasterSource` can handle a config string without its prefix, producing the "Configured Source configuration not handled" error. **Fix:** After the user provides input for an editable field, the code now extracts the prefix from the template (everything before the `$` placeholder) and automatically prepends it if the user's input doesn't already include it. This ensures `settings-security4.xml` always contains well-formed source values regardless of whether the user includes the prefix themselves. -- 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]
