新下载的项目,在使用maven update 时,发现 Assembly 里的maven相关依赖消失了,试几次都一样,网上信息太杂,为此记录下此次解决过程
1、
确保以上于项目里web.xml 中(web-app_3_1.xsd 与version)保持一致
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
2、在项目目录下,.setting/org.eclipse.wst.common.project.facet.core.xml
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="wst.jsdt.web"/> <installed facet="wst.jsdt.web" version="1.0"/> <installed facet="java" version="1.7"/> <installed facet="jst.web" version="3.1"/> </faceted-project>
<installed facet="jst.web" version="3.1"/> version 要与上面保持一致
3、据说在项目目录下执行 mvn eclipse:clean 后再重新导入项目也可以,没试验,仅记录下来备忘