detected reference cycle, but there is no cycle conflict

2008-03-04 Thread simim

maven build aborted with the following message:
Diagnosis: The projects in the reactor contain a cyclic reference ...
and yes, there is a cycle in the specified dependencies, like:

A - B - A

but A needs B only for the compilation (because a class from A
extends a class from B) and B needs A only for the runtime
(because B calls an object of the extended class per reflection).
i specified the dependency in B as scoperuntime/scope
and in A, B is referenced per default with the option
scopecompile/scope.

so, there is no cycle conflict.

any ideas?
thanks, simim
-- 
View this message in context: 
http://www.nabble.com/detected-reference-cycle%2C-but-there-is-no-cycle-conflict-tp15825973s177p15825973.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread simim


Jan Torben Heuer-3 wrote:
 
 Try to completely eliminate the cyclic reference by using an interface
 in
 A, so that you don't need to specifiy a dependency from B to A
 
 
 Jan
 

thanks, but i think thats not a smooth solution in my case. at compilation
time there
is definitively not cycle, because B doesn`t need A in any way, at
compilation.
but maven abort the compilation with the message above.

so, i see no problem at the design. i cannot understand why maven detects
there
an psoudo-cycle. maybe the relevant scope-option are not considered.

maybe there is a possibility to set a cycle-order in maven? with that i
could set
reference A - B before reference B - A. maybe i can realize an order
with a common parent pom-file for A and B? perhaps that the wrong way?

other ideas? thanks!

-- 
View this message in context: 
http://www.nabble.com/detected-reference-cycle%2C-but-there-is-no-cycle-conflict-tp15825973s177p15826737.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]