VSCode远程开发JAVA多模块项目

VSCode远程开发JAVA多模块项目

DONG HAO
2023-02-21 / 0 评论 / 497 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年03月02日,已超过581天没有更新,若内容或图片失效,请留言反馈。

创建配置文件

.vscode/settings.json

{
    "java.jdt.ls.java.home": "/usr/lib/jdk-17.0.6-10",
    "java.compile.nullAnalysis.mode": "automatic",
    "java.configuration.runtimes":[
        {
            "name": "JavaSE-1.8",
            "path": "/usr/lib/jdk1.8.0_281",
          },
          {
            "name": "JavaSE-11",
            "path": "/usr/lib/jdk-11.0.11",
          },
          {
            "name": "JavaSE-17",
            "path": "/usr/lib/jdk-17.0.6-10",
            "default": true
          }
    ],
    "java.configuration.updateBuildConfiguration": "automatic",
    "maven.terminal.customEnv": [
        {
           "environmentVariable": "JAVA_HOME",
           "value": "/usr/lib/jdk1.8.0_281",
        },{
           "environmentVariable": "MAVEN_OPTS",
           "value": "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
        }
      ],
      "maven.executable.path": "/usr/local/apache-maven-3.8.1/bin/mvn",
      "maven.view": "hierarchical",
      "maven.executable.options": "-s /home/hadong/.m2/patsnap-settings.xml",
      "java.configuration.maven.userSettings": "/home/hadong/.m2/patsnap-settings.xml",
      "maven.settingsFile": "/home/hadong/.m2/patsnap-settings.xml",
      "java.debug.settings.onBuildFailureProceed": true,
      "java.import.gradle.java.home": "/usr/lib/jdk1.8.0_281",
      "java.import.gradle.wrapper.enabled": false,
      "java.import.gradle.version": "",
      "java.import.gradle.home": "/home/hadong/.sdkman/candidates/gradle/current/", 
      "gradle.autoDetect": "on",
      "gradle.javaDebug.cleanOutput": true,
      "gradle.debug": true
}

.vscode/launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "java",
            "name": "Launch APP",
            "request": "launch",
            "mainClass": "com.patsnap.app.Application",
            "env": {
                "spring.profiles.active": "secret",
                "configs.com.patsnap.workspace.region": "DH",
                "configs.com.patsnap.dynamodb.table.track.ignore.regex.list": "workspace_folder_v2,workspace_task"
            },
            "cwd": "${workspaceFolder}",
            "javaExec": "/usr/lib/jdk1.8.0_281/bin/java",
            "projectName": "workspace-service",
            "shortenCommandLine": "jarmanifest"
        }
    ]
}
0

评论 (0)

取消