Eclipse building workspace hangs after importing existing maven project because of JavaScript validation

user3444334 picture user3444334 · Mar 21, 2014 · Viewed 20.9k times · Source

When running Eclipse Kepler and importing an existing Maven project, Eclipse hangs during "Building Workspace (XX%)". Switching to the Progress tab reveals a "Validating nnn"; it looks like it’s validating a directory containing JavaScript files.

Answer

user3444334 picture user3444334 · May 3, 2014
  • Kill Eclipse process.

  • Go to project folder and edit .project file.

  • Remove the following lines (it will disable failing JavaScript validator):

    <buildCommand>
      <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
      <arguments>
      </arguments>
    </buildCommand>
    
  • Save file.

  • Re-open Eclipse.