Update SCM with Git origin

Apache 2.0

Updates or adds the Maven <scm> tag based on the Git remote origin. By default, only existing Source Control Management (SCM) sections are updated. Set addIfMissing to true to also add missing SCM sections to root POMs (POMs without a parent element).

org.openrewrite.maven.UpdateScmFromGitOrigin

Optional

addIfMissingBoolean

If set to true, the recipe will add a <scm> section if it is missing. If set to false (default), the recipe will only update existing <scm> sections.

mod run . --recipe=org.openrewrite.maven.UpdateScmFromGitOrigin

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.