Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345222

Summary: java.lang.NoSuchMethodError: org.eclipse.m2e.core.MavenPlugin.getMavenProjectManager()
Product: z_Archived Reporter: Mohsen Saboorian <mohsens>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: fbricon, igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mohsen Saboorian CLA 2011-05-10 00:00:50 EDT
Using either the latest milestone, or latest nightly build of m2e, I always receive error during building a project. I can successfully build it with mvn from command line.


-- Error Details --
Date: Tue May 10 08:19:58 IRDT 2011
Message: An internal error occurred during: "Updating Maven Dependencies".
Severity: Error
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.jee.product)
Plugin: org.eclipse.core.jobs
Session Data:
eclipse.buildId=M20110210-1200
java.version=1.6.0_25
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -data E:\programs\eclipse-workspace\ws


Exception Stack Trace:
java.lang.NoSuchMethodError: org.eclipse.m2e.core.MavenPlugin.getMavenProjectManager()Lorg/eclipse/m2e/core/project/MavenProjectManager;
at org.maven.ide.eclipse.wtp.AbstractProjectConfiguratorDelegate.<init>(AbstractProjectConfiguratorDelegate.java:70)
at org.maven.ide.eclipse.wtp.WebProjectConfiguratorDelegate.<init>(WebProjectConfiguratorDelegate.java:72)
at org.maven.ide.eclipse.wtp.ProjectConfiguratorDelegateFactory.getProjectConfiguratorDelegate(ProjectConfiguratorDelegateFactory.java:35)
at org.maven.ide.eclipse.wtp.WTPProjectConfigurator.mavenProjectChanged(WTPProjectConfigurator.java:74)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.mavenProjectChanged(ProjectConfigurationManager.java:753)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.notifyProjectChangeListeners(ProjectRegistryManager.java:724)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.applyMutableProjectRegistry(ProjectRegistryManager.java:847)
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob.run(ProjectRegistryRefreshJob.java:93)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Fred Bricon CLA 2011-05-13 05:25:39 EDT
This has been fixed in m2e-wtp : 
* Use the m2e Marketplace with the latest m2e M7 to install corresponding working m2e-wtp version.
* Latest m2e-wtp CI builds work with the latest m2e CI builds. Note these versions are incompatible with the last m2e milestone.
Comment 2 Mohsen Saboorian CLA 2011-05-13 08:20:00 EDT
Thanks for the reply. I uninstalled all previous nightly packages, and did as your told. It's now fixed. Thank you!

(In reply to comment #1)
> This has been fixed in m2e-wtp : 
> * Use the m2e Marketplace with the latest m2e M7 to install corresponding
> working m2e-wtp version.
> * Latest m2e-wtp CI builds work with the latest m2e CI builds. Note these
> versions are incompatible with the last m2e milestone.
Comment 3 Igor Fedorenko CLA 2011-08-01 02:44:28 EDT
closing as per last comment
Comment 4 Denis Roy CLA 2021-04-19 13:22:24 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/