I am trying to deploy to a google code mvn repository which requires username/password authentication when committing.
See: http://code.google.com/p/encryption-utils/source/browse/trunk/pom.xml
I do not have control over the build server which I would like to deploy here so I cannot change the .m2/settings.xml.
Is there any command line properties I can use during the mvn deploy to specify the username and password to use?
I do not care about the username and password being visible from the command line because I can ensure this build server is at least secured.
Is there any way I can do this without the settings.xml?
Thanks,
Steven
You can add a settings.xml to your project. In Jenkins/Hudson, simply use the following as your “Maven goals and options”:
-s settings.xml clean deploy