How to run maven from eclipse with the -e switch

Viewed 20778

Is it possible to execute the exec goal with the exec-maven-plugin with the -e switch? I am getting a MojoExecutionException.

2 Answers

Right click your project and Run as -> Run Configurations...

enter image description here

Add the -e (or other switches for eg. -X, etc.) in the Goals input box. If you already have some goals add a space and then put your switch.

enter image description here

Related