[ http://jira.codehaus.org/browse/MNG-555?page=comments#action_47796 ] 

Dave Sag commented on MNG-555:
------------------------------

i just hit this problem in my project.  have been trying to bind checkstyle to 
the test phase so that the tests will fail if checkstyle reports errors.

so far this has proved impossible with the beta-2 codebase.

my valid POM says
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
           <configuration>
                <propertiesFile>checkstyle-src.xml</propertiesFile>
                <failsOnError>true</failsOnError>
            </configuration>
            <goals>
                <goal>
                    <id>test</id>
                 </goal>
            </goals>
        </plugin>
    </plugins>
</build>

which is validated by my fancy pants xml tool (Turbo XML - it's sluggish but 
neat)

but the spec mentions all this <executions><execution>...</...> stuff in some 
places and <executions><pluginExecution>.. in others.

i tried all manner of things but the only valid combinations i found just give 
me deprecation warnings and blow.

please keep it simple is all i ask - why deprecate putting the goals up there 
anyway?  it's easy and it worked.



> POM XSD and site doco out of sync and both may be out of sync with code
> -----------------------------------------------------------------------
>
>          Key: MNG-555
>          URL: http://jira.codehaus.org/browse/MNG-555
>      Project: Maven 2
>         Type: Bug
>   Components: maven-model
>     Versions: 2.0-alpha-3
>  Environment: Win 2K, Java 1.4.2 & Java 1.5.0
>     Reporter: Andy Glick
>     Assignee: Brett Porter
>     Priority: Critical
>      Fix For: 2.0-beta-4

>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> It looks as if the XML schema is out of sync with the POM documentation page 
> and both may be out of sync with the code.
> The following fragment from Plugin type's definition on the POM documentation 
> page does not appear in the published XSD:
> http://maven.apache.org/maven2/maven-model/maven.html
> <executions>
>   <pluginExecution>
>     <id/>
>     <phase/>
>     <goals/>
>     <inherited/>
>     <configuration/>
>   </pluginExecution>
> </executions>
> Maven 2 XSD http://maven.apache.org/maven-v4_0_0.xsd
> In addition, in a post from the Maven User mailing list the following 
> fragment was reported to work, and it matches neither of the published 
> formats:
> <executions>
>   <execution>
>     <goals>
>       <goal>sablecc</goal>
>     </goals>
>   </execution>
> </executions>
> http://marc.theaimsgroup.com/?l=turbine-maven-user&m=112064009313457&w=2

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to