I’m trying to use aspectj-maven-plugin in a multi-module project and can’t understand where aspects have to be placed. I want to crosscut in-module and between-modules calls. Where .aj files should be located?
I’m trying to use aspectj-maven-plugin in a multi-module project and can’t understand where aspects
Share
This is what I did so far (structure of maven modules):
.ajfiles are located insrc/main/aspect. All sub-modules (exceptfoo-aspects) are usingaspectLibrariesoption of aspectj-maven-plugin, where they use aspects fromfoo-aspects.jar.At the same time every sub-module has its own aspects in
src/main/aspect. Works fine for me so far.