Does M2Eclipse 0.0.10 supports maven-checkstyle-plugin? When I run
checkstyle:checkstyle from command line, it all works. But when I run
from eclipse, there are errors. Here is the output:
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\fabridal\.m2\plugin-registry.xml'
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\fabridal\.m2\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[DEBUG] maven-checkstyle-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM:
org.apache.maven.plugins:maven-plugins::1 for project:
null:maven-checkstyle-plugin:maven-plugin:2.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
project: org.apache.maven.plugins:maven-plugins:pom:1 from the
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1 from the repository.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Central Virtual de Atendimento ao contribuinte da PGFN
[INFO] task-segment: [checkstyle:checkstyle]
[INFO]
----------------------------------------------------------------------------
[DEBUG]
org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.1:runtime
(selected for runtime)
[DEBUG] checkstyle:checkstyle-optional:jar:4.1:runtime (selected for runtime)
[DEBUG] checkstyle:checkstyle:jar:4.1:runtime (selected for runtime)
[DEBUG] antlr:antlr:jar:2.7.2:runtime (selected for runtime)
[DEBUG] commons-beanutils:commons-beanutils-core:jar:1.7.0:runtime
(selected for runtime)
[DEBUG] commons-logging:commons-logging:jar:1.0:runtime
(selected for runtime)
[DEBUG]
commons-collections:commons-collections:jar:2.0:runtime (selected for
runtime)
[DEBUG] commons-collections:commons-collections:jar:2.0:runtime
(removed - nearer found: 2.1)
[DEBUG] commons-collections:commons-collections:jar:2.1:runtime
(selected for runtime)
[DEBUG] commons-logging:commons-logging:jar:1.0:runtime (removed
- nearer found: 1.0.3)
[DEBUG] commons-logging:commons-logging:jar:1.0.3:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.2:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: plexus:plexus-containers::1.0.2 for
project: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7
from the repository.
[DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0.3 for project:
plexus:plexus-containers:pom:1.0.2 from the repository.
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-7:runtime
(selected for runtime)
[DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime
(selected for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG] commons-collections:commons-collections:jar:2.1:runtime
(removed - nearer found: 2.0)
[DEBUG] commons-collections:commons-collections:jar:2.0:runtime
(selected for runtime)
[DEBUG] commons-logging:commons-logging-api:jar:1.0.4:runtime
(selected for runtime)
[DEBUG] velocity:velocity:jar:1.4:runtime (selected for runtime)
[DEBUG] velocity:velocity-dep:jar:1.4:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: null:plexus-utils:jar:1.1 from the repository.
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven:maven-plugin-api:jar:2.0 from the
repository.
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
for runtime)
[DEBUG] checkstyle:checkstyle:jar:4.1:runtime (selected for runtime)
[DEBUG] antlr:antlr:jar:2.7.2:runtime (selected for runtime)
[DEBUG] commons-beanutils:commons-beanutils-core:jar:1.7.0:runtime
(selected for runtime)
[DEBUG] commons-logging:commons-logging:jar:1.0:runtime
(selected for runtime)
[DEBUG] commons-collections:commons-collections:jar:2.1:runtime
(removed - nearer found: 2.0)
[DEBUG] commons-logging:commons-logging:jar:1.0:runtime (removed -
nearer found: 1.0.3)
[DEBUG] commons-logging:commons-logging:jar:1.0.3:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.reporting:maven-reporting::2.0 for project:
null:maven-reporting-impl:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven.reporting:maven-reporting:pom:2.0 from the
repository.
[DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: null:maven-project:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: null:maven-profile:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven:maven-model:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(removed - nearer found: 1.0-alpha-7)
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven:maven-artifact-manager:jar:2.0 from the
repository.
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven:maven-repository-metadata:jar:2.0 from the
repository.
[DEBUG]
org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven:maven-artifact:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(removed - nearer found: 1.0-alpha-7)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime
(selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
(removed - nearer found: 1.1)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(removed - nearer found: 1.0-alpha-7)
[DEBUG] commons-validator:commons-validator:jar:1.1.4:runtime
(selected for runtime)
[DEBUG] oro:oro:jar:2.0.7:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.reporting:maven-reporting::2.0 for project:
null:maven-reporting-api:jar:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
project: org.apache.maven.reporting:maven-reporting:pom:2.0 from the
repository.
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0:runtime
(selected for runtime)
[DEBUG] doxia:doxia-sink-api:jar:1.0-alpha-4:runtime (selected
for runtime)
[DEBUG] doxia:doxia-core:jar:1.0-alpha-4:runtime (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.1:checkstyle' -->
[DEBUG] (f) cacheFile = C:\workspaceExadel
4.0.4a\01-Aplicacao\target/checkstyle-cachefile
[DEBUG] (f) configLocation = checkstyle.xml
[DEBUG] (f) consoleOutput = false
[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 = C:\workspaceExadel 4.0.4a\01-Aplicacao\LICENSE.txt
[DEBUG] (f) headerLocation = LICENSE.txt
[DEBUG] (f) includes = **/*.java
[DEBUG] (f) linkXRef = true
[DEBUG] (f) outputDirectory = C:\workspaceExadel
4.0.4a\01-Aplicacao\target\site
[DEBUG] (f) outputFile = C:\workspaceExadel
4.0.4a\01-Aplicacao\target\checkstyle-result.xml
[DEBUG] (f) outputFileFormat = xml
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] (f) sourceDirectory = C:\workspaceExadel
4.0.4a\01-Aplicacao\src\main\java
[DEBUG] (f) xrefLocation = C:\workspaceExadel
4.0.4a\01-Aplicacao\target\site\xref
[DEBUG] -- end configuration --
[INFO] checkstyle:checkstyle
[ERROR] mojo-execute : checkstyle:checkstyle
Diagnosis: An error has occurred in Checkstyle report generation.
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : br.gov.pgfn.ecac:e-CACPGFN:war:1.0-SNAPSHOT
( task-segment: [checkstyle:checkstyle] )
Diagnosis: An error has occurred in Checkstyle report generation.
FATAL ERROR: Error executing Maven for a project
[ERROR] reactor-execute : C:\workspaceExadel 4.0.4a\01-Aplicacao
Diagnosis: An error has occurred in Checkstyle report generation.
FATAL ERROR: Error executing Maven for a project
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace An error has occurred in Checkstyle report generation.
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Aug 08 18:01:31 GMT-03:00 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Central Virtual de Atendimento ao
contribuinte da PGFN (during checkstyle:checkstyle)
[INFO] ------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace An error has occurred in Checkstyle report generation.
[INFO] ------------------------------------------------------------------------
[ERROR] reactor-execute : C:\workspaceExadel 4.0.4a\01-Aplicacao
FATAL ERROR: Error executing Maven for a project
[INFO] BUILD ERRORS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Aug 08 18:01:31 GMT-03:00 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
thanks in advance,
FabrÃcio Lemos
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email