I just installed the latest m2eclipse 0.0.11.20070916 plugin and am encountering two errors. This is the second of the two emails describing the second error.
Problem Description: The m2eclipse plugin throws a NullPointerException I attempt to use the "Enable Nested Modules" menu item on a project. Steps to Reproduce: 1. Create a maven project. 2. Create sub folders for "sub modules". 3. Create poms for each, in the appropriate sub folder. 4. Create a top level pom which uses the standard <modules><module>...</module>...</modules> syntax to create a standard maven multi-module build. 5. Put dependencies in some of the sub projects. 6. Enable the .m2 plugin's dependency management on the top level folder/project. 7. Notice none of the dependencies show up in the project (they used to appear in prior versions of the plugin). 8. Attempt to fix this by using the right click menu item "Maven->Enable Nested Models". 9. Observe the NullPointerException. 10. Go to the menu "Window->Show View->Other". Select "PDE Runtime->Error Log". 11. In the error log, note the logged exception, which reads: java.lang.NullPointerException at org.maven.ide.eclipse.container.Maven2Builder.addModulePoms( Maven2Builder.java:103) at org.maven.ide.eclipse.container.Maven2Builder.addModulePoms( Maven2Builder.java:110) at org.maven.ide.eclipse.container.Maven2Builder.build(Maven2Builder.java :80) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java :624) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild( BuildManager.java:166) at org.eclipse.core.internal.events.BuildManager.basicBuild( BuildManager.java:197) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java :246) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild( BuildManager.java:249) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop( BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java :334) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java :137) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) My Questions for the Mailing List: + I'd like to get at least 1 other person to try the steps to recreate above and confirm the problems do indeed happen for them. + Should I go ahead and open a JIRA issue for this? + Does this latest plugin simply not support a project with nested modules (ie multi-module builds)? Thanks, Doug Bateman
