Hi, there,

I am trying to use m2 to generate the project site. When executing
site:site, i got the following NoSuchMethodError exception:

[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Apache Pluto Site Chinese Translation
[INFO] task-segment: [site: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]
---------------------------------------------------
constituent[0]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
core-2.0-beta-3.jar
constituent[1]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
artifact-manager-2.0-beta-3.jar
constituent[2]: file:/D:/javasoft/maven-2.0-beta-3/lib/plexus-
input-handler-1.0-alpha-2.jar
constituent[3]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-api-2.0-beta-3.jar
constituent[4]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-descriptor-2.0-beta-3.jar
constituent[5]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
artifact-2.0-beta-3.jar
constituent[6]: file:/D:/javasoft/maven-2.0-beta-3/lib/commons-cli-1.0.jar
constituent[7]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
model-2.0-beta-3.jar
constituent[8]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
settings-2.0-beta-3.jar
constituent[9]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
repository-metadata-2.0-beta-3.jar
constituent[10]: file:/D:/javasoft/maven-2.0-beta-3/lib/jsch-0.1.21.jar
constituent[11]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
provider-api-1.0-alpha-4.jar
constituent[12]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
monitor-2.0-beta-3.jar
constituent[13]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
reporting-api-2.0-beta-3.jar
constituent[14]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
profile-2.0-beta-3.jar
constituent[15]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
file-1.0-alpha-4.jar
constituent[16]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
project-2.0-beta-3.jar
constituent[17]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-registry-2.0-beta-3.jar
constituent[18]: file:/D:/javasoft/maven-2.0-beta-3/lib/jline-0.9.1.jar
constituent[19]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-parameter-documenter-2.0-beta-3.jar
constituent[20]: file:/D:/javasoft/maven-2.0-beta-3/lib/doxia-
sink-api-1.0-alpha-4.jar
constituent[21]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
ssh-1.0-alpha-4.jar
constituent[22]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
http-lightweight-1.0-alpha-4.jar
---------------------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.maven.reporting.MavenReport.canGenerateReport()Z
at org.apache.maven.plugins.site.SiteMojo.filterReports(SiteMojo.java:407)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:221)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:417)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:554)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal
(DefaultLifecycleExecutor.java:517)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:498)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:307)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
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)

But about three days ago, when executing site:site, I didn't get such
exception. So what's wrong with my project reports?
Thanks in advance.

--

ZHENG Zhong

1 Avenue Alphand
75116 Paris, France
+33 6 76 80 45 90

Reply via email to