The “username” value is as set in Variables.Īny suggestion on how to figure this out would be much appreciated. Using connector BasicRepositor圜onnector with priority 0.0 for with username=maven_user, password=*** It appears that the variables are correct passed in as further down I find mvn -f /builds/$CI_PROJECT_PATH/pom.xml clean install -U -B -XĪll the steps appears to be correct except this error: Failed to decrypt password for server my-repo: .: .cipher.PlexusCipherException: When you invoke Maven from the command-line to run a plugin goal directly, Maven uses a standalone POM that does not use the repositories listed in the settings.xml file unless they are part of a profile that is set to be 'active by default'. cp gitlab/settings-security.xml /root/.m2/settings-security.xml To add Azure Artifacts authentication to your custom settings.xml, add a server element inside your settings.xml file: XML. cp gitlab/settings.xml /root/.m2/settings.xml The Maven Authenticate task doesn't have access to the custom settings.xml file that's specified by using an -s switch. Image: "mcpayment/ubuntu-java8:1604-build" These 2 files I committed to the repository under a folder “gitlab” I follow this post to use $ and set the variables under Settings > Variables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |