maven does not resolve all the dependencies
See original GitHub issueCompilation error in VSCode: The import javax.annotation.PostConstruct cannot be resolved Looking at the effective pom, the following dependency is present:
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
Environment
- Operating System: Fedora 29
- JDK version: OpenJDK Runtime Environment (build 1.8.0_201-b09)
- Visual Studio Code version: 1.33
- Java extension version: 0.42.1
Steps To Reproduce
- Import this project: https://github.com/kiegroup/optaweb-employee-rostering
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Maven Could not resolve dependencies, artifacts ...
The artifactId for all the dependencies that failed to download are incorrect - for some reason they are prefixed with com.springsource . Cut/paste...
Read more >How to Fix Maven Artifacts Could not be Resolved Error? ...
I executed below command to install it in my localhost maven repo and everything worked. ... Could not resolve dependencies for project ...
Read more >IntelliJ not resolving Maven dependencies
It's not resolving Maven dependencies (the External Libraries remains empty and all classes from dependencies are red in the editor).
Read more >8 commands that help to resolve maven dependency ...
In your maven project, If the dependencies are placed not properly. ... This command helps to resolve all dependencies of your project.
Read more >Maven Repo: Could not resolve dependencies ... - GitLab
From there, trigger a new build and open the logs. Look for when the maven-metadata.xml of the dependency project is accessed. Does it...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Works for me. You can try to right-click on your project’s pom and try to “update project configuration”, if that doesn’t work then call the “Clean the Java language server workspace” command
@dmarrazzo could you try the following:
to VS Code settings