Module Dependencies Not Included After Restart
Hi,
I am using Intellij 7.0.3 build #7757 and I have little issue with module dependencies setting. I have 3 projects e.g. Project1, Project2 and Project3. Project1 depends on Project3. I added Project3 dependency thru Project Settings -> Dependencies -> Add -> Module Dependency. Every time I restart Intellij, this link is removed. 1 extra piece of information is Project1 uses Maven to manage all its JAR dependencies while Project3 is managed using Intellij. How do I make this link permanent?
I noticed that the link is written to the .iml file but after the "restart" this information is erased from the file.
Thanks
/lim/
Edited by: TH Lim on Apr 22, 2008 10:21 AM
Please sign in to leave a comment.
Hello TH,
Did you import your project from Maven or Eclipse?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I import it from Maven
User dependencies are not supported in maven modules. All the dependencies must be specified in the pom.xml file.
What is the reason for such project configuration?
I am working on Project 1 and uses Project 3 JAR. However, because there are bugs a in Project 3, I have to fix the bugs in Project 3 to complete the whole project. Compiling and packing Project 3 as JAR slows my development cycle tremendously and hence I decided to import Project 3 as IntelliJ module. When Project 3 is completed, it will be releases as a Maven project.
Edited by: TH Lim on Apr 22, 2008 6:05 PM
Not completely understand the part "Compiling and packing Project 3 as JAR slows my development cycle".
Basically, you do not need to pack a project to make idea import it. The only things you need to do are to create a pom.xml and maintain the specified layout. Maybe it is possible to covert your project3 into the maven project?
Project 3 and Project 1 are in Maven structure. How do I make Project 1 depends on Project 3? Do I use parent pom.xml to accomplish that? Thanks