Skip to content
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

Allow referencing modules from local Maven repository #46

Closed
akaroml opened this issue Apr 13, 2018 · 5 comments
Closed

Allow referencing modules from local Maven repository #46

akaroml opened this issue Apr 13, 2018 · 5 comments
Assignees
Labels
feature-request New feature or request

Comments

@akaroml
Copy link
Member

akaroml commented Apr 13, 2018

Brought by @biezhi

This is not necessarily a problem of THIS extension. But we are looking for a fix cross the whole vscode-java solution.

@merqrial
Copy link

merqrial commented Jun 3, 2019

I am facing similar issue. I have a local maven repo and VScode can't find that properly.
Is there a path where I should set?

@alvint
Copy link

alvint commented Jun 7, 2019

I would say not referencing the local repo is a problem of this extension, since the "Generate [project] from Maven Archetype" option does not show archetypes that are installed locally. And they usually are if you've created your own project templates.

@Eskibear
Copy link
Member

since the "Generate [project] from Maven Archetype" option does not show archetypes that are installed locally.

It should. See #82 .
But the limitation is, currently the local maven repository is determined by:

  • Reading from settings file ~/.m2/settings.xml if possible
  • ~/.m2/repository by default.

@Qiuzhuang
Copy link

Just add following configuration into settings.json file:
"java.configuration.maven.userSettings": "your maven settings.xml location"

@Eskibear Eskibear self-assigned this Mar 19, 2021
@Eskibear
Copy link
Member

now you can specify user settings with maven.settingsFile.

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

No branches or pull requests

5 participants