I'm a newbie to AspectJ and Maven.
I'm trying to use aspectj-maven-plugin to build my project, but it does not work. I just followed the steps in AspectJ In Action 2nd Edition.
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Here's the error message I get on the <execution>
line:
Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.4:compile (execution: default, phase: compile)
I'm using JDK6 and Apache Maven 3.0.4.