Skip to content

Document settings.xml repositories for Maven command line usage - #531

Merged
timtebeek merged 2 commits into
masterfrom
tim/update-maven-cli-docs
Aug 13, 2026
Merged

Document settings.xml repositories for Maven command line usage#531
timtebeek merged 2 commits into
masterfrom
tim/update-maven-cli-docs

Conversation

@timtebeek

Copy link
Copy Markdown
Member

Once rewrite-maven-plugin is no longer published to Maven Central, the Maven command line path breaks: it deliberately leaves the pom.xml untouched, and the "Maven Command Line" tab only pointed at the Maven POM tab, whose settings.xml snippet just carries credentials. The RunRecipe component's command line tab now shows a full settings.xml with an always-active profile declaring the Code Genome Project as both a pluginRepository (for the plugin) and a repository (for recipe artifacts), and pins the plugin version in the command; the same guidance is added to the "without modifying the build" tutorial, the data tables and styles pages, and the recipeArtifactCoordinates reference entry.

I verified this against the real Code Genome Project repository with artifacts that exist only there: with credentials alone the plugin fails to resolve, with the profile it succeeds, and rewrite.recipeArtifactCoordinates resolves from Code Genome both by exact version and via RELEASE. Note that recipe artifacts resolve against the project's repositories, so declaring only a <pluginRepository> is not enough — that failure is now called out in the plugin reference. LATEST was also changed to RELEASE in the tutorial, since Code Genome hosts snapshots alongside releases.

The Maven command line path leaves the pom.xml untouched, so once
rewrite-maven-plugin is no longer published to Maven Central the Code
Genome Project repository has to be declared in settings.xml instead:
as a pluginRepository for the plugin itself, and as a repository for
recipe artifacts passed to rewrite.recipeArtifactCoordinates.
@timtebeek
timtebeek merged commit 157d896 into master Aug 13, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/update-maven-cli-docs branch August 13, 2026 17:43
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Aug 13, 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