Vous pouvez vous authentifier avec GitHub pour Maven en modifiant votre fichier ~/.m2/settings.xml afin d'ajouter votre token personnel. Créez un nouveau fichier ~/.m2/settings.xml s'il n'en existe pas.
Dans la balise servers, ajoutez une balise server avec un id, en remplaçant USERNAME par votre nom d'utilisateur GitHub, et TOKEN par votre token d'accès personnel.
Comment créer un token d'accès personnel ?
Exemple de fichier settings.xml
<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
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>uniteduhc</id>
<username>Rhodless</username>
<password>mon_super_token</password>
</server>
</servers>
</settings>
<repository>
<id>uniteduhc</id>
<url>https://maven.pkg.github.com/UnitedDev/UHC</url>
</repository><dependency>
<groupId>fr.uniteduhc</groupId>
<artifactId>uhc</artifactId>
<version>VERSION</version>
</dependency>