“Failed to execute goal org.codehaus.mojo:exec-maven-plugin” throws by maven plugins. I start getting this error at the time when I was integrating my Java Application with Mulesoft API Manager. where I created one maven application using eclipse oxygen, JDK8 and Maven 3.3.9 as a complete development environment. After doing much Research and debugging I got the below solution for my case, please try following solution to come out of this…
Setting up the main class with Maven goal
- The main reason behind the application error is missing main class name. here I did not specify the main class name(run-time argument list) with “Maven Goal”. As you can see in below screenshot
- To solve this issue(“Failed to execute goal org.codehaus.mojo:exec-maven-plugin”), do not forget to specify the main class name to run the goal. As given in below screenshot
- It resolved my application error.
- If you have multiple arguments to set with the application goal, add them by separating with space. As shown in below screenshot
- Regardless you can try some other solutions like –
- When you are developing any application check the compatibility of your development stack. Like JDK and Maven compatibility with your application package.
- Check the confusing punctuation while writing the goals. You can check here on AWS https://forums.developer.amazon.com/questions/28729/mvn-execexec-build-failure.html
- To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.
- compile the project before you start running a project.
we are open for your suggestions because it can help us to improve a bit more. ww.ease2code.com
Speak Your Mind