Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gaol/version-maven-enforcer-rule

A maven enforcer rule to check whether the project version or dependencies comply with specified pattern
https://github.com/gaol/version-maven-enforcer-rule

Last synced: 19 days ago
JSON representation

A maven enforcer rule to check whether the project version or dependencies comply with specified pattern

Awesome Lists containing this project

README

        

version-maven-enforcer-rule
===========================

A maven enforcer rule set for [maven-enforcer-plugin](http://maven.apache.org/enforcer/maven-enforcer-plugin/), which can be used to restrict the project version to keep compatible with specified pattern, like OSGI version.

Or limit the dependencies to following specific version patterns.

Example enforce rule configuration
===

The following example shows the way to banned all dependencies whose version does not have the string 'redhat':


org.apache.maven.plugins
maven-enforcer-plugin


org.jboss.maven.plugins.enforcer.rules
version-enforcer-rule




enforce-redhat-in-version

enforce




^((?!redhat).)*$