I have two separate projects. One (Project B) needs to depend on the other (Project A).
Project A
|
- module A1
- module A2
- module A3
- module A4
Project B
|
- module B1
- module B2
- module A1 <---- from Project A
- module A2 <---- from Project A
Right now every time I make a change to Project A, I need to
- create jars and push them to local maven repo. (Since Project A is a huge project, this takes a while)
- let Project B update the dependencies to Project A
This is tedious in a development mode.
I am wondering if there a way to let Maven in Project B directly references the compiled Java classes, so that I can at lease skip Step 1 in a development mode?
PS: I have looked at the answer from here, but that isn't what I want.
EDIT: Project A is a super legacy project, which doesn't have Maven set up properly and still rely on Eclipse to manage all the dependencies, while Project B has Maven set up properly and can build/compile/package completely without any IDE's help.
Due to some business requirements, we don't want to reconfigure Maven for Project A at the moment. Therefore, having a new parent project for both Project A and Project B in order for maven to manage dependencies is a bit difficult.
Thoughts?
Thank you in advance.