So, I'm trying to use AspectJ's load time weaving in a Maven project built with IntelliJ. I've read that I need to add "-javaagent:/aspectjweaver.jar" as a VM argument. I'm just wondering how I would do that in IntelliJ, when aspectjweaver.jar is a dependency managed by Maven and loaded via my pom.xml?
Thanks.
Edit: Clarifying this on request.
The AspectJ usage is one example of what I'm actually asking. For load-time weaving with AspectJ, you need to add "-javaagent:/aspectjweaver.jar" as a VM argument.
However, I'm using Maven to provide my aspectjweaver.jar dependency. So how do I specify the path to it in that argument if Maven is managing it? Do I use my m2 directory? I'm ultimately going to use the Maven Assembly Plugin to put all dependencies in one jar, so in that case, do I need to figure out the path in the assembled jar?