You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running the Modularity Validation Test I am getting the following exception:
`
org.springframework.modulith.core.Violations: - Invalid sub-module reference from module 'module3.submodule32' to module 'module3.submodule31' (via c.e.m.m.s.internal.Module32Service -> c.e.m.m.s.Module31Interface)!
at org.springframework.modulith.core.Violations.and(Violations.java:119)
at java.base/java.util.stream.ReduceOps$1ReducingSink.accept(ReduceOps.java:80)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1787)
at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:657)
at org.springframework.modulith.core.ApplicationModules.detectViolations(ApplicationModules.java:475)
at org.springframework.modulith.core.ApplicationModules.verify(ApplicationModules.java:440)
at com.example.modulith.ModularityTest.verifiesModularStructure(ModularityTest.java:12)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
`
I was expecting the modularity test to pass. However I am not sure if I am doing anything wrong.
Thank you!
The text was updated successfully, but these errors were encountered:
odrotbohm
changed the title
Invalid sub-module reference from module 'module3.submodule32' to module 'module3.submodule31'
Invalid sub-module reference from module module3.submodule32 to module module3.submodule31Sep 24, 2024
I was testing a bit spring modulith 1.3.0-M2 and created a project with the following structure
submodule32 is using Module31Interface like in the example below:
https://github.com/aribeth007/modulith-example/blob/main/src/main/java/com/example/modulith/module3/submodule32/internal/Module32Service.java#L12
submodule32 also has the allowed dependencies specified: https://github.com/aribeth007/modulith-example/blob/main/src/main/java/com/example/modulith/module3/submodule32/package-info.java
While running the Modularity Validation Test I am getting the following exception:
`
org.springframework.modulith.core.Violations: - Invalid sub-module reference from module 'module3.submodule32' to module 'module3.submodule31' (via c.e.m.m.s.internal.Module32Service -> c.e.m.m.s.Module31Interface)!
`
I was expecting the modularity test to pass. However I am not sure if I am doing anything wrong.
Thank you!
The text was updated successfully, but these errors were encountered: