[m2] NoSuchMethodError exception when executing site:site
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
Re: [m2] NoSuchMethodError exception when executing site:site
Zheng, I got the same thing over the weekend and found that Maven was downloading the most recent plugins but I didn't have the most recent dist to go with them. To get things working (at least partway), I cleared out my maven plugings from the repo and installed M2 RC. This got me further, but I still had an issue. . .if I remember, it had something to do with trying to generate a site from a project without any source. If I create a main/java dir or generate the site from a project which contains source, it execs fine. David On 10/17/05, Zhong ZHENG [EMAIL PROTECTED] wrote: 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]:
RE: [m2] NoSuchMethodError exception when executing site:site
Brett Porter had this to say about the error There was a required update to the reporting API. Compatible plugins will be republished in the near future. If you are able to rebuild the plugin from SVN that should work as is. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David H. DeWolf Sent: Monday, October 17, 2005 8:19 AM To: Maven Users List Subject: Re: [m2] NoSuchMethodError exception when executing site:site Zheng, I got the same thing over the weekend and found that Maven was downloading the most recent plugins but I didn't have the most recent dist to go with them. To get things working (at least partway), I cleared out my maven plugings from the repo and installed M2 RC. This got me further, but I still had an issue. . .if I remember, it had something to do with trying to generate a site from a project without any source. If I create a main/java dir or generate the site from a project which contains source, it execs fine. David On 10/17/05, Zhong ZHENG [EMAIL PROTECTED] wrote: 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