Hi Kumar, thanks for writing to me. I'd be happy to help you out.
One of the things that Architecture Rules can do for you is find cyclic dependencies. In your case we've found 13 cycles. Cyclic dependencies are generally considered to be bad. You can read more about them on our wiki at
http://wiki.architecturerules.org/index.php?title=CyclicDependencies.
To ignore cyclic dependencies while running the test, you can change
<cyclicalDependency test="true"></cyclicalDependency>
to
<cyclicalDependency test="false"></cyclicalDependency>
Let me know if you have any other questions.
~ Mike Nereson
On Thu, Mar 5, 2009 at 1:42 AM, kumar
<kumar...@gmail.com> wrote:
<architecture>
<configuration>
<sources no-packages="exception">
<!-- <source not-found="ignore">
core\target\classes
</source>
<source not-found="ignore">
web\target\classes
</source>
<source not-found="exception">
ws\target\classes
</source> -->
<source not-found="exception">
C:\CruiseControl\projects\Work\build\classes
</source>
</sources>
<cyclicalDependency test="true"></cyclicalDependency>
</configuration>
<rules>
<!-- <rule id="web-layer-with-wildcards">
<comment>web and dao mix like oil and water</comment>
<packages>
<package>com.company.app.web</package>
<package>com.company.app.web..*</package>
</packages>
<violations>
<violation>com.company.app.dao</violation>
<violation>com.company.app.dao..*</violation>
</violations>
</rule> -->
<rule id="payment">
<comment>
integration layer is independent
</comment>
<packages>
<package>dk.pbs.bs.bsp.prodpref.*.*</package>
<package>dk.pbs.bs.eik.prodpref.*.*</package>
<package>dk.pbs.bs.fi.prodpref.*.*</package>
<package>dk.pbs.bs.ns.prodpref.*.*</package>
</packages>
<violations>
<violation>dk.pbs.bs.bsp.clientpref.*.*</violation>
<violation>dk.pbs.bs.bsp.mandate.*.*</violation>
<violation>dk.pbs.bs.bsp.payment.*.*</violation>
<violation>dk.pbs.bs.bsp.common.*.*</violation>
<violation>dk.pbs.bs.eik.clientpref.*.*</violation>
<violation>dk.pbs.bs.eik.payment.*.*</violation>
<violation>dk.pbs.bs.eik.common.*.*</violation>
<violation>dk.pbs.bs.fi.payment.*.*</violation>
<violation>dk.pbs.bs.fi.common.*.*</violation>
</violations>
</rule>
</rules>
</architecture>
while running this i am getting below mentioned errors:
BUILD FAILED
C:\CruiseControl\projects\Work\build.xml:132: The following error
occurred while
executing this line:
C:\CruiseControl\projects\Work\buildscript\arc-build.xml:64:
com.seventytwomiles
.architecturerules.exceptions.CyclicRedundancyException: 13 cyclic
dependencies
found:
-- dk.pbs.bs.shared.domain.dao
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.shared.domain.daofactory
| dk.pbs.bs.shared.domain.daofactory.JPADAOFactory:
referenced cla
sses not found
| dk.pbs.bs.shared.domain.daofactory.DAOFactoriesCache:
referenced
classes not found
| dk.pbs.bs.shared.domain.daofactory.DAOFactory:
referenced classe
s not found
| dk.pbs.bs.shared.domain.daofactory.JDBCDAOFactory:
referenced cl
asses not found
|
-- dk.pbs.bs.custreg.common.to
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.custreg.prccredprefmnt.to
| dk.pbs.bs.custreg.prccredprefmnt.to.CredTO: referenced
classes n
ot found
| dk.pbs.bs.custreg.prccredprefmnt.to.CredCgAcctTO:
referenced cla
sses not found
|
-- dk.pbs.bs.sysconfig.common
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.sysconfig.prcsystemparammnt.ejb
|
dk.pbs.bs.sysconfig.prcsystemparammnt.ejb.PrcCmnSystemParameters
MntBean: referenced classes not found
|
-- dk.pbs.bs.custreg.prccredprefmnt.to
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.custreg.common.to
| dk.pbs.bs.custreg.common.to.CredCgRegTO: referenced
classes not
found
| dk.pbs.bs.custreg.common.to.CredRegTO: referenced
classes not fo
und
|
-- dk.pbs.bs.shared.domain.daofactory
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.shared.domain.dao
| dk.pbs.bs.shared.domain.dao.BaseReadDAO: referenced
classes not
found
| dk.pbs.bs.shared.domain.dao.BaseBulkRecordDAO:
referenced classe
s not found
| dk.pbs.bs.shared.domain.dao.BaseDAO: referenced
classes not foun
d
| dk.pbs.bs.shared.domain.dao.BaseBulkDAO: referenced
classes not
found
|
-- dk.pbs.bs.common.to.datastructure
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.common.to
| dk.pbs.bs.common.to.BatchResponseTO: referenced
classes not foun
d
| dk.pbs.bs.common.to.GroupInfoTO: referenced classes
not found
|
-- dk.pbs.bs.sysconfig.prcsystemparammnt.ejb
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.sysconfig.common
| dk.pbs.bs.sysconfig.common.ParamValuesCache:
referenced classes
not found
| dk.pbs.bs.sysconfig.common.MessageCache: referenced
classes not
found
| dk.pbs.bs.sysconfig.common.LOVValuesCache: referenced
classes no
t found
|
-- dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.fi.prodpref.prcfiprodprefmnt.ejb
|
dk.pbs.bs.fi.prodpref.prcfiprodprefmnt.ejb.PrcFIProdPrefMntBean:
referenced classes not found
| |
| |-- dk.pbs.bs.eik.prodpref.prceikprodprefmnt.ejb
|
dk.pbs.bs.eik.prodpref.prceikprodprefmnt.ejb.PrcEIKProdPrefMntBe
an: referenced classes not found
| |
| |-- dk.pbs.bs.ns.prodpref.prcnsprodprefmnt.ejb
|
dk.pbs.bs.ns.prodpref.prcnsprodprefmnt.ejb.PrcNSProdPrefMntBean:
referenced classes not found
|
-- dk.pbs.bs.shared.helper
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.common.to
| dk.pbs.bs.common.to.CustomerTypeCode: referenced
classes not fou
nd
| dk.pbs.bs.common.to.CustomerRole: referenced classes
not found
| dk.pbs.bs.common.to.ParamKeys: referenced classes not
found
| dk.pbs.bs.common.to.Attribute: referenced classes not
found
| dk.pbs.bs.common.to.InvoiceMaterialNo: referenced
classes not fo
und
| dk.pbs.bs.common.to.ParamType: referenced classes not
found
|
-- dk.pbs.bs.fi.prodpref.prcfiprodprefmnt.ejb
| | (depends on one or more of)
| |
| |--
dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb
|
dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb.PrcCros
sProdPrefMntBean: referenced classes not found
|
-- dk.pbs.bs.eik.prodpref.prceikprodprefmnt.ejb
| | (depends on one or more of)
| |
| |--
dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb
|
dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb.PrcCros
sProdPrefMntBean: referenced classes not found
|
-- dk.pbs.bs.common.to
| | (depends on one or more of)
| |
| |-- dk.pbs.bs.shared.helper
| dk.pbs.bs.shared.helper.BankRunDateUtil: referenced
classes not
found
| dk.pbs.bs.shared.helper.BSRunDateUtil: referenced
classes not fo
und
| |
| |-- dk.pbs.bs.common.to.datastructure
| dk.pbs.bs.common.to.datastructure.CustomerTO:
referenced classes
not found
| dk.pbs.bs.common.to.datastructure.BatchRequestTO:
referenced cla
sses not found
| dk.pbs.bs.common.to.datastructure.LOVInfoTO:
referenced classes
not found
| dk.pbs.bs.common.to.datastructure.ErrorResponseTO:
referenced cl
asses not found
| dk.pbs.bs.common.to.datastructure.AmountTO: referenced
classes n
ot found
|
dk.pbs.bs.common.to.datastructure.TransactionTypeDetailTO: refer
enced classes not found
| dk.pbs.bs.common.to.datastructure.BalanceCountTO:
referenced cla
sses not found
| dk.pbs.bs.common.to.datastructure.InvoiceCountTO:
referenced cla
sses not found
| dk.pbs.bs.common.to.datastructure.CommissionCountTO:
referenced
classes not found
|
-- dk.pbs.bs.ns.prodpref.prcnsprodprefmnt.ejb
| | (depends on one or more of)
| |
| |--
dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb
|
dk.pbs.bs.custreg.prcprodprefmnt.prccrossprodprefmnt.ejb.PrcCros
sProdPrefMntBean: referenced classes not found
|
Please suggest me how to proceed further for getting the output
Thanks & Regards,
Kumar