eclipse+tomcat+maven debug的時候老是出現source not found /Edit lookup path...的問題解決方案html
這個問題糾結很久很久....git
問題出現的環境github
IED:eclipsetomcat
包管理:maveneclipse
容器:tomcatmaven
項目debug struts中的源碼ui
問題描述google
編寫好代碼以後,想着跟蹤一下源碼看看,但是老是出現spa
按照以往經驗,直接點擊[edit.....]關聯上本工程以後就能夠debug.在完成關聯以後,會出現下面的狀況插件
忽然出現斷點指向的源碼,而後又消失,繼續出現上面的狀況.
百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....百度..... google ....(一路很辛苦,就把他當作分割線吧)
解決方案
一個叫sourcelookup的eclipse插件,已經添加到了maven development tools裏,在eclipse裏install new software,安裝便可。
地址爲
http://ifedorenko.github.com/m2e-extras/
可是有一個問題,安裝maven development tools以前必需安裝m2e,並且是須要1.6+(在我安裝時,可能會變),從下面網址獲得m2e的各類版本的地址
http://www.eclipse.org/m2e/m2e-downloads.html
全安裝完以後重啓eclipse,我在maven install的時候出現了SunCertPathBuilderException錯誤
查看:
http://www.69900.com.cn/a_small_mouse/article/details/50291045
到此爲止已經完美解決這個問題了^_^.只能說太TM累了,可是很輕鬆~~