redhat-developer / redhat-developer/vscode-java

.m2 folder ignores XDG Base Directory from "maven.settingsFile"

Open
#4,257 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

When I run VSCode maven project, I am getting ~/.m2 folder in my home directory.

I have set: "maven.settingsFile": "/home/untainsYD/.config/maven/settings.xml", and other maven-related stuff like:
Image

Is there a way to get rid of polluting my home directory with Maven artefacts?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the VS Code Maven project behavior with maven.settingsFile set to /home/untainsYD/.config/maven/settings.xml and inspect how the extension handles Maven and XDG-related paths. Done means Maven artifacts no longer create an unexpected ~/.m2 directory, or the supported configuration and limitation are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.