How it is available to specify vm option like -javaagent to start jetty or it is available only thru MAVEN_OPTS variable? I need it to enable load-time-weaving of aspects. This plugin seems like doesn't work.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
开发者_如何学Go <configuration>
<executable>maven</executable>
<arguments>
<argument>-javaagent:path\to\org\aspectj\aspectjweaver\1.6.10\aspectjweaver-1.6.10.jar</argument>
</arguments>
</configuration>
</plugin>
May be it can be done by jetty-plugin, but its tag systemProperties said that
will NOT override System properties that have been set on the command line or by the JVM
What does it mean?
you can try add something like this -javaagent:%PATH_TO_AGENT%\spring-agent-2.5.6.jar to the JAVA_OPTS
精彩评论