Skip to content

maven test scope dependency problem  #777

@Eskibear

Description

@Eskibear

From microsoft/vscode-maven#165 by @fssrepository


v 1.29.1

Steps to Reproduce:

I have the following two dependencies in maven:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
</dependency>

<dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
</dependency>

Although test scope is not transitive dependency it includes org.junit - suggested in the official spring documentation. - and it's working on netbeans 8.2

I have got several issues related to test packages, that org.junit / org.springframework.security package is missing. Pls. notice I'm talking about two different independent test dependencies which contain different packages and include different dependencies.

If I comment out one of the 'test', wait some time until VsCode finishes its task triggered by the change and add the line back.

All my issues will be gone, even if I restart the vs code.

I'm not sure whether it's related to maven for java, or the vscode parsing process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions