Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gaol/version-maven-enforcer-rule
- Owner: gaol
- License: apache-2.0
- Created: 2014-12-13T14:01:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T17:40:38.000Z (over 1 year ago)
- Last Synced: 2024-11-01T04:25:53.241Z (2 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).)*$