redhat-developer / redhat-developer/vscode-java
Maven Dependency is not Found
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
I currently have the problem that the extension fails to build my project because
message: Failure to find org.owasp:dependency-check-maven:jar:3.2.1 in https://<company-repository> was cached in the local repository, resolution will not be reattempted until the update interval of maven has elapsed or updates are forced;code: 0
The artifact can be found in the repository. The project also builds successfully from the command line with mvn compile. I also saw it download the mentioned dependency and it did end up in my local cache in ~/.m2/repository but the extension still shows this error when triggering a full rebuild. Restarting VSCode did not help. It seems there is some remnant of the failed resolution in an extension specific place.
What I really don't like about this is that I occasionally get into these kinds of problems and I have no real way to deal with them. All I can do is cleaning the workspace directory as mentioned in the troubleshooting guide but that is not really a way to work. In that sense they are usually not reproducible as well. If I can provide you with more information I'd be more than happy to but unfortunately even setting the log to verbose does not add anything to what I pasted above; it's just formatted differently.
Environment
- Operating System: OS X 10.13.4
- JDK version: 1.8.0_171
- Visual Studio Code version: 1.23.1
- Java extension version: 0.25.0
Steps To Reproduce
- open project (I opened https://github.com/zalando/logbook)
Current Result
- build fails with messages as shown above
Expected Result
- build succeeds
Additional Informations
- build succeeds from CLI
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
Start by reproducing the failure in the linked logbook project with the listed VS Code, Java extension, JDK, and OS X versions, comparing the extension-triggered full rebuild with mvn compile. Trace where the extension performs Maven dependency resolution and verify whether clearing or refreshing its cached state makes the build succeed; done means the dependency resolves and the full rebuild passes without workspace cleanup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100