Hi!
Add a dependency on the aspect runtime
<dependency>
<artifactId>aspectjrt</artifactId>
<groupId>aspectj</groupId>
<version>1.5.0</version>
</dependency>
and then a build configuration
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal> <!-- use this goal to weave all
your main classes -->
<goal>test-compile</goal> <!-- use this goal to weave all
your test classes -->
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
I hope this helps. I am a Maven newbie myself, but this works for me.
Note: source/target sets AspectJ to compile for JDK 1.5.
Regards,
Jimisola
--
View this message in context:
http://www.nabble.com/I%27m-looking-for-a-simple-aspectJ-example-with-mvn-t1765989.html#a4808856
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]