microsoft / vscode-maven

VSCode extension "Maven for Java"
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven
Other
179 stars 88 forks source link

Unable to automatically load the modified project configuration, resulting in the downstream plug-in test run for Java: junit4/5 not running normally #1030

Open rqwsa opened 4 months ago

rqwsa commented 4 months ago

When I test JUnit, I need to switch between different environments. When I modify the project configuration, JUnit cannot run normally.

https://github.com/microsoft/vscode-java-test/issues/1665

At first, I thought it was the problem of the downstream "test run for Java" plugin. After many comparisons, I thought it should be the problem of vscode Maven.

Adding configuration still doesn't work,

"java.configuration.updateBuildConfiguration": "automatic", This should have nothing to do with maven.

I think the project configuration should be updated from POM to make the Maven project and Java project configuration consistent.

Eclipse has the function of update project configuration from POM

After I use eclipse's update project from POM, the JUnit test can run normally with vscode.