1. 程式人生 > >maven 警告:Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVE

maven 警告:Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVE

異常描述:

> *Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.

解決辦法:
1.開啟navigator檢視選擇.classpath檔案開啟修改如下:
這裡寫圖片描述

這裡寫圖片描述

2.切換回project Explorer檢視選中專案滑鼠右鍵選中properties

這裡寫圖片描述
完成以上操作 選中警告ctrl+1或者加滑鼠右鍵