eclipse aspectj nature : maven webapp project not compiling

437 Views Asked by At

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

1

There are 1 best solutions below

2
On

I have to add AspectJ Maven plugin to you pom.xml. Here is more info: http://mojo.codehaus.org/aspectj-maven-plugin/usage.html