The plugin picks up the file but the style is not being correctly applied. One thing that out custom style does is override the 80 characher line length. Yet I still see this error. Regards, Mark. PS. The checkstyle file is the same one used in M1 and eclipse which works correctly. ---------------- C:\m2Projects\configuration-module\app-config>mvn -X checkstyle:checkstyle + Error stacktraces are turned on. [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settin gs\mkuzmycz.CORP\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\PROGRA~1\APACHE~1\ maven-2.0\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project : com.siebel.ss.modules.configuration:app-config:jar:1.0 [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project : com.siebel.ss.modules:configuration:pom:1.0-SNAPSHOT [INFO] Searching repository for plugin with prefix: 'checkstyle'. [DEBUG] maven-checkstyle-plugin: resolved to version 2.0-beta-1 from repository central [DEBUG] Retrieving parent-POM from the repository for project: null:maven-checks tyle-plugin:maven-plugin:2.0-beta-1 [INFO] ------------------------------------------------------------------------ - --- [INFO] Building Application Configuration [INFO] task-segment: [checkstyle:checkstyle] [INFO] ------------------------------------------------------------------------ - --- [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.0-beta-1 (selected for runtime) [DEBUG] commons-logging:commons-logging:jar:1.0.3 (selected for runtime) [DEBUG] logkit:logkit:jar:1.0.1 (selected for runtime) [DEBUG] log4j:log4j:jar:1.2.6 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] commons-collections:commons-collections:jar:2.1 (selected for runtime) [DEBUG] checkstyle:checkstyle-optional:jar:3.4 (selected for runtime) [DEBUG] checkstyle:checkstyle:jar:3.4 (selected for runtime) [DEBUG] commons-beanutils:commons-beanutils:jar:1.6.1 (selected for runtime) [DEBUG] commons-logging:commons-logging:jar:1.0 (removed - nearer found: 1.0 .3) [DEBUG] commons-logging:commons-logging:jar:1.0 (selected for runtime) [DEBUG] commons-collections:commons-collections:jar:2.0 (removed - nearer fo und: 2.1) [DEBUG] commons-collections:commons-collections:jar:2.0 (selected for runtim e) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven: maven-plugin-api:jar:2.0 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime) [DEBUG] regexp:regexp:jar:1.3 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-report ing-impl:jar:2.0 [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven. reporting:maven-reporting:pom:2.0 [DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-projec t:jar:2.0 [DEBUG] org.apache.maven:maven-project:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (sele cted for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime ) [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime) [DEBUG] junit:junit:jar:3.8.1 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven: maven-artifact:jar:2.0 [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime ) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven: maven-model:jar:2.0 [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime ) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven: maven-artifact-manager:jar:2.0 [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected for runt ime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime ) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (se lected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven: maven-repository-metadata:jar:2.0 [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runti me) [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selec ted for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runti me) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-profil e:jar:2.0 [DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime ) [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (se lected for runtime) [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime) [DEBUG] Retrieving parent-POM from the repository for project: null:maven-report ing-api:jar:2.0 [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven. reporting:maven-reporting:pom:2.0 [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0 (selected for runtime) [DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for runtime) [DEBUG] commons-validator:commons-validator:jar:1.1.4 (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0 (selected for runtime) [DEBUG] oro:oro:jar:2.0.7 (selected for runtime) [DEBUG] doxia:doxia-core:jar:1.0-alpha-4 (selected for runtime) [DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4 (selected for runtime) [DEBUG] oro:oro:jar:2.0.7 (selected for runtime) [DEBUG] antlr:antlr:jar:2.7.2 (selected for runtime) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.0-b eta-1:checkstyle' --> [DEBUG] (f) cacheFile = C:\m2Projects\configuration-module\app-config\target/c heckstyle-cachefile [DEBUG] (f) failsOnError = true [DEBUG] (f) format = sun [DEBUG] (f) headerFile = C:\m2Projects\configuration-module\app-config\LICENSE .txt [DEBUG] (f) includes = **/*.java [DEBUG] (f) outputDirectory = C:\m2Projects\configuration-module\app-config\ta rget\site [DEBUG] (f) outputFile = C:\m2Projects\configuration-module\app-config\target/ checkstyle-result.txt [DEBUG] (f) outputFileFormat = plain [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) propertiesFile = C:\m2Projects\configuration-module\app-config\src \config\siebel_check.xml [DEBUG] (f) sourceDirectory = C:\m2Projects\configuration-module\app-config\sr c\main\java [DEBUG] -- end configuration -- [INFO] [checkstyle:checkstyle]
_____ From: David Sag [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 3:45 AM To: Maven Users List Subject: Re: [M2] checkstyle Here's an extract from my pom.xml where i apply different checkstyle rules to my main src and my test code. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <executions> <execution> <id>check-main-src</id> <phase>compile</phase> <configuration> <propertiesFile>checkstyle-src.xml</propertiesFile> <failsOnError>true</failsOnError> </configuration> <goals> <goal>checkstyle</goal> </goals> </execution> <execution> <id>check-test-src</id> <phase>test-compile</phase> <configuration> <propertiesFile>checkstyle-test.xml</propertiesFile> <failsOnError>true</failsOnError> <sourceDirectory>src/test</sourceDirectory> </configuration> <goals> <goal>checkstyle</goal> </goals> </execution> </executions> </plugin> <plugins> </build> however, as this jira issue (and my own experience) makes plain, right now the propertiesFile is ignored so you'll have to put up with the default for a while until they fix this, or apply the patch yourself. http://jira.codehaus.org/browse/MNG-1113 Kind regards, Dave Sag "Mark Kuzmycz" <[EMAIL PROTECTED]> wrote on 22/10/2005 07:24:03 PM: > How do I specify a customized checkstyle format. The source code for the > checkstyle report suggests that it only knows about sun, turbine and > avalon. > > Regards, > Mark. > > _______________ > Siebel > IT'S ALL ABOUT THE CUSTOMER > Visit www.siebel.com > > This e-mail message is for the sole use of the intended recipient(s) > and contains confidential and/or privileged information belonging to > Siebel Systems, Inc. or its customers or partners. Any unauthorized > review, use, copying, disclosure or distribution of this message is > strictly prohibited. If you are not an intended recipient of this > message, please contact the sender by reply e-mail and destroy all > soft and hard copies of the message and any attachments. Thank you > for your cooperation.
