新建maven项目后发现pom.xml文件报错:Cannot detect Web Project version。
在pom文件中</build>上方添加下边的代码
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<version>3.0</version>
</configuration>
</plugin>
</plugins>
如果还继续报错,则右键点击项目-》Maven4Myeclipse-》Update Project。
如果还有其他错误,可能是因为没有在webapp文件夹下添加WEB-INF,并且在WEB-INF下添加web.xml