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/20 20:42:32 UTC

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

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

        

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

Posted by "Eric Haszlakiewicz (JIRA)" <ji...@codehaus.org>.
    [ 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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ 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