Did you update your version of the PMD plugin? It seems like the PMD
plugin you're using does not implement canGenerateReport() method.
Try checking out the latest pmd plugin from svn and install it to your
local repository. See:
http://maven.apache.org/guides/development/guide-testing-development-plugins.html
Mayorgaadame, Alex wrote:
Hello all,
What may be wrong here:
bash-2.03$ mvn site
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building GTPL Maven Sample Project
[INFO] task-segment: [site]
[INFO]
----------------------------------------------------------------------------
[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.
[INFO] [site:site]
[WARNING] Error loading report org.apache.maven.plugin.pmd.PmdReport -
AbstractMethodError: canGenerateReport()
[INFO] Generate "Continuous Integration" report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate "Dependencies" report.
[INFO] Generate "Issue Tracking" report.
[INFO] Generate "Project License" report.
[INFO] Generate "Mailing Lists" report.
[INFO] Generate "Source Repository" report.
[INFO] Generate "Project Team" report.
[INFO] Generate "Checkstyle" report.
[INFO]
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------------
---------------------------------------------------
constituent[0]: file:/export1/eae/maven/maven-2.0/lib/maven-core-2.0.jar
constituent[1]:
file:/export1/eae/maven/maven-2.0/lib/maven-plugin-parameter-documenter-2.0.jar
constituent[2]: file:/export1/eae/maven/maven-2.0/lib/maven-model-2.0.jar
constituent[3]: file:/export1/eae/maven/maven-2.0/lib/maven-profile-2.0.jar
constituent[4]: file:/export1/eae/maven/maven-2.0/lib/maven-project-2.0-1.jar
constituent[5]:
file:/export1/eae/maven/maven-2.0/lib/maven-error-diagnostics-2.0.jar
constituent[6]:
file:/export1/eae/maven/maven-2.0/lib/plexus-interactivity-api-1.0-alpha-4.jar
constituent[7]:
file:/export1/eae/maven/maven-2.0/lib/wagon-http-lightweight-1.0-alpha-5.jar
constituent[8]:
file:/export1/eae/maven/maven-2.0/lib/maven-plugin-descriptor-2.0.jar
constituent[9]: file:/export1/eae/maven/maven-2.0/lib/commons-cli-1.0.jar
constituent[10]: file:/export1/eae/maven/maven-2.0/lib/wagon-ssh-1.0-alpha-5.jar
constituent[11]:
file:/export1/eae/maven/maven-2.0/lib/maven-artifact-manager-2.0-1.jar
constituent[12]: file:/export1/eae/maven/maven-2.0/lib/maven-artifact-2.0-1.jar
constituent[13]: file:/export1/eae/maven/maven-2.0/lib/maven-monitor-2.0.jar
constituent[14]:
file:/export1/eae/maven/maven-2.0/lib/maven-repository-metadata-2.0.jar
constituent[15]: file:/export1/eae/maven/maven-2.0/lib/jsch-0.1.23.jar
constituent[16]: file:/export1/eae/maven/maven-2.0/lib/maven-settings-2.0.jar
constituent[17]:
file:/export1/eae/maven/maven-2.0/lib/wagon-file-1.0-alpha-5.jar
constituent[18]:
file:/export1/eae/maven/maven-2.0/lib/wagon-provider-api-1.0-alpha-5.jar
constituent[19]:
file:/export1/eae/maven/maven-2.0/lib/maven-reporting-api-2.0.jar
constituent[20]: file:/export1/eae/maven/maven-2.0/lib/maven-plugin-api-2.0.jar
constituent[21]:
file:/export1/eae/maven/maven-2.0/lib/maven-plugin-registry-2.0.jar
constituent[22]:
file:/export1/eae/maven/maven-2.0/lib/doxia-sink-api-1.0-alpha-4.jar
---------------------------------------------------
java.lang.NullPointerException
at
org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique(DiagnosisUtils.java:89)
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose(ErrorDiagnostics.java:132)
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDiagnostics.java:104)
at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
at org.apache.maven.DefaultMaven.logFatal(DefaultMaven.java:627)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
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:585)
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)
Thanks,
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]