配置Maven并新建项目遇到的问题

遇到的问题:新建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!

另外遇到问题: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 x.x—>finish

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,136评论 0 10
  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa阅读 12,867评论 0 6
  • 十七、八岁,花一样的年纪。花一样的她。没有读过几年书,干遍了地里的农活。他们那些同年啊,都是有理想的青年,她好像什...
    一个人在游走阅读 1,202评论 0 0
  • 孤独,非我所愿,却一直如影随形 我煮字疗饥,在烛光如豆的夜晚 窗外的天空高挂着圆月,墙外灯火阑珊 月亮如一面擦洗过...
    代晓阅读 2,976评论 2 2
  • 2018.7.22晨间检视 就寝22:00晨起05:30 午休/冥想0min 时间管理的核心是做减法 【今日三只青...
    iam允懿阅读 1,163评论 0 1