Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsb-norge/maven-versions-dsb-ruleset
DSBs ruleset for the versions maven plugin.
https://github.com/dsb-norge/maven-versions-dsb-ruleset
Last synced: 21 days ago
JSON representation
DSBs ruleset for the versions maven plugin.
- Host: GitHub
- URL: https://github.com/dsb-norge/maven-versions-dsb-ruleset
- Owner: dsb-norge
- Created: 2022-01-26T08:09:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T10:13:33.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T07:58:35.443Z (almost 2 years ago)
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruleset for versions-maven-plugin
Ref: https://www.mojohaus.org/versions-maven-plugin/version-rules.html
For all applications, we should periodically check for new versions of third party libraries.
This can be automated like this:
mvn versions:update-properties versions:update-parent
The first goal replaces the values of the version properties inside pom.xml, for all dependencies. The second goal
updates the parent version.*NOTE: Take care if the update results in a new major version, especially for parent!*
However, the versions plugin will find *all* new versions, including alphas, betas, milestones, candidate releases
and so on.To avoid manual inspection and filtering every time a repository is updated, we can instead use a *ruleset* which
excludes versions based on regular expressions.The ruleset is an xml file. It must be available via URL or classpath. It is placed in this repository, and so it
can be pointed to directly at its repository location (main branch) or it can be depended on as a normal dependency.## Usage
In the top pom for an app, add a URL pointer to the ruleset like this:
org.codehaus.mojo
versions-maven-plugin
${versions-maven-plugin.version}
https://raw.githubusercontent.com/dsb-norge/maven-versions-dsb-ruleset/main/ruleset.xml