History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16150
Type: Bug Bug
Status: Open Open
Assignee: Anton Makeev
Reporter: Maarten van Egmond
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Inter-module dependencies are not preserved.

Created: 01 Nov 07 22:00   Updated: 06 Dec 07 11:16
Component/s: Maven Integration

Environment:
Windows XP service pack 2

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)


Build: 7,364
Severity: High


 Description  « Hide
Imported a Maven project, where some modules depend on others, e.g. services module depends on api module.
The project build successfully from within IDEA. (Using the clean lifecycle followed by the package lifecycle, initiated from Maven Build panel.)

However, in the editor, if I view a class in the services module, classes defined in the "api" module are not resolved.
So, I go to the module dependencies and add the dependencies there. This picture has a similar dependency:
http://www.jetbrains.net/jira/secure/attachment/23319/3-verified-module-dependency.jpg
(note the webapp-reference-core has been added as a dependency). In my case, I add the api module as a dependency in the services module.
I save the dialogs, and indeed all errors disappear in the editor.

However, when I exit IDEA and start it again, the inter-module dependencies are lost. The services module no longer depends on the api module.
This inhibits navigation between files, which I rate as a High severity level.

This may be the same/similar issue as http://www.jetbrains.net/jira/browse/IDEADEV-22555



 All   Comments   Work Log   Change History      Sort Order:
Anton Makeev - 05 Dec 07 16:42
Does the problem still occur?

Maarten van Egmond - 05 Dec 07 22:06
Yes, it does, but I found a workaround. If I do a mvn idea:idea, from a Windows cmd window (not from Cygwin), then all idea files are set up correctly. I ran into the issue above when trying to set up the maven project by hand.

Anton Makeev - 06 Dec 07 11:00
Could you please sent me poms/files with isolated problem?

Maarten van Egmond - 06 Dec 07 11:08
Hi Anton,

Sorry, I'm in crunch mode and will not be able to get you a reproducable setup for a while (i.e. weeks).


Anton Makeev - 06 Dec 07 11:16
Ok then, send it when you'll be able to.