【发布时间】:2018-07-07 10:37:27
【问题描述】:
我使用 VSCode 作为编辑器,我需要对我的模型类进行自动运行检测。
要手动运行它,我在 shell mvn org.javalite:activejdbc-instrumentation:2.0:instrument
【问题讨论】:
标签: java maven activejdbc
我使用 VSCode 作为编辑器,我需要对我的模型类进行自动运行检测。
要手动运行它,我在 shell mvn org.javalite:activejdbc-instrumentation:2.0:instrument
【问题讨论】:
标签: java maven activejdbc
我使用以下 VSCode 扩展在 Java 上进行开发:https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
解决了:
1.创建.vscode/tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run instrumentation",
"type": "shell",
"command": "mvn org.javalite:activejdbc-instrumentation:2.0:instrument"
}
]
}
.vscode/launch.json 中添加"preLaunchTask": "Run instrumentation"
【讨论】:
mvn compile自动运行吗