Hi,

My Eclipse installation is Europa
I've been using the 0.0.9 version for a while (since callisto), (with
multimodules) and it suited my needs.
Then i tried to switch to 0.0.11 (I avoided 0.0.10 because i had no time to
try it when it went out)
Now, with 0.0.11  I got almost the same problem as you: that is the
dependencies are lost
(the eclipse java build path - maven2 dependencies entry - is empty. but I
dont get a nullpointer)
Therefeore I switched back to 0.0.9 

(another issue, is that although I didnt choose to install the mylyn
connector, it re-enabled the mylyn plugin that I had previously disabled)

Christian-Luc


Doug Bateman wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/m2eclipse-0.0.11%3A-%22NullPointerException%22-when-using-a-multi-module-project-%28nested-modules%29-tf4499803s177.html#a12855913
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to