Opening multiple poms

Hi,

is it possible to create multiple poms within one project?
I have two multi module projects (A and B) where some modules of B
depend on modules of A.

Now I want to open one instance of Idea where all projects can be edited
(and the dependencies are set up correctly).

I did this by importing the poms into the current project.
What is the best way with the newest EAPs?



Johannes Schneider

5 comments
Comment actions Permalink

We have a similar situation - 3-modules project, each module has it's own pom. But we also keep a "master" pom which references other modules:

                ../module1
        ../module2
        ../module3

]]>


This master pom is what we open in IDEA

0
Comment actions Permalink

i do the same

I view it as materializing my "workspace" in a pom, which links together otherwise (unrelated) project

0
Comment actions Permalink

I tried this. Unfortunately the dependencies within the modules are not
set up correctly.
The modules of project B that depend on modules of project A are linked
to the installed jars within the local maven repository...


Johannes Schneider

Evgeny Goldin wrote:

We have a similar situation - 3-modules project, each module has it's own pom. But we also keep a "master" pom which references other modules:

 
>         >         ../module1
>         ../module2
>         ../module3
> 
> ]]>


This master pom is what we open in IDEA

0
Comment actions Permalink

mvn idea:idea will link modules as projects.

0
Comment actions Permalink

Andrew Perepelytsya wrote:

mvn idea:idea will link modules as projects.


Yes, of course.
But I think this is not what the Maven support is made for... ;)


Johannes Schneider

0

Please sign in to leave a comment.