Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
AspectJMaven
You can use Maven [1] 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 :
- Using the aspectj-maven-plugin
- Using the AspectJ compiler in the maven-compiler-plugin
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 :
- Using Cobertura with AspectJ inside Maven
- Using AJDoc inside Maven