android-rsync icon indicating copy to clipboard operation
android-rsync copied to clipboard

Maven repository does not allow anonymous access

Open vitalyster opened this issue 2 years ago • 3 comments

Could not GET 'https://maven.pkg.github.com/ribbons/android-rsync/com/nerdoftheherd/android-rsync/3.2.7/android-rsync-3.2.7.pom'. Received status code 401 from server: Unauthorized

vitalyster avatar Apr 27 '23 10:04 vitalyster

It's public (e.g. any authenticated user can access it) but unfortunately doesn't allow anonymous access which is a pain but unfortunately still appears to be a limitation on the GitHub end (last time I checked, only their Docker package registry supported anonymous access). There were positive murmurings from GitHub a couple of years ago that anonymous access would be enabled 'soon' but unfortunately hasn't happened yet :roll_eyes:.

You can check out my workaround for this annoyance in one of my other repositories combined with setting gpr.user and gpr.key in my local ~/.gradle/gradle.properties

ribbons avatar Apr 27 '23 18:04 ribbons

Maybe you can publish to Maven Central?

vitalyster avatar Apr 27 '23 18:04 vitalyster

Maybe you can publish to Maven Central?

I'm not massively opposed to the idea but not hugely motivated (as what's published in the GitHub package registry works for me) so would be open to a PR to add this to the Actions workflow if someone else is happy to put in the leg-work of figuring out the process.

ribbons avatar Apr 28 '23 17:04 ribbons