Replicating AspectJ maven weaveDependencies in IntelliJ build
已回答
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
请先登录再写评论。
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"