Maven 問題集

問題01:

問題再現(xiàn): 新建Maven項目后報錯:Could not get the value for parameter encoding for plugin execution default- resources.

Could not get the value for parameter encoding for plugin execution default-resources Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven…….

解決方法:

1.Close Eclipse.
2.Navigate to user home directory. (For example:“C:\Users\YourUserName.m2”)
3.Delete the “repository” folder.
4.Re-open Eclipse.
5.Click on the Maven project that has an issue and go to “Project” –> “Clean”.
6.Right-click on the project and go to “Maven” –> “Update Project…”.
7.Close Eclipse.
8.Open Eclipse.
9.Click on the project folder in the “Project Explorer” window (usually on the left).
10.Hit the “F5” key a few times to Refresh your project.
Done!

問題02

問題再現(xiàn):
jsp頁面報錯:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

解決方法:

項目右鍵—>build path—> configure build path —>librarys—>Add Library—>Server Runtime —>Apache Tomcat v7.0—>finish
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 1. Java基礎(chǔ)部分 基礎(chǔ)部分的順序:基本語法,類相關(guān)的語法,內(nèi)部類的語法,繼承相關(guān)的語法,異常的語法,線程的語...
    子非魚_t_閱讀 34,692評論 18 399
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,554評論 19 139
  • 抱團(tuán)挑戰(zhàn)日記第53天。讀經(jīng)時間:2017.4.18,星期一,晴。讀經(jīng)典內(nèi)容有:《易經(jīng)》:革卦第49,鼎卦第50卦。...
    羅石緣閱讀 206評論 0 0
  • “往上攀爬的植物,你卻讓人家跟螃蟹似的橫著爬!” 好鄰居頭一天幫我清理了露臺上的雜草,后一天又來幫我搬移規(guī)整眾植物...
    jasmine南京閱讀 421評論 0 3
  • 出來交換也有將近八個月了,太久沒接觸長篇閱讀,中文水平也有所退化。不過本來就不是很好,隨性寫寫吧。 現(xiàn)在的自己比起...
    AliciaWong閱讀 207評論 0 1

友情鏈接更多精彩內(nèi)容