[
http://jira.codehaus.org/browse/MENFORCER-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Lundberg updated MENFORCER-104:
--------------------------------------
Description:
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!":
{code:xml}
<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>
{code}
was:
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>
> 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!":
> {code:xml}
> <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>
> {code}
--
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