Skip to content

fix(build): publish Maven artifacts under hyperledger-identus namespace - #19

Closed
patextreme wants to merge 1 commit into
mainfrom
fix/maven-publish-namespace
Closed

fix(build): publish Maven artifacts under hyperledger-identus namespace#19
patextreme wants to merge 1 commit into
mainfrom
fix/maven-publish-namespace

Conversation

@patextreme

Copy link
Copy Markdown
Contributor

Why

Follow-up to #18 (which migrated the Docker image namespace). The first release run after #18 (run 30343777327) failed — semantic-release computed `0.2.1` correctly, but `sbt release`'s `publishArtifacts` step 404'd while publishing the jar+POM:

```
[publish] java.io.FileNotFoundException:
https://maven.pkg.github.com/hyperledger/identus-keycloak-plugins/.../0.2.1/identus-keycloak-oid4vci-0.2.1.pom
```

sbt-github-packages publishes to `maven.pkg.github.com//`, and those were still the legacy `hyperledger`/`identus-keycloak-plugins` — the same orphaned namespace as the Docker image.

Fix

Point `githubOwner`/`githubRepository` at the current repo (`hyperledger-identus`/`keycloak-plugins`), so the Maven publish — and the Docker image push that follows it in the same release — can complete.

No release/tag was created by the failed run (semantic-release is transactional; `version.sbt` is still `0.2.0-SNAPSHOT`), so re-running `release.yml` after this merge will still cut 0.2.1.

Notes for reviewer

  • Same signed-commit requirement on `main` — merge needs a signing setup.
  • Dependency resolution is unaffected: all deps are `org.keycloak:*` from Maven Central; the GitHub Packages resolver is only a fallback.
  • README badge URLs (lines 3–4) and the Maven-packages doc link (line 75) still point at the old `github.com/hyperledger/` paths — pre-existing cosmetic issues, left for a separate doc cleanup.

Follow-up to #18. The sbt release process runs `publishArtifacts`, which
uses sbt-github-packages to publish the jar+POM to
`maven.pkg.github.com/<githubOwner>/<githubRepository>`. These were still
pointing at the legacy `hyperledger` / `identus-keycloak-plugins` repo,
which is orphaned (404), so the release aborted there:

  [publish] java.io.FileNotFoundException:
    https://maven.pkg.github.com/hyperledger/identus-keycloak-plugins/.../0.2.1/identus-keycloak-oid4vci-0.2.1.pom

Point them at the current repo (`hyperledger-identus`/`keycloak-plugins`)
so the publish (and thus the docker image push that follows it in the
release) can complete.

Signed-off-by: Pat Losoponkul <patextreme@hotmail.com>
@patextreme

Copy link
Copy Markdown
Contributor Author

Superseded — going with option C: stop publishing the Maven jar entirely (nothing consumes it; only the Docker image is needed). The githubOwner/githubRepository namespace is then moot.

@patextreme patextreme closed this Jul 28, 2026
@patextreme
patextreme deleted the fix/maven-publish-namespace branch July 28, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant