Skip to content

Maven projects do not have access to dependencies from the test scope #2569

@clembo590

Description

@clembo590
Environment
  • Operating System: macos 12.0.1
  • JDK version: 1.8
  • Visual Studio Code version: 1.69.1
  • Java extension version: java extension pack v0.24.0
Steps To Reproduce

I have created a public repo so that the issue is easily reproducible:

step1: clone this repo:

git clone https://github.com/clembo590/issues.git --branch vs_code_does_not_build

step2: run mvn clean install
-->no issue

step 3: "import the project in vscode"
I get the error
The project was not built since its build path is incomplete. Cannot find the class file for org.slf4j.Logger. Fix the build path then try building this project
Screenshot 2022-07-15 at 16 24 48

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions