I want to start using aspectj for my webapp project with maven in eclipse. My first step was adding the AspectJ nature. Before the I added the aspect the project was compiling fine, and I saw *.class files in the target/classed directory.
After adding the AspectJ nature the following marker appeared:
Classpath Dependency Validator Message: Classpath entry org.eclipse.ajdt.core.ASPECTJRT_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.
In the target/classes there were also no *.class files.
Can anyone point me in the right direction how to resolve this issue ?
Best regards, Marco
I have to add AspectJ Maven plugin to you pom.xml . Here is more info: http://mojo.codehaus.org/aspectj-maven-plugin/usage.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.