8000 Cannot set maven command line args in .vscode/settings.json · Issue #1066 · microsoft/vscode-maven · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cannot set maven command line args in .vscode/settings.json #1066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mpet opened this issue Feb 25, 2025 · 0 comments
Open

Cannot set maven command line args in .vscode/settings.json #1066

mpet opened this issue Feb 25, 2025 · 0 comments

Comments

@mpet
Copy link
mpet commented Feb 25, 2025

Describe the bug
I am trying to set the following parameters to maven when running command line in vs-code.

-Daspectj.skip=true -DskipTests=true -Dsource.skip=true -Dmaven.javadoc.skip=true"

It does not seem possible to set it in vs-code.

To Reproduce
Steps to reproduce the behavior:

  1. Open setting.json under .vscode
  2. Try adding the following settings.
"java.debug.settings.onBuildFailureProceed": true,
    "maven.terminal.customEnv": {
        "MAVEN_OPTS": [
        "-Daspectj.skip=true",
        "-DskipTests=true",
        "-Dsource.skip=true",
        "-Dmaven.javadoc.skip=true"
        ]
    }
  1. Error message in json editor. Incorrect type. Expected "array".

  2. I can find suggestions to use this instead.

  3. Try adding the following settings.

"maven.terminal.customEnv": {
    "MAVEN_OPTS": ["-Daspectj.skip=true -DskipTests=true -Dsource.skip=true -Dmaven.javadoc.skip=true"]
}

I still get the same error message.

I could not find a way forward.

Expected behavior

A way to set these command line arguments:

-Daspectj.skip=true -DskipTests=true -Dsource.skip=true -Dmaven.javadoc.skip=true

so they are picked-up by maven when executing my project.

Environments (please complete the following information as much as possible):

  • VS Code version: [e.g. 1.24.0]
    Version: 1.97.2 (user setup)
    Commit: e54c774e0add60467559eb0d1e229c6452cf8447
    Date: 2025-02-12T23:20:35.343Z
    Electron: 32.2.7
    ElectronBuildId: 10982180
    Chromium: 128.0.6613.186
    Node.js: 20.18.1
    V8: 12.8.374.38-electron.0
    OS: Windows_NT x64 10.0.19045
  • readhat.java [1.39.0]
  • vscjava.vscode-maven [0.44.202407290]

//mikael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0