You can use Maven  to build projects using AspectJ.
AspectJ support is available since Maven 1, but we will focus on Maven 2 since it is the cyrrently stable version.
There are two ways to compile your AspectJ project using Maven :
Currently no AspectJ developer is working on Maven support, which is instead developed in Apache Maven project and in Codehaus Mojo project. This unfortunately mean that Maven support is not always updated with new versions of AspectJ.
If you need features which are not yet available in Maven, there are a few workarounds :
- Force the aspectj-maven-plugin to use a different version of AspectJ
- Call AspectJ via ant tasks from inside maven build (since ant tasks are developed by AspectJ developers, they are usually updated)
Also, when using Maven, you'll probably want to integrate other technologies :