7

I've seen a lot of examples of how to configure Maven to upload using a username / password, but I haven't seen any examples of how to do this using the access token. (Access tokens: https://www.jfrog.com/confluence/display/RTF/Access+Tokens)

In the examples I've found, the username/password are stored in settings.xml. I'm looking for a solution that allows me to use this token with mvn deploy.

1 Answer 1

15

The access token can be used as the password. For example, if your username is "myuser" and you have an access token for this user: "eyHFdghgHDFGHdgdfg5t...", then your settings file should have the following:

<username>myuser</username>
<password>eyHFdghgHDFGHdgdfg5t...</password>

This is basically already covered in the Using Tokens section of the Wiki you mentioned.

HTH, Yinon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.