【maven 報錯】maven項目update之后報錯One or more constraints have not been satisfied.


在右鍵項目Update Project之后
報錯:
One or more constraints have not been satisfied.
Spring 4.1 requires Java 1.6 or newer.

 

解決問題:

The solution is I have to goto to the ".settings" folder which is at the project location and deleted "org.eclipse.wst.common.project.facet.core.xml" file and restarted the process again. This time it worked

這個從網上照的一個辦法,比較好用,有作用。

就是刪除掉.setting文件下的這個文件。然后將項目從MyEcplise中刪掉,再Import進去,然后,發現項目不能被Tomcat識別了。

然后右鍵項目-->properties-->myEcplise下面的-->project Facts 將項目的web版本,java版本,hibernate版本等一並都選擇好,再回來項目就好了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM