hello world,

I try to use qalab with checkstytle and pmd, ...
I get fine results but I must put the same configuration two times :
one in the <build> and one in the <report> ! it makes me sick.

I don't need XML trick like <!entity> , I search a maven solution

I try to explain in details.
from the source, I know that
QAlab provide 
        goal=merge phase=deploy inheritance=mojo
        goal=report phase=deploy inheritance=report
checkstyle provide 
        goal=check phase=verify inheritance=mojo executegoal=checkstyle
        goal=checkstyle inheritance=report
same kind of stuff for pmd

1-to get the chart qalab report, you must call qalab:report in <report>
2-to get 1 to work, I must call qalab:merge in <build> (it requires
checkstyle-result.xml , pmd.xml ...)
3-to get 2 to work, (workaround?) I must force a checkstyle:check in <build>
(it call checkstyle:checkstyle and generate checkstyle-result.xml)
4-to get the checkstyle report, you must call checkstyle in <report>
        => to get both report you have to put checkstyle config twice!
        same issue raises for others measures

The following example generate both report but remove one checkstyle and it
fails or one report miss

I must be face in front of wall but I don't see it. 
What am I doing wrong?

Cordialement.

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-checkstyle-plugin</artifactId>
                                <configuration>
                                
<outputFile>${project.build.directory}/checkstyle/checkstyle-result.xml</outputFile>
                                        <failOnViolation>false</failOnViolation>
                                </configuration>
                                <executions>
                                        <execution>
                                                <!--configuration>
                                                        
<failOnViolation>true</failOnViolation>
                                                
<outputFile>${project.build.directory}/checkstyle/checkstyle-result.xml</outputFile>
                                                </configuration-->
                                                <goals>
                                                        <goal>check</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                        <plugin>
                                <groupId>net.objectlab</groupId>
                                <artifactId>maven-qalab-plugin</artifactId>
                                <version>2.1</version>
                                <executions>
                                        <execution>
                                                <id>checkstyle-merge</id>
                                                <phase>install</phase>
                                                <goals>
                                                        <goal>merge</goal>
                                                </goals>
                                                <configuration>
                                                        <handler>
                                                                
net.objectlab.qalab.parser.CheckstyleStatMerge
                                                        </handler>
                                                        <inputFile>
                                                                
${project.build.directory}/checkstyle/checkstyle-result.xml
                                                        </inputFile>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                <id>movers</id>
                                                <phase>install</phase>
                                                <goals>
                                                        <goal>movers</goal>
                                                </goals>
                                                <configuration>
                                                        <startTimeHoursOffset>
                                                                480
                                                        </startTimeHoursOffset>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                <id>chart</id>
                                                <phase>install</phase>
                                                <goals>
                                                        <goal>chart</goal>
                                                </goals>
                                                <configuration>
                                                        
<summaryOnly>false</summaryOnly>
                                                </configuration>
                                        </execution>
                                </executions>
                                <configuration>
                                        <types>checkstyle</types>
                                </configuration>
                        </plugin>       
                </plugins>
        </build>
        <reporting>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-checkstyle-plugin</artifactId>
                                <configuration>
                                
<outputDirectory>${project.build.directory}/checkstyle</outputDirectory>
                                
<cacheFile>${project.build.directory}/checkstyle/checkstyle-cachefile</cacheFile>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>net.objectlab</groupId>
                                <artifactId>maven-qalab-plugin</artifactId>
                                <version>2.1</version>
                                <reportSets>
                                        <reportSet>
                                                <reports>
                                                        <report>report</report>
                                                        
<report>movers-report</report>
                                                </reports>
                                        </reportSet>
                                </reportSets>
                        </plugin>
                </plugins>
        </reporting>


--
View this message in context: 
http://www.nabble.com/qalab-chart-%3D%3E-duplicate-checkstytle--config-t1798955.html#a4902577
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to