Set up the Maven client in VSTS and TFS
VSTS | TFS 2018
To talk to VSTS feeds, you'll need a token on your local machine that Maven can pick up and pass to VSTS.
Navigate to the feed that you'd like to use and select Connect to feed.
Open the Maven tab, choose Generate Maven credentials, and copy the generated credentials. (images below)
Maven pulls credentials from your settings.xml file.
On Linux, the file path is usually
On macOS, the file path is usually
On Windows, the file path is usually
If the file doesn't exist, create one now.
<servers>elements in the file, paste the credentials you copied in Step 3 above.
<settings> <servers> <!-- Copy this section from the Maven section of the "Connect to Feed” dialog" --> <server> <id>yourAccount-visualstudio.com-yourFeedName</id> <configuration> <httpHeaders> <property> <name>Authorization</name> <!--The generated token expires on or before 7/19/2017--> <value>Basic Y2Fqb…</value> </property> </httpHeaders> </configuration> </server> </servers> </settings>
NOTE: You can find more information about the settings.xml file in the settings.xml reference.