Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven test scope dependency problem #165

Closed
fssrepository opened this issue Dec 6, 2018 · 2 comments
Closed

maven test scope dependency problem #165

fssrepository opened this issue Dec 6, 2018 · 2 comments

Comments

@fssrepository
Copy link

fssrepository commented Dec 6, 2018

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.

@Eskibear
Copy link
Member

Eskibear commented Dec 7, 2018

I think it's not related to Maven for Java, whose features are almost all based on mvn itself.

@jdneo @yaohaizh Please take a look at this issue, see if it's related with Java Test Runner or Java Language Server

@Eskibear
Copy link
Member

It looks more related with the language server. Let's track the issue in redhat-developer/vscode-java#777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants