问题描述:
在使用MyEclipse创建maven war项目时,pom报错:
Cannot detect Web Project version. Please specify version of Web Project through Maven project property <webVersion>. E.g.: <properties> <webVersion>3.0</webVersion> </
properties>
问题解决:
<groupId>cn.demo</groupId>
<artifactId>vote</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
在上面的项目的groupid之前添加:
<properties>
<webVersion>3.0</webVersion>
</properties>