maven创建项目后出现“One or more constraints have not been satisfied、Dynamic Web Module 3.0 requires ”错误解决办法

来源:互联网 发布:三菱伺服产品选型软件 编辑:程序博客网 时间:2024/06/06 04:11

项目-右击-properties-java build path 你会发现,你的jre版本为1.5.

解决办法:把jre版本更到1.7

在pom.xml中添加代码:


<plugin>


<groupId>org.apache.maven.plugins</groupId>


<artifactId>maven-compiler-plugin</artifactId>


<configuration>


<source>1.7</source>


<target>1.7</target>


</configuration>


</plugin>

然后,项目右键->maven->update project就可以了



阅读全文
1 0