IntelliJ and Maven modules
Hi all,
I have a Maven project for which we create new modules. These modules are added to the Parent Pom, but they are not reflected in IntelliJ (not even on a manual synchronize). Adding new modules is not possible using the Pom.xml ("Import from external model is available from New Project Wizard only", according to IntelliJ).
How do I add the new modules without creating a whole new project (I don't want to lose all my project settings!)
Erik
PS: I also created a Jira issue for it: http://www.jetbrains.net/jira/browse/IDEA-16923
请先登录再写评论。
Hello Erik,
You can use New Project wizard -> Import from external model -> and check
Import to current project checkbox
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Hi Anna. Thanks for the answer, but I can't help to think that it's pretty strange!!
So when I want to add a new module, I have to go to 'create new project', which will add the module (even the screens say see), but adding a module from the 'add new module' (in the project settings) screen is not possible.
Doesn't this sound a bit mind bogling?
Erik,
I absolutely agree with you. It would be reworked.
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Okay, great! Thanks for the wonderful support!
Erik
Hi!
I have not succeeded importing my pom.xml file at all. I get no iml-file, only a project file with no modules.
What are the requirements for IDEA to ba able to swallow a pom-file? My pom.xml is enclosed for reference.
I have reported this as a support-issue also. We are a group using a mix of Eclipse and IDEA. Our common project description is Maven pom-files. Now we have to create the IDEA-projects manually, adding the dependencies to m2 libraries takes time.
Have tried the maven plugin (mvn idea:idea) which works partly, but IDEA does not handle multiple source roots after that.
Any hints are appreciated!
Regards,
Robert
Attachment(s):
pom.xml