brsanthu / aspectj-test

Sample Maven repository which shows how to configure aspectj in multi module projects (from https://stackoverflow.com/questions/12423965/maven-aspectj-all-steps-to-configure-it)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Sample project shows how to configure Aspectj in multi-module java projects from this stackoverflow answer. Java and aspectj versions have been changed from the answer but otherwise credit goes to the author.

To run, follow these commands.

mvn clean install
cd ProjectB
mvn exec:java

You should see an output like below

aspect before
Enters on method: void com.stackoverflow.App.hello(String).
With argument of type class java.lang.String and value world.
Exits method: void com.stackoverflow.App.hello(String).
aspect after

About

Sample Maven repository which shows how to configure aspectj in multi module projects (from https://stackoverflow.com/questions/12423965/maven-aspectj-all-steps-to-configure-it)


Languages

Language:Java 56.9%Language:AspectJ 43.1%