Plugin: updater-maven
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Updates the version declared in a Maven pom.xml file. It is useful for Java projects that keep their canonical version in Maven metadata.
Installation
Section titled “Installation”go install github.com/SemRels/updater-maven@latestEach plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.
Configuration
Section titled “Configuration”version: 1plugins: - name: updater-maven path: updater-maven args: file: pom.xmlEnvironment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_FILE | no | pom.xml | Maven POM file to update. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_TAG_NAMESEMREL_DRY_RUN
Behavior
Section titled “Behavior”For a 1.4.0 release, the updater can replace <version>1.3.2</version> with <version>1.4.0</version> in pom.xml.