How can I make changes to a library that exists as separate intellij project and is included as maven lib?
Project structure:
/IdeaProjects/mycommons/
/IdeaProjects/mycore/
mycore pom.xml:
<dependency>
<groupId>my.domain</groupId>
<artifactId>my-commons</artifactId>
<version>1.0.0</version>
</dependency>
Now, if I have the /mycore
project open, and go into a class from mycommons
, there are two issues:
1. I only the the decompiled .class
file. I would expect to see the real java file.
2. I cannot edit this file. If I want to change anything, I have to open the mycommons project in a different idea window.
3. If I run the mycore
after changes in mycommons
, those changes are not automatically picked up. I first have to run mvn install
on the mycommons
, then they are found in the core project.
Coming from eclipse
, none of these points have been an issue. Eclipse just recognized that included libraries are themselves eclipse project. So I could edit them all in one window, and run the changes without having to mvn install the libraries on each change explicit.
How can I achieve the same behaviour in Intellij IDEA
?