mvn package made jar which is not executable.
Fixed by specifying right main.