Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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