I have hierarchy of 15 projects (-ear, -web, javaFX applications, common libraries), so it is like an ordinary maven tree:
PROJECT-ROOT
- PROJECT1
-- PROJECT1-EAR
-- PROJECT1-WEB
- PROJECT2
-- PROJECT2-EAR
-- PROJECT2-WEB
- PROJECT3-COMMON-LIB
- PROJECT4-JAVAFX
Every project has its own parent except for PROJECT-ROOT
of course. Thing is, for compiling just PROJECT4-JAVAFX
I need to run compilation on the root project, which takes some extra time and gets already annoying. If I run compilation (or packaging whatever) in the sub-project PROJECT4-JAVAFX
it cannot just find the PROJECT3-COMMON-LIB
as it is in dependencies list and fails with ERROR.
How I can solve this? I need during the development to be able compile just part of the maven project tree. My IDE is IntelliJ but obviously is not important, but hot-swap should also work.
There is possibility maybe to mvn install
it, but come on, I am developing still, I do not want to touch my local repository yet.
UPDATE: So once more to clarify. What I am trying to achieve:
To be able to compile just dependent and changed modules for one particular module. I do not want to track these changes, I want to leave it for build tool. The last thing is to clean/compile the whole project.
However I found in IntelliJ - Resolve workspace conflicts
. It just compiles the dependent modules (it's Maven configuration).