At the moment a token is always required, but it is possible to encode/embed the token in your .pom file.
Here is how you would do it:
- Create a PAT with just the
$ docker run ghcr.io/jcansdale/gpr encode <PAT>
- This will generate a
repositories element you can use in your .pom file
repositories element will look something like this:
<OWNER> with your user or org name.
read:packages token will have access to your public and private packages. If you have any private packages you need to project, you might want to create a machine-user account.
There isn’t currently a way to automatically sync with Maven Central.
I hope that helps!