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 dependency
command - Search for
takari-plugin-integration-testing
and 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
: gettype
fromgetArtifacts()
, and change the construction of dependencies node in pom.xml - for
setDependencyVersion
: add-DshowTypes
in maven command, addtype
in classDependency
and change related functions.