Skip to content

"Show Dependencies" does not resolve sibling module #650

Open

Description

Describe the bug
In a multi-module project, executing "Show Dependencies" on a module that requires a sibling module throws an error

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/baincd/maven-multi-module-example which has the module layout
gs-multi-module
└── library
└── application
  1. Open in VS Code
  2. Once projects are imported, right-click on multi-module-application and choose "Show Dependencies"
  3. See error "Command "maven.project.showDependencies" fails. Output displays
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:tree (default-cli) on project multi-module-application: Cannot build project dependency graph: Could not resolve nor collect following dependencies: [com.example:library:jar:0.0.1-SNAPSHOT (compile)]: Could not resolve dependencies for project com.example:multi-module-application:jar:0.0.1-SNAPSHOT: Could not find artifact com.example:library:jar:0.0.1-SNAPSHOT -> [Help 1]

Expected behavior
Display the resolved dependencies for multi-module-application, including multi-module-library

Environments (please complete the following information as much as possible):

  • OS: WIndows 10 and Linux
  • VS Code version: 1.55.2
  • Extension version 0.30.1

Additional context
Other IDEs, such as Eclipse, are able to resolve dependencies of a module that depend on a sibling module. This is extremely useful functionality for being able to see the dependencies of a project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions