redhat-developer / redhat-developer/vscode-java
Allow to provide Maven gav for java.project.referencedLibraries
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
it is possible to mention path to jar on the filesystem for java.project.referencedLibraries, it would be nice to be able to specify Maven gav too and VS Code java will download them in the ;m2/repository and point to them automatically
"java.project.referencedLibraries": {
"include": [
"library/**/*.jar",
"/home/username/lib/foo.jar",
"mvn:org.example:myArtifact:1.0.0"
],
"exclude": [
"library/sources/**"
],
"sources": {
"library/bar.jar": "library/sources/bar-src.jar"
}
}
sort of the corresponding feature of "Add Library -> Maven managed dependencies" in Eclipse desktop and project Settings -> Libraries in IntelliJ
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
Steps To Reproduce
- [step 1]
- [step 2]
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
Additional Informations
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The entry point is the java.project.referencedLibraries setting; first locate how its include, exclude, and sources values are parsed and how filesystem JARs are registered. Compare the requested mvn:org.example:myArtifact:1.0.0 behavior with the existing Maven-managed dependency flow, then verify resolution into the .m2/repository and automatic classpath and source registration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100