question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

maven does not resolve all the dependencies

See original GitHub issue

Compilation 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
  1. Import this project: https://github.com/kiegroup/optaweb-employee-rostering

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
fbriconcommented, Apr 9, 2019

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

2reactions
snjezacommented, Apr 10, 2019

@dmarrazzo could you try the following:

  • add
"java.home": "/usr/lib/jvm/java-1.8.0-openjdk/",

to VS Code settings

  • close VS Code
  • run
rm -rf /home/donato/.config/Code/User/workspaceStorage
  • start VS Code
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found