Search code examples
eclipsemacosmaven-3

error in validation of project in eclipse - clean


Since I updated my osx version this morning (no other changes) I get cleaning my project in eclipse:

Errors occurred during the build.
Errors running builder 'Validation' on project 'XXXXX'.
java.lang.NullPointerException

and the same result trying to run maven=> update project.

my configuration:

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/local/Cellar/maven/3.2.1
Java version: 1.6.0_65, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: nl_NL, platform encoding: MacRoman
OS name: "mac os x", version: "10.9.3", arch: "x86_64", family: "mac"

All suggestions are welcome!


Solution

  • Errors occurred during the build. Errors running builder 'Validation' on project 'XXXXX'. java.lang.NullPointerException

    A very general error that can arise due to a number of issues in settings and configurations. The most easy way out is to delete the project from eclipse, remove the directory .metadata from your workspace folder and then re-import the project ( or projects ).

    Also try to check that the classpath of the eclipse is configured properly and no class-path variable has gotten disturbed during OS upgrade. Best way to check this is to goto the Configure classpath options of your project and make sure there isn't any issue there