my set up is this. I have project A
, and a test project depending on A
:
A <- A_t
I also have other projects depending on A
(and their tests):
A <- B <- B_t
To simplify some of the testing I introduce a new library helping test stuff based on A
:
A <- Atesthelper
So A_t
(and B_t
) will depend on this test helper, like this:
A <- A_t
^ |
| v
Atesthelper
However when I create Maven projects (pom.xml) it seems the usual thing is to bundle both the project and the test of that project in the same pom.xml. And I create a new pom.xml for the Atesthelper
So now it becomes:
(A <- A_t)
^ |
| v
Atesthelper
Which is a circular dependency. Is it possible in the pom.xml to somehow specify that Atesthelper
is only a dependency of the test build target, and not the A
module in itself?
So the build order should be: A, Atesthelper, A_t. I.e. A and A_t which are specified in the same pom, should not be build at the same time.
Thanks in advance.