-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Error: Failures:
Error: Architecture Violation [Priority: HIGH] - Rule 'slices matching '..(*).(common|dataaccess|service|batch|logic|client)..' should be free of cycles, because cyclic dependencies should be prevented.' was violated (1 times):
Cycle detected: violation slice ->
violation slice
1. Dependencies of violation slice
- Class <com.devonfw.sample.archunit.violation.common.ViolationRepository> has generic interface <org.springframework.data.jpa.repository.JpaRepository<com.devonfw.sample.archunit.violation.dataaccess.ViolationEntity, java.lang.Long>> with type argument depending on <com.devonfw.sample.archunit.violation.dataaccess.ViolationEntity> in (ViolationRepository.java:0)
- Class <com.devonfw.sample.archunit.violation.common.WrongNameRepository> has generic interface <org.springframework.data.jpa.repository.JpaRepository<com.devonfw.sample.archunit.violation.dataaccess.ViolationEntity, java.lang.Long>> with type argument depending on <com.devonfw.sample.archunit.violation.dataaccess.ViolationEntity> in (WrongNameRepository.java:0)
A component A may always depend on itself (A -> A). Therefore the cyclic dependency check is incorrect and has to be fixed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working