Monday, July 19, 2010

MyEclipseIDE Maven4MyEclipse Null Pointer bug

I use MyEclipseIDE generally as my main IDE, I recently switched development teams at work, while importing all their existing maven projects with the Maven4MyEclipse plugin into my new workspace I had quite a few of these little annoying popups:


I went and checked the Log:

java.lang.NullPointerException
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.findWebRoot (MyEclipseProjectSupport.java:204)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configureWebProject (MyEclipseProjectSupport.java:71)
at com.genuitec.eclipse.maven.project.MyEclipseProjectSupport.configure (MyEclipseProjectSupport.java:57)
at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure (AbstractLifecycleMapping.java:57)
at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure (GenericLifecycleMapping.java:48)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration (ProjectConfigurationManager.java:332)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration (ProjectConfigurationManager.java:318)
at org.maven.ide.eclipse.actions.UpdateSourcesAction$1.runInWorkspace (UpdateSourcesAction.java:93)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


So I figure it is moaning about the WebRoot... let me try:

Right click on project go to MyEclipse Menu and Add Web Project Capabilities.



Worked like a charm.

1 comment:

Popular Posts

Followers