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: 3 months ago
JSON representation
A maven enforcer rule to check whether the project version or dependencies comply with specified pattern
- Host: GitHub
- URL: https://github.com/gaol/version-maven-enforcer-rule
- Owner: gaol
- License: apache-2.0
- Created: 2014-12-13T14:01:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T17:40:38.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T15:55:22.088Z (5 months ago)
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).)*$