maven war中提示
Description Resource Path Location Type
Cannot detect Web Project version. Please specify version of Web Project through Maven project property <webVersion>.
Cannot detect Web Project version. Please specify version of Web Project through Maven project property <webVersion>.
E.g.: <properties> <webVersion>3.0</webVersion> </properties> pom.xml /taotao-manager-web line 8 Maven Java EE Configuration Problem
在pom.xml中添加如下代码,指定war的版本和编译插件
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<version>3.0</version>
</configuration>
</plugin>
</plugins>
<finalName>webserver</finalName>
</build>