eclipse新建maven工程的各种坑

 尽量按照最后强烈推荐的那篇创建maven工程. 

1.jsp文件头报错

 

2.xml配置文件头红叉

 

 

3.Archive for required library...blabla

 

4.pom依赖出错

 

5.修改jdk和web版本

 

6.src目录红叉

 修改web.xml文件为:

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="3.0"

xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

 

<display-name>Archetype Created Web Application</display-name>

</web-app>

 

感谢:

maven搭建工程后出现感叹号问题(Archive for required library:。。。。。)

Eclipse解决“Archive for required library: ...”错误

Eclipse- Dynamic Web Module 3.0 requires Java 1.6 错误

Referenced file contains errors 解决方法

Eclipse创建Maven web项目jsp表头报错

eclipse 创建maven 项目 动态web工程完整示例(强烈推荐)

 

终于知道为啥这么多人中意IDEA开发工具了...

 

posted @ 2017-11-26 10:18  习惯沉淀  阅读(567)  评论(1编辑  收藏  举报