Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
-
None
Description
As a user, I want to see the Maven version banner every time, so on Windows, I "set MAVEN_OPTS=-V" which fails Maven on the next invocation with this error:
Unrecognized option: -V Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
According to the documentation, the MAVEN_OPTS environment variable holds
So the -V gets passed to the JVM rather than to Maven; the JVM does not recognise that flag and hence exits.
Although not what you're looking for, the behaviour is expected as far as I can tell.