Skip to content

Maven dependency with classifier not resolved correctly in vscode #1742

@GaZaTu

Description

@GaZaTu

I have a Maven dependency with <type>jar</type> and <classifier>idl</classifier> but instead of my -idl.jar classes being resolved in vscode, it's actually the classes of the main artifact that are visible. When i build the project with mvn install or w/e on the CLI, it's working correctly.

Environment
  • Operating System: openSUSE Leap 42.2
  • JDK version: 11.0.8, 2020-07-14
  • Visual Studio Code version: 1.50.0, 2020-10-07
  • Java extension version: 0.72.0, [2020-12-02]
Steps To Reproduce
  1. create 2 maven projects
  2. use some plugin to export a jar with a different classifier (tests for example) in project 1
  3. import project 1 in project 2 with that classifier
  4. try to import a class that's only visible in that classifier

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