Skip to content

Add the Maven Central snapshot repository and fix the 9.0.0-SNAPSHOT version - #36

Merged
manoelcampos merged 1 commit into
masterfrom
snapshot-repository
Oct 20, 2026
Merged

manoelcampos merged 1 commit into
masterfrom
snapshot-repository

Conversation

@manoelcampos

@manoelcampos manoelcampos commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Related to cloudsimplus/cloudsimplus#575

Prepares the project to use CloudSim Plus 9.0.0-SNAPSHOT from the Maven Central snapshot repository.

Changes

Snapshot repository

Adds the Maven Central snapshot repository (https://central.sonatype.com/repository/maven-snapshots/) to pom.xml, so the project can use CloudSim Plus -SNAPSHOT versions before they are released.

  • <releases> is disabled in this repository, so Maven only asks it for -SNAPSHOT versions. Final versions still come from Maven Central, without slowing them down.
  • To move to a final version later (such as 9.0.0), just remove -SNAPSHOT from the version.

Version case

The project version changes from 9.0.0-snapshot to 9.0.0-SNAPSHOT (in pom.xml and CLAUDE.md). The cloudsimplus dependency uses ${project.version}, and repository paths are case-sensitive, so the lowercase version would never match the published artifact.

Java 25

The project already compiles for Java 25 and uses JDK 25 in CI, as CloudSim Plus 9 requires.

GitHub Actions now use the Amazon Corretto JDK distribution, as the cloudsimplus project does, instead of adopt (deprecated in setup-java).

CI

CI fails until 9.0.0-SNAPSHOT is published (the same failure already happens on master). The log confirms Maven now looks for cloudsimplus-9.0.0-SNAPSHOT.jar in the snapshot repository. Publishing is currently blocked by a 401 error, caused by credential scoping in Maven 3.10 (see cloudsimplus/cloudsimplus#575).

🤖 Generated with Claude Code

Enables using CloudSim Plus SNAPSHOT versions before they are released.
Final versions still come from Maven Central.
- Fix the project version case: 9.0.0-snapshot -> 9.0.0-SNAPSHOT,
  since repository paths are case-sensitive.

Related: cloudsimplus/cloudsimplus#575

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@manoelcampos manoelcampos self-assigned this Oct 19, 2026
@manoelcampos manoelcampos changed the title Add the Maven Central snapshot repository Add the Maven Central snapshot repository and fix the 9.0.0-SNAPSHOT version Oct 19, 2026
@manoelcampos
manoelcampos merged commit 3803ee8 into master Oct 20, 2026
1 check failed
@manoelcampos
manoelcampos deleted the snapshot-repository branch October 20, 2026 00:01
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