How to have 2 interdependant modules with their own config in IntelliJ?
I am an Eclipse user having metaphysical question before fully switching to IntelliJ. I have 2 Maven modules: "main" module which is my main app which uses "shared" module which is shared by misc applications I'd like to: work at the same time on both modules, meaning the changes in "shared" code would be automatically picked by my main app when I run it. Ideally I would not have to be forced to create & install in my .m2 folder the artifact "shared-SNAPSHOT.jar" for my main app to use the updated code. be able to work independantly on each one (own .idea containing each it's own launchconfiguration) while sharing in their own respective git repo their own configuration. It would mean: each can have it's own set of launchconfigurations (the folders in the .idea where are defined the launch configurations) each would have it's own code formatter setting => with this requirement, I want a new dev to be able to just git clone one project and work on it directly with minimal configuration. What I managed to do: If I open the "main" module with a .idea preconfigured inside it is ok: I directly have my formatter & my launch configs. BUT if I then try to open the "shared" module, IntelliJ proposes: either to open in a new window. The problem is then that I have to INSTALL the shared-SNAPSHOT.jar in my .m2 repo in order for the updated code to be seen by my main app. Is there any way for 2 IntelliJ windows to 'see' the code from one another ? or to keep the same window, BUT it adds a new config for the imported "shared" module inside "main"'s .idea folder. Which I don't want because I'd like "main" module to be unaware of "shared" (apart from the maven dependency). And I don't want to force any colleague working on "main" to be forced to also import "shared". Do you have a best practise for me or should I stay with Eclipse ;) ?
POM for 'log4j:log4j:pom:1.2.15:compile' is invalid
Adding a set of dependencies in maven
Is it possible to get Maven dependencies in a property at run-time?
Correct way to maintain a company-wide POM
How to do websphere 7 deployment automation using maven?
Deploy war in multiple module project on maven
Bad version number in .class file
Getting ReportNG to generate its output in Maven's “site”?
Dbdeploy maven plugin not finding changelog table
java.lang.NullPointerException executing accelo with maven
Best way to organize and copy resources in this Maven PHP project
How to set directoryMode Permissions for folder in assembly descriptor?
dbunit maven plugin ordered set to true seemingly ignores tables
Maven war-inplace: clean classes and lib folder
Using custom reporters with the maven surefire plugin