Closed ThePrez closed 1 year ago
this behavior is contributed by https://github.com/microsoft/vscode-maven/issues/, I will transfer this issue to vscode-maven extension for a look. @Eskibear
@ThePrez What's the version of your installed "Maven for Java" extension?
It's fixed in v0.40.1. See https://github.com/microsoft/vscode-maven/issues/910
@ThePrez What's the version of your installed "Maven for Java" extension?
It's fixed in v0.40.1. See #910
I am running v0.40.1
. I also tried v0.40.2022120203
as the most recent release and see the behavior there as well. Uninstalling/reinstalling also does not fix. I also looked in the installed JS on my PC at %USERPROFILE%\.vscode\extensions\vscjava.vscode-maven-0.40.1\dist\extension.js
and verified that the code fix is there, but the faulty behavior persists.
Upon cursory inspection of the code, I am curious if the check here is being incorrectly triggered because my maven command, having a fully-qualified Windows path, contains a :
(actually two: one for the maven command and one for the fully-qualified path to the pom.xml). I can't figure out a way to test this hypothesis configuration or command line options, though.
Upon cursory inspection of the code, I am curious if the check here is being incorrectly triggered because my maven command, having a fully-qualified Windows path, contains a
:
(actually two: one for the maven command and one for the fully-qualified path to the pom.xml).
After some more code inspection, I don't think this is it. :/
I just tried the exec-maven-plugin
as you mentioned above but failed to reproduce the issue, it ran exec:java
as expected.
Can you check if your maven explorer looks like below? i.e. parent node of java
is exec
.
Ok now I can reproduce it. It only occur when you "debug" it instead of "run".
@ThePrez
It's fixed and shipped in v0.40.2022120507. You can switch to pre-release version to try it.
Works beautifully. Thanks!
Environment
Steps To Reproduce
Log info:
Current Result
mvn
is invoked with "java" on the command line (this results in a failure due to "java" being an unknown lifecycle phase)Expected Result
mvn
is invoked with "exec:java" on the command line, as is done properly when the "run" action is taken from the pluginAdditional Informations
pom.xml plugin entry: