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:packages
option (Download packages from GitHub Package Registry). - Click on
Generate token
at the bottom. - Make sure to copy the generated token for later use.