{"id":18605142,"url":"https://github.com/anton-johansson/version-lifecycle-maven-plugin","last_synced_at":"2026-04-20T09:33:09.020Z","repository":{"id":46864578,"uuid":"241438530","full_name":"anton-johansson/version-lifecycle-maven-plugin","owner":"anton-johansson","description":"This Maven plugin aims to provide a better experience regarding version management in Maven by introducing a new lifecycle.","archived":false,"fork":false,"pushed_at":"2025-07-24T15:48:07.000Z","size":76,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T20:42:09.370Z","etag":null,"topics":["git","maven","maven-lifecycle","maven-plugin","release","version"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anton-johansson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-18T18:38:16.000Z","updated_at":"2025-07-24T15:48:05.000Z","dependencies_parsed_at":"2024-03-08T07:01:29.068Z","dependency_job_id":null,"html_url":"https://github.com/anton-johansson/version-lifecycle-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/anton-johansson/version-lifecycle-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anton-johansson%2Fversion-lifecycle-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anton-johansson%2Fversion-lifecycle-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anton-johansson%2Fversion-lifecycle-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anton-johansson%2Fversion-lifecycle-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anton-johansson","download_url":"https://codeload.github.com/anton-johansson/version-lifecycle-maven-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anton-johansson%2Fversion-lifecycle-maven-plugin/sbom","scorecard":{"id":199373,"data":{"date":"2025-08-11","repo":{"name":"github.com/anton-johansson/version-lifecycle-maven-plugin","commit":"e0c9ab3e1f2e6797ada1bdade1c80172c8eef59d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/dependencies.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/anton-johansson/version-lifecycle-maven-plugin/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/anton-johansson/version-lifecycle-maven-plugin/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependencies.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/anton-johansson/version-lifecycle-maven-plugin/dependencies.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependencies.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/anton-johansson/version-lifecycle-maven-plugin/dependencies.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T22:33:00.556Z","repository_id":46864578,"created_at":"2025-08-16T22:33:00.556Z","updated_at":"2025-08-16T22:33:00.556Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","maven","maven-lifecycle","maven-plugin","release","version"],"created_at":"2024-11-07T02:20:00.407Z","updated_at":"2026-04-20T09:33:08.988Z","avatar_url":"https://github.com/anton-johansson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Version lifecycle plugin\n\n[![GitHub actions](https://github.com/anton-johansson/version-lifecycle-maven-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/anton-johansson/version-lifecycle-maven-plugin/actions)\n\nThis Maven plugin aims to provide a better experience regarding version management in Maven. It does this by introducing a new lifecycle. This allows to bump major, minor or patch version numbers with a simple command while still being able to run other plugins during the creation of the version. Output generated from these plugins can easily be added and included in the release tag.\n\n\n## Maturity\n\nThis project has reached stable and version `1.0.0` has been released.\n\n\n## Usage\n\n```xml\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003ecom.anton-johansson\u003c/groupId\u003e\n                \u003cartifactId\u003eversion-lifecycle-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.0.0\u003c/version\u003e\n                \u003cextensions\u003etrue\u003c/extensions\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n```\n\n### Major versions\n\n```shell\n$ mvn version -Dmajor\n```\n\n### Minor versions\n\n```shell\n$ mvn version -Dminor\n```\n\n### Patch versions\n\n```shell\n$ mvn version -Dpatch\n```\n\n\n## Inspiration\n\nThis plugin has gotten a lot of inspiration from the `npm version` command, which is a great tool for managing your versions. It's also inspired by [Versions Maven Plugin](https://www.mojohaus.org/versions-maven-plugin/) and actually uses some of its goals as the default goals for some of the lifecycle phases.\n\n\n## Assumptions\n\nThis project tries to not asume too much about your work flow, but it does assume a few things. It assumes that...\n\n* ... you are using Git as your version control system.\n* ... artifacts will be published either by a CI tool or manually after the release is created. This lifecycle has no relation to the `deploy` lifecycle phase.\n\n\n## The lifecycle\n\nHere is an explained table of the whole lifecycle:\n\n| Phase                            | Task                                                                                                                    |\n|----------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| version-validate                 | A good place to perform pre-flight checks. By default, does not allow version change, if there are uncommitted changes. |\n| version-prepare-release          | Prepares the lifecycle by finding out the next version for the specified type.                                          |\n| version-prepare-release-version  | Sets the `version` attribute in the POM.                                                                                |\n| version-prepare-release-tag      | Sets the `scm.tag` attribute in the POM.                                                                                |\n| version-process-release          | Does nothing by default. A good place to make any pre-commit changes to files, such as generating changelog.            |\n| version-commit-release           | Commits the changes for the release.                                                                                    |\n| version-prepare-snapshot         | Prepares the lifecycle by finding out the next development version.                                                     |\n| version-prepare-snapshot-version | Sets the `version` attribute in the POM.                                                                                |\n| version-prepare-snapshot-tag     | Sets the `scm.tag` attribute in the POM.                                                                                |\n| version-process-snapshot         | Does nothing by default. A good place to make any pre-commit changes to files.                                          |\n| version-commit-snapshot          | Commits the changes for the snapshot version.                                                                           |\n| version                          | Does nothing. Its sole purpose is to provide a neat command to create new versions.                                     |\n\n\n## Parameters\n\n| Name                           | Property                               | Default value                                  | Description                                                                                                          |\n|--------------------------------|----------------------------------------|------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| `major`                        |                                        |                                                | Triggers a major version bump. Mutually exclusive with `minor` and `patch`.                                          |\n| `minor`                        |                                        |                                                | Triggers a minor version bump. Mutually exclusive with `major` and `patch`.                                          |\n| `patch`                        |                                        |                                                | Triggers a patch version bump. Mutually exclusive with `major` and `minor`.                                          |\n| `tagPrefix`                    | `version.tagPrefix`                    | `v`                                            | The prefix for release tags.                                                                                         |\n| `tagSuffix`                    | `version.tagSuffix`                    |                                                | The suffix for release tags.                                                                                         |\n| `generateBackupPoms`           | `generateBackupPoms`                   | `false`                                        | Indicates whether or not to generate backup POMs when changes are made.                                              |\n| `releaseCommitMessagePattern`  | `version.releaseCommitMessagePattern`  | `[version]`                                    | The commit message to use for releases. The placeholder `[version]` will be replaced with the actual version number. |\n| `snapshotCommitMessagePattern` | `version.snapshotCommitMessagePattern` | `Preparing for the next development iteration` | The commit message to use for snapshots.                                                                             |\n| `releaseFilePatternsToAdd`     | `version.releaseFilePatternsToAdd`     | `.`                                            | File patterns to add to the Git index before committing the release.                                                 |\n| `snapshotFilePatternsToAdd`    | `version.snapshotFilePatternsToAdd`    | `.`                                            | File patterns to add to the Git index before committing the snapshot.                                                |\n| `checkForUncommittedChanges`   | `checkForUncommittedChanges`           | `true`                                         | Checks for uncommitted changes and aborts, if there are any.                                                         |\n\n\n## Signed commits\n\nThere is an issue with signed commits. JGit (the underlying library for managing Git operations) does not have support for GPG 2.2 file format. The file, `~/.gnupg/pubring.kbx` will be considered empty. A workaround for this is the following command, which will provide an older format:\n\n```shell\n$ gpg --export \u003e ~/.gnupg/pubring.gpg\n```\n\n\n## Release\n\nFor releasing this project, you can use the project iself to create a new tag:\n\n```shell\n$ mvn version -Dminor\n```\n\nHowever, we have no automatic CI pipeline that deploys the artifacts. To do that, use:\n\n```shell\n$ git checkout \u003ctag to deploy\u003e\n$ mvn deploy -Psonatype-oss-release\n```\n\nUse `-Dgpg.keyname=\u003cID of key\u003e` if you have multiple GPG keys and want to select one.\n\n\n## License\n\nApache License © [Anton Johansson](https://anton-johansson.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanton-johansson%2Fversion-lifecycle-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanton-johansson%2Fversion-lifecycle-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanton-johansson%2Fversion-lifecycle-maven-plugin/lists"}