[Solved] scala Error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exe

Error reported when running Scala code after building Maven project:

failed to execute goal org codehaus. mojo:exec-maven-plugin:1.6.0:exec (default-cli) on project sp03-userservice: Command execution failed.
when this error occurs, try the following:
Uncheck as the screenshot below:

 

Read More: