Transitive Test Dependencies and Maven Dependency Cycles -



Transitive Test Dependencies and Maven Dependency Cycles -

i have 3 modules a, b, c. has compile/default dependency on b, b has test dependency on c , c has compile/default dependency on a.

maven detects cycle, b's tests (not non-test code) dependent on c , neither c nor dependent on b's tests.

is there reason why maven still detects cycle? there way resolve it?

you can break 1 of projects in api , implementation.

you create b-api project. link against b-api compilation. can add together b runtime dependency if required. should out of loop.

the b-api project should provide interfaces implemented b. code against interfaces , wire against implementation @ runtime.

maven maven-dependency-plugin

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -