This guide will walk you through the process of getting and accessing Maven GitHub Packages using a personal access token. You can either integrate the token directly into your pom.xml (potentially unsafe) or set it up in your ~/.m2/settings.xml (safe)
- Navigate to Settings>Developer Settings>Personal access tokens>Tokens (classic)>Generate new token (classic)
- Check the
read:packagesoption (Download packages from GitHub Package Registry). - Click on
Generate tokenat the bottom. - Make sure to copy the generated token for later use.