Skip to content

#199 - remove all oss.sonatype.org references in code#200

Merged
xsalefter merged 3 commits into
maint-for-0-24-xfrom
platform-199
Jul 3, 2026
Merged

#199 - remove all oss.sonatype.org references in code#200
xsalefter merged 3 commits into
maint-for-0-24-xfrom
platform-199

Conversation

@xsalefter

Copy link
Copy Markdown
Contributor

See #199 . Commit are self-explanatory.

One commit back-ported from master in test area (we can create new commit, it affect nothing other than fixing the test): f2ea0c8

Needed because seems like with JDK21, writing to /var throws "Caused by: java.io.IOException: Permission denied"

FYI by default, the KpmProperties define bundles at /var/tmp/bundles

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the KPM bundle to stop using oss.sonatype.org for fetching Maven artifacts/metadata, switching defaults and test configuration to Maven Central (repo1.maven.org) to avoid flaky redirects and CI failures (Issue #199).

Changes:

  • Switch KPM default Nexus/Maven base URL + repository defaults from Sonatype OSS to Maven Central (repo1.maven.org/maven2).
  • Update URL resolver logic and coordinate-based plugin downloader to use Maven Central public release URL.
  • Update tests and configuration documentation to reflect the new Maven Central endpoints.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
osgi-bundles/bundles/kpm/src/test/java/org/killbill/billing/osgi/bundles/kpm/impl/TestDefaultPluginManager.java Use shared test properties helper for consistent test setup.
osgi-bundles/bundles/kpm/src/test/java/org/killbill/billing/osgi/bundles/kpm/impl/TestDefaultNexusMetadataFiles.java Point metadata tests at Maven Central instead of Sonatype OSS.
osgi-bundles/bundles/kpm/src/main/java/org/killbill/billing/osgi/bundles/kpm/KpmProperties.java Update default Nexus URL/repository defaults to Maven Central.
osgi-bundles/bundles/kpm/src/main/java/org/killbill/billing/osgi/bundles/kpm/impl/UrlResolverFactory.java Simplify resolver creation now that defaults are valid without Sonatype-specific rewriting.
osgi-bundles/bundles/kpm/src/main/java/org/killbill/billing/osgi/bundles/kpm/impl/DefaultNexusMetadataFiles.java Remove OSS special-casing and add explicit rejection of OSS URLs.
osgi-bundles/bundles/kpm/src/main/java/org/killbill/billing/osgi/bundles/kpm/impl/CoordinateBasedPluginDownloader.java Switch public fallback repository to Maven Central and reject OSS base URIs.
osgi-bundles/bundles/kpm/spotbugs-exclude.xml Suppress SpotBugs warning for constructor throwing due to new validation.
osgi-bundles/bundles/kpm/CONFIGURATION.md Update documented defaults and examples to Maven Central.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xsalefter xsalefter merged commit 53d6de2 into maint-for-0-24-x Jul 3, 2026
20 checks passed
@xsalefter xsalefter deleted the platform-199 branch July 3, 2026 09:32
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.

3 participants