解决Maven项目中的无故报错的方法


解决Eclipse+maven中的无故报错

错误:  One or more constraints have not been satisfied.

          Deployment Assembly跟java版本不匹配

解决方法

在pom.xml文件中添加以下代码,即可解决该类型报错

 
        jdk-1.8
        另外一种激活方式
        
            true
            1.8
        
        
            1.8
            1.8
1.8
        
    

添加以上配置文件之后,update项目,就可以消除报错

相关