I've been trying for so long to get Maven for Java to work in VS code but every time I try making a new project I get this error:
Program 'cmd' failed to run: No application is associated with the specified file for this operationAt line:1 char:1
+ cmd /c mvn archetype:generate -DarchetypeArtifactId="maven-archetype- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ cmd /c mvn archetype:generate -DarchetypeArtifactId="maven-archetype- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
I have both the Java sdk and ApacheMaven installed (mvn -v works in cmd) but I keep getting this error in VScode!