I read a lot of almost similar question, but I have different problem then others.
I have 3 projects:
- Project_A
- Project_B
- Project_Shared
Solution 1: Local installed jar
I want to develop Project_A independently from Project_B. But both use Project_Share, which I also want to develop - this is why I can't manually make one jar from Project_Share and install it in local Maven repository.
Solution 2: Two different parent pom
I also really don't want to change Project_A and Project_B structure - through adding for them two different maven parent pom. As far as I understand - I can add parent pom for two module: Project_A and Project_Share and then I could run Project_A using Parent project. And I can't run Project_A directly from it (this will complain about Project_Shared jar missing - am I right?
Ideal solution:
Configure maven for Project_A in such way that after I run Project_A, it will look to directory of Project_Shared, compile it, and obtain its jar, then build Project_A with this jar, and run Project_A.
Question:
Is it possible to obtain ideal solution? Or is there any better solution? Or maybe I misunderstand something?
Thanks for Your help!