Open
Description
openedon Jul 7, 2021
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:
- Clone https://github.com/baincd/maven-multi-module-example which has the module layout
gs-multi-module
└── library
└── application
- Open in VS Code
- Once projects are imported, right-click on multi-module-application and choose "Show Dependencies"
- 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