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.