Specifying a message with an alwaysFail rule doesn't work
---------------------------------------------------------
Key: MENFORCER-104
URL: http://jira.codehaus.org/browse/MENFORCER-104
Project: Maven 2.x Enforcer Plugin
Issue Type: Bug
Components: Standard Rules
Affects Versions: 1.0-beta-1
Reporter: Eric Haszlakiewicz
All the other standard rules allow for a custom message to be displayed. There
was even a previous issue (MENFORCER-6) created that claims that a message
param was added to all rules, but this doesn't work for alwaysFail. I expect
this pom.xml file to display "Custom Fail Message", but instead it just says
"Always fails!":
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>dummytest</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<!-- <version>1.0-beta-1</version> -->
<executions>
<execution>
<id>enforce-alwaysfail</id>
<phase>package</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<alwaysFail>
<message>Custom Fail Message</message>
</alwaysFail>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira