從http://m2eclipse.sonatype.org/update下在線安裝m2eclipse,現在的版本是0.9.7,20090209的版本,應該是新出來的。安裝時出現錯誤提示導致無法安裝:
Cannot complete the request. See the details.
Cannot find a solution satisfying the following requirements org.eclipse.ui.workbench [3.4.2.M20090127-1700].
這個錯誤比較古怪,我用的是最新的eclipse 3.4.2 jee的版本,特地跑eclipse目錄plugins下去看,發現有org.eclipse.ui.workbench_3.4.2.M20090127-1700.jar
和上面要求的版本完全一致啊,怎么就報錯了呢?
google了一圈,完全沒有收獲,似乎大家都沒有遇到類似問題?
逐個嘗試,發現有三個東西和這個org.eclipse.ui.workbench_3.4.2.M20090127-1700有依賴:
maven scm handler for subclipse
maven integration for ajdt
maven integration for wtp
在google上搜到一篇文章:
M2eclipse在Eclipse3.4.1下的詳細安裝步驟
http://blog.csdn.net/zhaosen241/archive/2008/10/22/3122779.aspx
提到要先安裝Web Tools Platform (WTP),但是我測試過發現還是沒有解決問題。我用link方式安裝了最新版本的Web Tools Platform (WTP) ,再次安裝m2eclipse 0.9.7時還是報上面同樣的錯誤。
最后沒轍了,放棄上面的三個造成錯誤的東東,安裝其他內容,一路順利安裝,m2eclipse可以正常運行。
始終還是不明白為什么會報org.eclipse.ui.workbench_3.4.2.M20090127-1700的錯誤??哪位可以賜教?