You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 7 Next »
smartics Enforcer Rules for Maven
A collection of rules for the Maven Enforcer Plugin.
Project Information Systems
Version Management
version 1.0.2
Provides a collection of rules for the Maven Enforcer Plugin.
The list of rules for the Maven Enforcer provided by this project.
Add the rules library to your Maven Enforcer Plugin's configuration like this:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>1.4.1</version> <executions> <execution> <id>enforce-project-rules</id> <phase>test</phase> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <NoCyclicPackageDependencyRule implementation= "de.smartics.maven.enforcer.rule.NoCyclicPackageDependencyRule" /> <NoSnapshotDependenciesInDependencyManagementRule implementation= "de.smartics.maven.enforcer.rule.NoSnapshotsInDependencyManagementRule" /> </rules> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>de.smartics.rules</groupId> <artifactId>smartics-enforcer-rules</artifactId> <version>1.0.2</version> </dependency> </dependencies> </plugin>
As you can see above, the rules to enforce on the project are named in the rules section of the plugin's configuration.