问题一:Cannot install Dynamic Web Module 3.0 facet.
解决办法:
在web.xml中将web换成3.0版本。
问题二:Cannot upgrade/downgrade to Dynamic Web Module 3.1 facet. It is incompatibile with already installed facets: Java 1.6. Please modify project configuration.
解决办法:
项目=》属性=》MyEclipse=》Project Facets => 修改java为1.7
右键=》MavenMyeclipse=》Update Project即可解决
问题三:One or more constraints have not been satisfied.
Deployment Assembly跟java版本不匹配
解决办法:
在pom.xml中添加下面内容即可,同时也可以解决Maven->update project默认jdk的问题
<profiles>
<profile>
<id>jdk-1.8</id>
<!-- 另外一种激活方式 -->
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>