why checkstyle always using default sun_checks.xml

96 views
Skip to first unread message

Vince

unread,
Feb 26, 2018, 7:33:42 PM2/26/18
to checkstyle
Hi guys,

i am pretty new using checkstyle. 

when i run mvn checkstyle:check it always pick up the default xml 

using -X show detail 
[DEBUG]   (f) configLocation = sun_checks.xml
[DEBUG]   (f) consoleOutput = false
[DEBUG]   (f) failOnViolation = true
[DEBUG]   (f) failsOnError = false


my pom setting the below block inside <build> and i do have google_checks.xml at root level (same with pom file)
         <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                            <skip>false</skip>
                            <failOnViolation>true</failOnViolation>
                            <consoleOutput>true</consoleOutput>
                            <includeTestSourceDirectory>true</includeTestSourceDirectory>
                            <configLocation>google_checks.xml</configLocation>
                            <sourceDirectories>
                                <directory>${project.build.sourceDirectory}</directory>
                            </sourceDirectories>
                            <testSourceDirectories>
                                <directory>${project.build.testSourceDirectory}</directory>
                            </testSourceDirectories>
                            <violationSeverity>error</violationSeverity>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>8.0</version>
                    </dependency>
                </dependencies>
            </plugin>

any idea ?

Thanks

Vince

unread,
Feb 26, 2018, 7:36:47 PM2/26/18
to checkstyle
Apache Maven 3.3.9
Java version: 1.8.0_111
OS name: "mac os x", version: "10.12.5", arch: "x86_64"

Roman Ivanov

unread,
Feb 26, 2018, 8:29:09 PM2/26/18
to Vince, checkstyle
Hi Vince, 

You are discussing maven plugin for checkstyle.
This mail group is for checkstyle library usage only, and we do not use sun config by default.

Please raise this question to maven plugin team.

Thanks,
Roman Ivanov


--
You received this message because you are subscribed to the Google Groups "checkstyle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to checkstyle+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages