Hi All,

I was wondering whether anyone understands the checkstyle plugin / mojos
enough to explain why the following configuration is executing the same
checkstyle rules twice, rather than the 2 different configurations I have
provided?

            <plugin>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>${maven-checkstyle-plugin.version}</version>
                <executions>
                    <execution>
                        <id>checkstyle-organisation-standard</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                            <configLocation>checkstyle.xml</configLocation>
                           
<headerLocation>organisation-header.txt</headerLocation>
                        </configuration>
                    </execution>
                    <execution>
                        <id>checkstyle-project-specific</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                           
<configLocation>checkstyle-project-specific.xml</configLocation>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

I've tried a bunch of different things, but I just can't seem to get the
executions to use the different settings above.

Below is an (edited) excert from the build log (debug):

First part is for checkstyle-organisation-standard

            [INFO] Preparing checkstyle:check
            [DEBUG]   (f) configLocation = checkstyle.xml
            [DEBUG]   (f) headerLocation = organisation-header.txt
            [DEBUG] -- end configuration --
            [INFO] [checkstyle:checkstyle]
            [INFO] [checkstyle:check {execution:
checkstyle-organisation-standard}]

Second part is for checkstyle-project-specific

            [INFO] Preparing checkstyle:check
            [DEBUG]   (f) configLocation = checkstyle.xml
            [DEBUG]   (f) headerLocation = organisation-header.txt
            [DEBUG] -- end configuration --
            [INFO] [checkstyle:checkstyle]
            [INFO] [checkstyle:check {execution:
checkstyle-project-specific}]

(note that configLocation and headerLocation haven't changed)

Anyone have any ideas?
-- 
View this message in context: 
http://www.nabble.com/Multiple-Checkstyle-Executions-tp18181313p18181313.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to