I get this error message if I specify multiple jars as input (e.g passing in file: *.jar of some sort that results in myCode-0.0.1.jar and myCode-0.0.1-sources.jar both being picked up):
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/tmp/build/put). Please verify you invoked Maven from the correct directory. -> [Help 1]
It would be helpful if the error message were more explicit about the real issue, which is that you need to specify exactly one file.