Module dependencies

I have some problems defining multiple modules in one project. Problably I don't understand the concept.
I want to define two modules, both based on common files (/proj/src/common) and some specific implementations and extensions (/proj/src/spec1, /proj/src/spec2). For both modules, I set the content root to /proj/ and select in one module src/common and src/spec1 as sources an in the other src/common and src/spec2 as sources. And that looks logical for me.
But if I have a look on the project view in the main window, the first module has no files. And it is not possible to access on this files by name (Ctrl+N).
Is this not the idea behind the multiple module concept? Can I do it on a different way? In version 3.0 I was caring multiple projects with the hassle to change them and compile them for checking its integrity.

Christian

1 comment

You have overlapping roots, that's not allowed in Idea 4.0.
What you need to do is to have three modules:
- One that includes the common files (/proj/src/common).
- One that includes (/proj/src/spec1).
- One that includes (/proj/src/spec2).
Make the content roots the same as the source folders. (They can't all have
the same or overlapping content roots.)
Make each of the last two modules depend on the first one.

Tim

"Christian Heldstab" <no_mail@jetbrains.com> wrote in message
news:5709462.1078735055636.JavaMail.itn@is.intellij.net...

I have some problems defining multiple modules in one project. Problably I

don't understand the concept.

I want to define two modules, both based on common files

(/proj/src/common) and some specific implementations and extensions
(/proj/src/spec1, /proj/src/spec2). For both modules, I set the content root
to /proj/ and select in one module src/common and src/spec1 as sources an in
the other src/common and src/spec2 as sources. And that looks logical for
me.

But if I have a look on the project view in the main window, the first

module has no files. And it is not possible to access on this files by name
(Ctrl+N).

Is this not the idea behind the multiple module concept? Can I do it on a

different way? In version 3.0 I was caring multiple projects with the hassle
to change them and compile them for checking its integrity.
>

Christian



0

Please sign in to leave a comment.