Publish multiple java modules to package registry then cannot download

After publish these artifacts in my public repository to maven.pkg.github.com, I cannot download it in another repository

> Could not resolve io.github.zero88.msa.bp:base:0.5.1.
         > Could not get resource 'https://maven.pkg.github.com/zero88/msa-blueprint/io/github/zero88/msa/bp/base/0.5.1/base-0.5.1.pom'.
            > Could not GET 'https://maven.pkg.github.com/zero88/msa-blueprint/io/github/zero88/msa/bp/base/0.5.1/base-0.5.1.pom'. Received status code 401 from server: Unauthorized

My configuration in another repository is:

repositories {
        mavenLocal()
        maven { url = uri("https://oss.sonatype.org/content/groups/public/") }
        maven { url = uri("https://maven.pkg.github.com/zero88/msa-blueprint") }
        mavenCentral()
        jcenter()
    }
1 Like

I’m able to download public package if provide username and token…

After some investigating, I guess:
It seems because of group id hierarchy.
If io.github.zero88:msa-bp-base as another my another project io.github.zero88.rql-jooq, it will works without credential

1 Like