Updating Maven Project". Unsupported IClasspathEntry kind=4錯誤解

原文:http://blog.sina.com.cn/s/blog_67f81bad0101dd8m.html

Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=374332#c14

The problem is caused by the fact that the STS (the SpringIDE/Eclipse) uses the m2e(clipse) plugin but that eclipse:eclipsehas been probably been run on the project. When m2e encounters a"var" .classpath entry, it throws this error.

In order to fix this problem, you need to do the following:

  1. Make sure that the version of the m2e(clipse) plugin that you'rerunning is at least 1.1.0, and preferably, the latest available.The update site is the following url:http://download.eclipse.org/technology/m2e/releases/ (1.3.1,at the moment).

  2. Disable the maven nature for the project (via the right-clickmenu)

  3. run mvneclipse:clean (while your projectis open inSTS/eclipse)

  4. re-enable the maven nature.
    (Most of the time, this can be done by right-clicking on theproject in question in the package explorer pane, and then choosing'Configure'-> 'Convert to Maven Project')


發佈了95 篇原創文章 · 獲贊 113 · 訪問量 110萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章