You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Eric Haszlakiewicz (JIRA)" <ji...@codehaus.org> on 2010/08/23 17:13:32 UTC

[jira] Commented: (MENFORCER-104) Specifying a message with an alwaysFail rule doesn't work

    [ http://jira.codehaus.org/browse/MENFORCER-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232816#action_232816 ] 

Eric Haszlakiewicz commented on MENFORCER-104:
----------------------------------------------

Thanks!

> 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
>            Assignee: Dennis Lundberg
>             Fix For: 1.0-beta-2
>
>
> 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