Replies: 1 comment
-
|
There are two separate controls that are useful here. If you only want to stop Maven from going to remote repositories while the Java importer is running, enable Maven offline mode: {
"java.import.maven.offline.enabled": true
}If the main issue is specifically that Maven is writing to {
"java.configuration.maven.userSettings": "/absolute/path/to/vscode-java-maven-settings.xml"
}Example <settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<localRepository>/absolute/path/to/some/cache/m2-repository</localRepository>
</settings>So the practical setup is: use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like this extension will try to find a corresponding artifact of a "java.project.referencedLibraries" referenced library in Maven Central. Then a default Maven is invoked and downloads them to ~/.m2 for uses like showing definitions. However, I do not want file appearing in my home directory. How would I prevent this behavior?
Beta Was this translation helpful? Give feedback.
All reactions