Since maven version 3.50 and later when running a simple command with -f option the command fails reporting:
"\pom.xml was unexpected at this time."
mvn -f C:\mmm(example)\pom.xml clean install
This must be related to changes in 3.5.x since it works as expected with version 3.3.9
Removing the brackets from the folder name resolves the issue.
MNG-6256 Maven script can break if "-f" path contains special characters
- is related to
MNG-6385 Windows mvn.cmd fail with incorrect command syntax.
- links to