Eclipse: skipping exceptions when debugging

Have you ever been so pissed off about the way Eclipse, in debug mode, stops at every exception thrown by the application so that you have to skip each one of them manually in order to reach your actual breakpoints ?

Well, I may have a solution for you guys !

  1. Just open the Eclipse preferences (Window -> Preferences)
  2. Go into Java -> Debug panel
  3. Uncheck the options “Suspend execution on uncaught exceptions” and (if you want to) “Suspend execution on compilation errors”
  4. Apply, Ok

You’re welcome šŸ˜‰

Eclipse: launch Maven command from eclipse

If you’re using eclipse for your developments and Maven for your building process, you may want to launch Maven commands directely from eclipse without going back to the command line. That is my case too, and here are the steps that may help you doing that:

  1. Right click on the project in eclipse interface
  2. Click on Run As
  3. If available, click on Maven build
  4. In the Main panel there is a field namedĀ Goals, fill there the goals you want to execute (compile, package, etc.)
  5. Hit Run

If the option Maven build is not available under the menu Run as, don’t worry ! Just click on Run configurations, then right click onĀ Maven build (inside the panel on the left) and chooseĀ New. In the Main panel (on the right), fill the Base directory (for example: ${workspace_loc:/YOUR_PROJECT_NAME}), then go to the step nĀ°4 in the step list described before.

Enjoy ! =)