如何指定像-javaagent这样的 vm 选项来启动码头,或者它只能通过 MAVEN_OPTS 变量使用?我需要它来启用方面的加载时间编织。这个插件好像不行。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>maven</executable>
<arguments>
<argument>-javaagent:path\to\org\aspectj\aspectjweaver\1.6.10\aspectjweaver-1.6.10.jar</argument>
</arguments>
</configuration>
</plugin>
也许可以通过jetty-plugin来完成,但是它的标签systemProperties说
不会覆盖已在命令行或 JVM 上设置的系统属性
这是什么意思?