我尝试按以下步骤配置任务运行器:
我的目标是执行以下命令:
的 MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000" mvn org.apache.tomcat.maven:tomcat7-maven-plugin:run -Pxconfig-java
所以结构是 MAVEN_OPTS {mavenOpts} mvn {taskName} {args}
我的问题是MAVEN_OPTS
声明(命令前的任何内容)
这是我到目前为止所得到的
{
"version": "0.1.0",
"isShellCommand": true,
"showOutput": "always",
"args": [
"MAVEN_OPTS",
"-Xdebug",
"-Xnoagent",
"-Djava.compiler=NONE",
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
],
"tasks": [
{
"command": "mvn",
"taskName": "org.apache.tomcat.maven:tomcat7-maven-plugin:run",
"args": [
"org.apache.tomcat.maven:tomcat7-maven-plugin:run",
"-P",
"xconfig-java"
],
"suppressTaskName": false
}
]
}
注意我已经尝试了应该执行此操作的supressTaskName
选项:DOCU