You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "fabrizio giustina (JIRA)" <ji...@codehaus.org> on 2006/01/22 09:48:06 UTC

[jira] Closed: (MCHECKSTYLE-32) checkstyle module property "severity=warning" causes mvn checkstyle:checkstyle error

     [ http://jira.codehaus.org/browse/MCHECKSTYLE-32?page=all ]
     
fabrizio giustina closed MCHECKSTYLE-32:
----------------------------------------

      Assign To: fabrizio giustina
     Resolution: Fixed
    Fix Version: 2.0-beta-2

already fixed in the current svn revision

> checkstyle module property "severity=warning" causes mvn checkstyle:checkstyle error
> ------------------------------------------------------------------------------------
>
>          Key: MCHECKSTYLE-32
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-32
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>     Versions: 2.0-beta-2
>  Environment: j2sdk1.4.2_02, windows xp
>     Reporter: Artur Opala
>     Assignee: fabrizio giustina
>      Fix For: 2.0-beta-2

>
>
> Custom checkstyle config:
> ...
> <module name="AvoidStarImport">
>        <property name="severity" value="warning"/>
>  </module>
> ...
> executed with mvn checkstyle:checkstyle generates error:
> [DEBUG] maven-checkstyle-plugin: resolved to version 2.0-beta-2-20051230.164525-2 from repository snapshots
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-checkstyle-plugin:maven-plugin:2.0-beta-2-20051230.164525-2
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building ****
> [INFO]    task-segment: [checkstyle:checkstyle]
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.0-beta-2-20051230.164525-2 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.apache.maven:maven-plugin-api:jar:2.0.1
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1 (selected for runtime)
> [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for runtime)
> [DEBUG]   checkstyle:checkstyle-optional:jar:4.1 (selected for runtime)
> [DEBUG]     checkstyle:checkstyle:jar:4.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]       commons-beanutils:commons-beanutils-core:jar:1.7.0 (selected for runtime)
> [DEBUG]         commons-logging:commons-logging:jar:1.0 (removed - nearer found: 1.0.3)
> [DEBUG]         commons-collections:commons-collections:jar:2.0 (selected for runtime)
> [DEBUG]       antlr:antlr:jar:2.7.2 (selected for runtime)
> [DEBUG]       commons-collections:commons-collections:jar:2.0 (removed - nearer found: 2.1)
> [DEBUG]       commons-collections:commons-collections:jar:2.1 (selected for runtime)
> [DEBUG]   org.codehaus.plexus:plexus-velocity:jar:1.1.2 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7
> [DEBUG] Retrieving parent-POM from the repository for project: plexus:plexus-containers:pom:1.0.2
> [DEBUG]     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7 (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]     commons-logging:commons-logging-api:jar:1.0.4 (selected for runtime)
> [DEBUG]     commons-collections:commons-collections:jar:2.1 (removed - nearer found: 2.0)
> [DEBUG]     commons-collections:commons-collections:jar:2.0 (selected for runtime)
> [DEBUG]     classworlds:classworlds:jar:1.1-alpha-2 (selected for runtime)
> [DEBUG]     velocity:velocity:jar:1.4 (selected for runtime)
> [DEBUG]       velocity:velocity-dep:jar:1.4 (selected for runtime)
> [DEBUG]   log4j:log4j:jar:1.2.6 (removed - nearer found: 1.2.12)
> [DEBUG]   log4j:log4j:jar:1.2.12 (selected for runtime)
> [DEBUG]   checkstyle:checkstyle:jar:4.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 (removed - nearer found: 1.2.12)
> [DEBUG]     commons-beanutils:commons-beanutils-core:jar:1.7.0 (selected for runtime)
> [DEBUG]       commons-logging:commons-logging:jar:1.0 (removed - nearer found: 1.0.3)
> [DEBUG]     antlr:antlr:jar:2.7.2 (selected for runtime)
> [DEBUG]     commons-collections:commons-collections:jar:2.1 (removed - nearer found: 2.0)
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-reporting-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-project:jar:2.0
> [DEBUG]     org.apache.maven:maven-project:jar:2.0 (selected for runtime)
> [DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (removed - nearer found: 1.0-alpha-7)
> [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] 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] 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 runtime)
> [DEBUG]         org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (removed - nearer found: 1.0-alpha-7)
> [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.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-profile:jar:2.0
> [DEBUG]       org.apache.maven:maven-profile:jar:2.0 (selected for runtime)
> [DEBUG]         org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8 (removed - nearer found: 1.0-alpha-7)
> [DEBUG] Retrieving parent-POM from the repository for project: null:maven-reporting-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] 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 (removed - nearer found: 2.0.1)
> [DEBUG]     oro:oro:jar:2.0.7 (selected for runtime)
> [DEBUG]     doxia:doxia-core:jar:1.0-alpha-4 (selected for runtime)
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] ************************************************************** 
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
> [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
> [INFO] Velocimacro : error using  VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
> [INFO] Velocimacro :  VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be  global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-checkstyle-plugin:2.0-beta-2-SNAPSHOT:checkstyle' -->
> [DEBUG]   (f) cacheFile = ****
> [DEBUG]   (f) configLocation = src/main/config/checkstyle-checker.xml
> [DEBUG]   (f) enableFilesSummary = true
> [DEBUG]   (f) enableRSS = true
> [DEBUG]   (f) enableRulesSummary = true
> [DEBUG]   (f) enableSeveritySummary = true
> [DEBUG]   (f) failsOnError = false
> [DEBUG]   (f) format = sun
> [DEBUG]   (f) headerFile = ****
> [DEBUG]   (f) headerLocation = LICENSE.txt
> [DEBUG]   (f) includes = **/*.java
> [DEBUG]   (f) outputDirectory = ****
> [DEBUG]   (f) outputFile = ****
> [DEBUG]   (f) outputFileFormat = xml
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@336d139e
> [DEBUG]   (f) sourceDirectory = ****
> [DEBUG] -- end configuration --
> [INFO] [checkstyle:checkstyle]
> [DEBUG] resolveLocation(src/main/config/checkstyle-checker.xml, checkstyle-checker.xml)
> [DEBUG] Location is not a URL.
> [DEBUG] Potential File: p:\workspace\eb-ubik-prototyp\aplikacja\src\main\config\checkstyle-checker.xml
> [DEBUG] resolveLocation(null, checkstyle-checker.properties)
> [DEBUG] resolveLocation(LICENSE.txt, checkstyle-header.txt)
> [DEBUG] Location is not a URL.
> [DEBUG] Location is not a File.
> [DEBUG] Potential Resource: jar:file:/c:/app/maven-2.0.2/lib/jsch-0.1.24.jar!/LICENSE.txt
> [DEBUG] resolveLocation(null, checkstyle-packages.xml)
> [DEBUG] resolveLocation(null, checkstyle-suppressions.xml)
> [INFO] Starting audit...
> Audit done.
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ----------------------------------------------------------------------------
> [INFO] An error has occurred in Checkstyle report generation.
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred in Checkstyle report generation.
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:556)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred in Checkstyle report generation.
> 	at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
> 	... 16 more
> Caused by: java.lang.UnsupportedOperationException
> 	at java.util.AbstractList.remove(AbstractList.java:171)
> 	at java.util.AbstractList$Itr.remove(AbstractList.java:436)
> 	at java.util.AbstractCollection.remove(AbstractCollection.java:255)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.doRuleRow(CheckstyleReportGenerator.java:294)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.doRuleChildren(CheckstyleReportGenerator.java:282)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.doRuleChildren(CheckstyleReportGenerator.java:278)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.doRulesSummary(CheckstyleReportGenerator.java:252)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReportGenerator.generateReport(CheckstyleReportGenerator.java:107)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReport.generateMainReport(CheckstyleReport.java:567)
> 	at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:474)
> 	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
> 	at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
> 	... 18 more

-- 
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org