Hi,

I tried to do something clean. independant from previous Eclipse
installations and workspace. Therfeore here what I did:

installed eclipse-jee-europa-win32.zip (Version: 3.3.0 Build id:
I20070621-1340) in a new location
no additional plugin, and no plugin desactivated
created an empty workspace in a new location
installed maven integration for eclipse 0.0.11 (including mylyn stuff)
went to maven preferences: 
it took a very long time to find my user settings.xml
then, I made the Global settings point to my Maven 2.0.7 Installation
configuration settings
so far so good except that when i "apply" I have this unfriendly warning: 
Unable to parse user settings file
(even if I take out the global settings, or if I restart eclipse).

However, reindexing local repository did not crash :-) BUT I got a cryptic
warning:

While loading class
"org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy", thread
"Thread[Worker-3,5,main]" timed out waiting (5000ms) for thread
"Thread[main,6,main]" to finish starting bundle
"[EMAIL PROTECTED]/org.maven.ide.eclipse_0.0.11.20070916-2300/ [477]". To avoid
deadlock, thread "Thread[Worker-3,5,main]" is proceeding but
"org.apache.lucene.index.KeepOnlyLastCommitDeletionPolicy" may not be fully
initialized.

further re-indexing went fine (thanks Lucene ???)

Well, now it's time to crunch some projects:

I imported a simple projet (no multimodules)
All dependencies were found.  
Project compiles. That all I need so far.

then, I imported a multimodule project
No dependencies appear in buildpath
project did not compile, and I got this exception:

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) 

Therefore, I tried to use the screen you reference in your reply
I just unchecked: "resolve dependencies from workspace projects" (I dont
have any)
the other box was checked: "include dependencies and source folders from
modules"
I left it checked
I had a look ath the dependency tab: empty (probably because my multimodule
has no dependency and just sub-modules with their own dependencies ???)

Anyway, I clicked OK and everything compiled !!!

CONCLUSION:

I have some real difficulties understanding the differences between Maven
Enable ... submenu options when you are on the project, and the "dependency
resolver configuration" screen which is quite hard to get to.
and, it should not crash , even if the project has no workspace dependency.

apart from that, it's promising.
Thanks Eugene.

Christian-Luc




Eugene Kuleshov wrote:
> 
> Christian-Luc,
> 
>   If you are using single project setup for nested modules, then you can
> turn on module dependencies from popup menu on Maven project or from
> "Maven Dependencies" container configuration. See
> http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management
> 
>   Please let me know if it doesn't work for you.
> 
>   As for Mylyn stuff, we don't have any code to enable or disable plugins.
> Please report this to Eclipse developers, probably Update Manager
> component.
> 
>   regards,
>   Eugene
> 
> 
> houzecl wrote:
>> 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
>>
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
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#a12917592
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