Mojohaus AspectJ Maven Plugin

This is the aspectj-maven-plugin.

License: MIT Maven Central GitHub CI

Overview

This plugin weaves AspectJ aspects into your classes using the AspectJ compiler ajc. Typically, aspects are used in one of two ways within your Maven reactors:

  • As part of a Single Project, implying aspects and code are defined within the same Maven project. This is the simplest approach to start out with; feel free to examine the "Examples: Single-project AspectJ use" to better understand single-project use.

  • As part of a Multi-module Maven Reactor where one/some project(s) contains aspects and other projects within the Maven reactor contain code using the aspects ("woven by the aspects"). This is a more complex and powerful approach, best suited when several Maven projects should be woven by a common set of aspects. The "Examples: Multi-module AspectJ use" contains a basic walk-through of this approach.

Contributing

The first step is to create an appropriate issue. Describe the problem/idea you have and create an appropriate pull request.

Test you changes locally using

mvn clean verify -Pdocs,run-its

If you need to contact a committer, please consider getting active on the mailing lists.

Releasing

  • Make sure gpg-agent is running.
  • Make sure all tests pass mvn clean verify -Prun-its
  • Execute mvn -B release:prepare release:perform

For publishing the site do the following:

cd target/checkout
mvn verify site site:stage scm-publish:publish-scm