Maven 问题集

问题01:

问题再现: 新建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

问题再现:
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
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 1. Java基础部分 基础部分的顺序:基本语法,类相关的语法,内部类的语法,继承相关的语法,异常的语法,线程的语...
    子非鱼_t_阅读 34,801评论 18 399
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 136,665评论 19 139
  • 抱团挑战日记第53天。读经时间:2017.4.18,星期一,晴。读经典内容有:《易经》:革卦第49,鼎卦第50卦。...
    罗石缘阅读 208评论 0 0
  • “往上攀爬的植物,你却让人家跟螃蟹似的横着爬!” 好邻居头一天帮我清理了露台上的杂草,后一天又来帮我搬移规整众植物...
    jasmine南京阅读 427评论 0 3
  • 出来交换也有将近八个月了,太久没接触长篇阅读,中文水平也有所退化。不过本来就不是很好,随性写写吧。 现在的自己比起...
    AliciaWong阅读 209评论 0 1

友情链接更多精彩内容