解决Maven->update project 恢复为默认jdk1.5以及One or more constraints have not been satisfied问题
2017-08-03 14:10
513 查看
使用maven架构创建dynamic web 项目之后,默认指定的jdk 和compilerVersion都非常古老,而且即便你手动更新了版本之后,每次update project都会复位,非常不爽...
解决办法:
在pom.xml中加入下面内容,即可解决!
解决办法:
在pom.xml中加入下面内容,即可解决!
<!-- 指定jdk 和compilerVersion 防止update project之后 上述信息复位为1.5 --> <profiles> <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.7</jdk> </activation> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion> </properties> </profile> </profiles>
相关文章推荐
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- maven创建项目后出现“One or more constraints have not been satisfied、Dynamic Web Module 3.0 requires ”错误解决办法
- 解决eclipse中MAVEN项目提示One or more constraints have not been satisfied
- 解决maven项目One or more constraints have not been satisfied
- 解决One or more constraints have not been satisfied问题
- One or more constraints have not been satisfied. 问题解决
- 【maven 报错】maven项目update之后报错One or more constraints have not been satisfied.
- Maven错误:One or more constraints have not been satisfied
- maven项目,提示One or more constraints have not been satisfied
- 解决报错:One or more constraints have not been satisfied.
- Dynamic Web Module 3.0 request Java 1.6 or newer---One or more constraints have not been satisfied解决
- maven - Type One or more constraints have not been satisfied
- 新手使用Maven常犯错误One or more constraints have not been satisfied