maven error when creating project
Status: Alpha
Brought to you by:
amuino
Creating a new appfuse project is blocked by the error
org.maven.ide.eclipse.embedder.MavenEmbedderManager.getProjectEmbedder()Lorg/apache/maven/embedder/MavenEmbedder;
This happens for all archetypes. Installing q4e makes no difference.
I am running Windows XP SP2, Eclipse 3.3.1.1 JDK 1.5.0_10-b03
Plugins:
M2 v2.1.0.571188-shaded
Candy v0.3.1.v20070531-0017
I am running Eclipse from a network mounted drive. Could that be the problem?
Logged In: YES
user_id=1752656
Originator: NO
If you experience problems using maven from the command line, candy can't be of any help, since it just runs maven for you.
Keep in mind that Candy is changing its maven support from m2eclipse to q4e, so it will take some time until it is usable and compatible with latest AppFuse.
Logged In: YES
user_id=58006
Originator: YES
I am able to run maven, to create Appfuse projects from the command line. I do get ReferenceException warnings, however.
Since Candy only offered the 2.0-m5 version of Appfuse, I uninstalled Candy, and the Maven plugins. Unfortunately, Eclipse failed at the restart.
After deleting Eclipse, and re-installing it, with no other plugins, I get the same problem as before.
You should see these problems, if you test Candy on the latest Eclipse Europa version. I see no way to tell Candy to run an old version of Appfuse.
Incidentally, you should add a quick doc on your site, to explain how to use Candy (File -> New -> Project -> Appfuse)
Thanks, Bruce
Logged In: YES
user_id=1967302
Originator: NO
I am getting the same error, but I am not on a network mounted drive. I believe it is because I am using the latest version of m2eclipse which removed MavenEmbeddedManager.getProjectEmbedder()
http://fisheye.codehaus.org/browse/m2eclipse/trunk/org.maven.ide.eclipse/src/org/maven/ide/eclipse/embedder/MavenEmbedderManager.java?r1=193&r2=250
Is this something that will not be dealt with since the expected switch to q4e? Thanks!
Here is the stack trace:
InvocationException while creating the project
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at es.amuino.appfuse.project.ui.wizards.AppFuseProjectWizard.performFinish(AppFuseProjectWizard.java:126)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: java.lang.NoSuchMethodError: org.maven.ide.eclipse.embedder.MavenEmbedderManager.getProjectEmbedder()Lorg/apache/maven/embedder/MavenEmbedder;
at es.amuino.appfuse.project.ui.wizards.CreateProjectOperation.execute(CreateProjectOperation.java:290)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Root exception:
java.lang.NoSuchMethodError: org.maven.ide.eclipse.embedder.MavenEmbedderManager.getProjectEmbedder()Lorg/apache/maven/embedder/MavenEmbedder;
at es.amuino.appfuse.project.ui.wizards.CreateProjectOperation.execute(CreateProjectOperation.java:290)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)