Hello.
Say, I have two projects: A and B. I always want them to be compiled and
deployed in one time and I decided to use multi-module project:
In the upper directory I've created pom.xml with the following content:
<modules>
<module>A</module>
<module>B</module>
</modules>
And it works fine.
But module B depends on module A.
When I do some changes in A and run "mvn compile" on the top level, I want
both modules to be recompiled and module "B" should be compiled with newly
compiled "A".
How can I do it?
If I simply add dependency in module "B"'s pom.xml -- it will use "A" from
repository, and if I did not do "mvn deploy" there would not be one!
Of course I can add "system" dependency to module "B" and hardcode path to
module "A" (like "../A/target/classes") but that's an ugly hack.
What is the best way to do that?
Thanks.
====================
WBR, Ilya Kazakevich
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]