-
Notifications
You must be signed in to change notification settings - Fork 3
matchArtifactIdAndBaseDir
Wisen edited this page Jan 26, 2014
·
1 revision
Enforces that the pom's artifact id and the base directory name are the same.
Supported parameters:
- message - an optional message to the user if the rule fails.
Sample plugin configuration:
<project>
<artifactId>my-module</artifactId>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!-- Checks if the basedir is my-module -->
<matchArtifactIdAndBaseDir />
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.ceilfors.maven.plugin</groupId>
<artifactId>enforcer-rules</artifactId>
<version><!-- replace with the latest version --></version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
[...]
</project>