I agree setting up pipeline variable is the best and the recommended way to use password protected maven repo within cloud manager.However, if you are simply looking for reading custom settings.xml defined in your custom codebase you can look at the build profile and maven build command.
mvn -s C:\...