vscode-maven
vscode-maven copied to clipboard
can not automatically add a dependency whose type is pom
Describe the bug can not automatically add a dependency whose type is not jar, the default value.
To Reproduce Steps to reproduce the behavior:
- Run
add a dependencycommand - Search for
takari-plugin-integration-testingand add, which is a pom dependency - See error in pom.xml
Expected behavior support other types of dependencies
Environments:
- OS: Windows 10
- VS Code version: 1.58.1
- Extension version: 0.31.0
Screenshots

both addDependency and setDependencyVersion only support dependencies whose type is jar. So we need to fix them separately.
- for
addDependency: gettypefromgetArtifacts(), and change the construction of dependencies node in pom.xml - for
setDependencyVersion: add-DshowTypesin maven command, addtypein classDependencyand change related functions.