Hello, I'd like to comment on this - maven is able to deal with cyclic dependencies, but You have to do this cunningly. It's not a good pattern, but it happens, and I would be willing to change the statement that 'maven is not able to deal with cyclic'. Here is how it goes: project A - you create it, install it in the repository just like that project B - create, add dependency to A, install. project A - modify dependencies and add dependency to B
Here You are, You have a cyclic dependency with maven support. Of course You have to deal manually with making changes in the projects. BTW - where is written that 'maven does not support them' ? :) franz see wrote: > > hehehe :-) my bad :-) > > > Andrew Williams-5 wrote: >> >> It is a rhetorical question - meaning that it is impossible to build >> such a system, thus Maven does not support it :) >> >> A >> >> franz see wrote: >>> Good day to you, Andy, >>> >>> I'm not sure if any are build at all, that's because your whole build >>> will >>> fail. >>> >>> Cheers, >>> Franz >>> >>> >>> Andrew Williams-5 wrote: >>> >>>> If two projects depend on each other which gets built first? >>>> In this situation either one must be optional or they must be in the >>>> same artifact. >>>> >>>> Andy >>>> >>>> franz see wrote: >>>> >>>>> Good day to you Sha Jiang, >>>>> >>>>> Maven can not handle cyclic dependencies. It will give you a cyclic >>>>> dependency error >>>>> >>>>> Cheers, >>>>> Franz >>>>> >>>>> >>>>> jiangshachina wrote: >>>>> >>>>> >>>>>> Hello guys, >>>>>> I suddenly have a virtual case just in mind. >>>>>> There are two projects, A and B, each of them depends on the other >>>>>> one. >>>>>> How do Maven to deal with the dependency cycle? >>>>>> >>>>>> a cup of Java, cheers! >>>>>> Sha Jiang >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>>> >>>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > -- View this message in context: http://www.nabble.com/Dependency-cycle--tp7274021p23522952.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]
