You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rajas kumar <pr...@yahoo.com> on 2004/12/02 06:25:18 UTC

how to solve the cyclic depedency.

Hai,
 
  I am getting a problem with cyclic dependency. How can i solve this problem.
 
Here is the out put.
 

BUILD FAILED
File...... file:/E:/mycvs/cfm/pcm/dev/src/com/cfm/pcm/maven.xml
Element... m:reactor
Line...... 234
Column.... 40
A cycle has been detected from the initial goal [services:services]
Total time: 5 seconds
Finished at: Thu Dec 02 10:51:30 GMT+05:30 2004

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: how to solve the cyclic depedency.

Posted by Brill Pappin <br...@stabilia.com>.
Well, the answer to you question is really an RTFM one but since I don't 
have one for you to read (maybe someone else can point out some good 
resources) and I don't have time to teach simple developer lingo, try 
this instead:
http://en.wikipedia.org/wiki/Agile_software_development
Look up the section "Refactoring".

So what he said was...
if :
MyLib -> depends -> YourLib -> depends -> MyLib etc.
then:
take out the dependencies and put them in another lib:
MyLib -> depends -> OurLib
YourLib -> depends -> OurLib

The meaning of "refactor" in this context can be found at the link above.

- Brill Pappin


rajas kumar wrote:

>sorry to say that i can,t under stand your meaning plz give me some more details on this issue .Is there any doucumetation specific to solve this problem.I am waiting for your reply.
>
>dan tran <da...@gmail.com> wrote:Let say A depends on B, B depends on C, and C depends and A
>
>Refactor all denpendent classes to another module D
>
>so that
>
>A depends on D
>B depends on D 
>C depends on D
>
>
>or something similar.
>
>-D
>
>
>
>
>On Wed, 1 Dec 2004 21:25:18 -0800 (PST), rajas kumar
>
>wrote:
>  
>
>>Hai,
>>
>>I am getting a problem with cyclic dependency. How can i solve this problem.
>>
>>Here is the out put.
>>
>>BUILD FAILED
>>File...... file:/E:/mycvs/cfm/pcm/dev/src/com/cfm/pcm/maven.xml
>>Element... m:reactor
>>Line...... 234
>>Column.... 40
>>A cycle has been detected from the initial goal [services:services]
>>Total time: 5 seconds
>>Finished at: Thu Dec 02 10:51:30 GMT+05:30 2004
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Tired of spam? Yahoo! Mail has the best spam protection around
>>http://mail.yahoo.com
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>		
>---------------------------------
>Do you Yahoo!?
> All your favorites on one personal page – Try My Yahoo!
>  
>

-- 
"Any sufficiently advanced magic is indistinguishable from technology."
                                                  - Arthur C Anticlarke


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: how to solve the cyclic depedency.

Posted by rajas kumar <pr...@yahoo.com>.
sorry to say that i can,t under stand your meaning plz give me some more details on this issue .Is there any doucumetation specific to solve this problem.I am waiting for your reply.

dan tran <da...@gmail.com> wrote:Let say A depends on B, B depends on C, and C depends and A

Refactor all denpendent classes to another module D

so that

A depends on D
B depends on D 
C depends on D


or something similar.

-D




On Wed, 1 Dec 2004 21:25:18 -0800 (PST), rajas kumar

wrote:
> Hai,
> 
> I am getting a problem with cyclic dependency. How can i solve this problem.
> 
> Here is the out put.
> 
> BUILD FAILED
> File...... file:/E:/mycvs/cfm/pcm/dev/src/com/cfm/pcm/maven.xml
> Element... m:reactor
> Line...... 234
> Column.... 40
> A cycle has been detected from the initial goal [services:services]
> Total time: 5 seconds
> Finished at: Thu Dec 02 10:51:30 GMT+05:30 2004
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



		
---------------------------------
Do you Yahoo!?
 All your favorites on one personal page � Try My Yahoo!

Re: how to solve the cyclic depedency.

Posted by dan tran <da...@gmail.com>.
Let say A depends on B, B depends on C, and C depends and A

Refactor all denpendent classes to another module D

so that

A depends on D
B depends on D 
C depends on D


or something similar.

-D




On Wed, 1 Dec 2004 21:25:18 -0800 (PST), rajas kumar
<pr...@yahoo.com> wrote:
> Hai,
> 
>  I am getting a problem with cyclic dependency. How can i solve this problem.
> 
> Here is the out put.
> 
> BUILD FAILED
> File...... file:/E:/mycvs/cfm/pcm/dev/src/com/cfm/pcm/maven.xml
> Element... m:reactor
> Line...... 234
> Column.... 40
> A cycle has been detected from the initial goal [services:services]
> Total time: 5 seconds
> Finished at: Thu Dec 02 10:51:30 GMT+05:30 2004
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org