Is it ok to use one folder as a module in two projects?

I have several applications. Each application is a Maven project. A set of applications which have something in common form an Idea project which I use for development. Each applciation enters Idea project as a separate module, created from Maven POM file.

Now a question: can I use the same application (i.e. Maven project i.e. physical folder) twice in differen Idea projects?

In other words, if I will press Add Module -> from Maven Sources for the same module twice in two different Idea projects - it will corrupt something or not?

1 comment
Comment actions Permalink

I think this should work. However it make sense to put *.iml files to separate directories because they may differs for different projects.

Nikolay Chashnikov
Software Developer
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.