步骤一
在pom.xml中的(若有)里面添加插件,没有就直接复制一下代码。
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
步骤二
在项目上右键maven->update
步骤三
在project Explorer打开项目,在Deploy……上右键选中Gener……(灰色则忽略此步骤)
步骤四
项目上右键->properties->targeted Runtimes选中对应的tomcat。