maven项目创建——异常:Cannot detect Web Project version


Cannot detect Web Project version. Please specify version of Web Project through
<version> configuration property of war plugin. E.g.: <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <version>3.0</version> </configuration> </plugin>

创建maven项目是pom.xml文件头出现以上错误,原因不详。

解决方案:

原文地址:https://www.cnblogs.com/azhi/p/7899863.html