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
Please sign in to leave a comment.
IntelliJ IDEA has no support for that yet: https://youtrack.jetbrains.com/issue/IDEABKL-7128.
Thanks for clarifying Serge
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"