Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

AspectJMaven

Revision as of 10:10, 29 December 2009 by Simoneg.apache.org (Talk | contribs) (New page: You can use Maven [http://maven.apache.org/] 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 ver...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 :

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
  • Force the maven-compiler-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

Back to the top