Skip to content

Reduce unnecessary Maven repository lookups - #166

Merged
BenCodez merged 3 commits into
masterfrom
fix/maven-repository-lookups-20260826
Aug 27, 2026
Merged

Reduce unnecessary Maven repository lookups#166
BenCodez merged 3 commits into
masterfrom
fix/maven-repository-lookups-20260826

Conversation

@BenCodez

@BenCodez BenCodez commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • put Maven Central first for normal release dependencies
  • make the Spigot repository snapshot-only
  • remove the obsolete Sonatype/BungeeCord snapshot repository
  • remove the unresponsive Velocity repository; velocity-api:3.4.0 resolves from Paper
  • disable snapshot resolution for the release-only BenCodez and Paper repositories
  • exclude the unused velocity-brigadier:1.0.0-SNAPSHOT transitive dependency from the Velocity API dependency and annotation-processor path

Why

Jenkins build 846, triggered by SimpleAPI build 231, resolved the Spigot 1.21.9-R0.1-SNAPSHOT metadata successfully from Spigot and Paper, then stalled while Maven waited for the same snapshot metadata from unrelated repositories.

This is the same unnecessary cross-repository metadata lookup pattern fixed in BenCodez/VotingPlugin#1555. VotifierPlus uses the released com.bencodez:simpleapi:1.0, so BenCodez snapshot resolution is not required here.

A first CI run confirmed that Maven no longer hung on Spigot snapshot metadata, but the Velocity Nexus then timed out while resolving velocity-api:3.4.0. Paper serves that exact release. After removing Velocity Nexus, Maven exposed its optional velocity-brigadier snapshot; VotifierPlus only uses Velocity's simple command API and does not reference Brigadier, so the same exclusion already used by VotingPlugin is applied here.

Validation

  • pom.xml parses as well-formed XML
  • direct artifact checks:
    • Spigot snapshot metadata: available from Spigot
    • simpleapi:1.0: available from BenCodez Nexus
    • bungeecord-api:1.21-R0.4: available from Maven Central
    • velocity-api:3.4.0: available from Paper
    • Velocity Nexus request timed out with zero bytes
  • GitHub Actions mvn -B -f VotifierPlus/pom.xml package: passed in 38 seconds
  • change is limited to repository policies plus the unused Brigadier transitive exclusion

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@BenCodez BenCodez closed this Aug 26, 2026
@BenCodez BenCodez reopened this Aug 26, 2026
@BenCodez
BenCodez merged commit 7415e83 into master Aug 27, 2026
1 check passed
@BenCodez
BenCodez deleted the fix/maven-repository-lookups-20260826 branch August 27, 2026 01: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.

1 participant