Skip to content

Point remaining Maven instructions at the Code Genome Project - #535

Merged
timtebeek merged 1 commit into
masterfrom
tim/cgp-maven-docs
Aug 27, 2026
Merged

Point remaining Maven instructions at the Code Genome Project#535
timtebeek merged 1 commit into
masterfrom
tim/cgp-maven-docs

Conversation

@timtebeek

@timtebeek timtebeek commented Aug 27, 2026

Copy link
Copy Markdown
Member

Why

The plugin and the rewrite modules are no longer published to Maven Central. Verified against the live repositories:

Artifact Last version on Maven Central Current
org.openrewrite.maven:rewrite-maven-plugin 6.46.1 6.47.0
org.openrewrite:rewrite-core / rewrite-bom 8.90.4 8.91.0

Anything still telling readers to add the plugin without declaring the Code Genome Project repository now sends them to a build that cannot resolve it.

What changed

  • reference/snapshot-instructions.md — snapshots now come from https://artifacts.codegenomeproject.org/maven (with <snapshots><enabled>true</enabled></snapshots>) instead of central.sonatype.com/repository/maven-snapshots, plus the settings.xml credentials block. The "Maven Command Line" section now configures settings.xml rather than telling you to edit the pom.xml it just said it would leave untouched.
  • authoring-recipes/recipe-development-environment.md — the recipe module's own build had no <repositories>; the CGP snippets further down only covered the target project.
  • authoring-recipes/recipe-testing.md, refaster-recipes.md, multiple-versions.md, writing-kotlin-recipes.md — pointers to the repository setup the dependency snippets assume.
  • concepts-and-explanations/styles.md — the Maven POM tab had no note; only the CLI tab did.
  • popular-recipe-guides/automating-maven-dependency-management.md — CGP setup step; also replaces a hardcoded 5.41.0 with {{VERSION_REWRITE_MAVEN_PLUGIN}}.
  • popular-recipe-guides/authoring-declarative-yaml-recipes.md — pointer for both Maven tabs.

Assumption to confirm

Snapshots are documented as living under the same https://artifacts.codegenomeproject.org/maven URL as releases. I could not verify this directly — every path under /maven returns 401 regardless of whether it exists — but there is no separate /maven-snapshots or /snapshots endpoint (both 404). Please correct me if snapshots have their own URL.

Not included

Gradle is in a separate PR. There is also a cross-cutting cleanup worth doing later: CGP setup is currently deep-linked from three different anchors (getting-started#step-2…, running-rewrite-on-a-maven-project-without-modifying-the-build#configure-…, latest-versions…#configure-…). Worth collapsing to one canonical section.

Verification

yarn build with CI_STRICT_LINKS=1 passes locally.

The rewrite-maven-plugin and the rewrite modules are no longer published
to Maven Central; Central stops at rewrite-maven-plugin 6.46.1 and
rewrite-core 8.90.4. A handful of Maven snippets still assumed they
could be resolved without declaring the Code Genome Project repository.

Snapshots now come from the same Code Genome Project repository rather
than central.sonatype.com.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Aug 27, 2026
@timtebeek
timtebeek marked this pull request as ready for review August 27, 2026 14:48
@timtebeek
timtebeek merged commit 4f67e80 into master Aug 27, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/cgp-maven-docs branch August 27, 2026 14:48
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant