[ 
http://jira.codehaus.org/browse/MENFORCER-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg closed MENFORCER-104.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0-beta-2
         Assignee: Dennis Lundberg

Fixed in [r987666|http://svn.apache.org/viewvc?view=revision&revision=987666].

Also added optional message to alwaysPass rule.

> 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

        

Reply via email to