Replicating AspectJ maven weaveDependencies in IntelliJ build

Answered

Hi -

I'm trying to figure out what in IntelliJ would replicate maven's "weaveDependencies" section in our pom file.  We want to do post compile time weaving with AspectJ and I am able to check that checkbox in IntelliJ, but how do I tell it what project dependencies I want to weave against for post compile time weaving?  This is accomplished in our pom file using the "weaveDependencies" list.  Thanks for any pointers!

Jason

0
3 comments
Avatar
Permanently deleted user

Thanks for clarifying Serge

0

You can always have maven do compile-time-weaving and IntelliJ do load-time-weaving.

To do that you just need to pass aspectweaver.jar as a java agent.

Go to Run -> Edit Configurations -> VM options -> "-ea -javaagent:path-to-lib/aspectjweaver.jar"

1

Please sign in to leave a comment.