-
Notifications
You must be signed in to change notification settings - Fork 3
Authentication Failed error when downloading maven dependencies
Funny edited this page Nov 4, 2021
·
1 revision
If you get an error when trying to download the ChestShops or RegionProtection dependency:
You'll need to modify your ~/.m2/settings.xml
if on Linux. If you're on WIndows, I think it'll be in C:\Users\<username>\.m2\settings.xml
.
You'll need to set it to:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>[GITHUB USERNAME]</username>
<password>[TOKEN]</password>
</server>
</servers>
</settings>
Where [GITHUB USERNAME]
is your GitHub username and [TOKEN]
is a personal access token generated in GitHub.
You can read more about the settings.xml here