#* * This software is licensed under the Apache 2 license, quoted below. * * Copyright 2010 Julien Eluard * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * [http://www.apache.org/licenses/LICENSE-2.0] * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. *# Usage The enforcer rule offers a rule for checking project's version against a previously released artifact. * Basic Usage ** Checking a project's version In order to check your project's version, you must add the enforcer rule as a dependency to the maven-enforcer-plugin and then configure the maven-enforcer-plugin to run the rule: --- ... ... ... maven-enforcer-plugin 1.0-beta-1 ... ... ${project.groupId} ${project.artifactId} ${project.version} ... ... .... check verify enforce ... 1.0.0 ... ... ... ... ... ... --- Once you have configured your project with details of the previous version to check, maven-enforcer will be able to throw a build error if current version is not backward compatible with previous one. Some more detailed {{{./examples/checking-version.html}examples}} of the <<>> rule.