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文件打开修改如下:
maven 警告:Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVE

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

2.切换回project Explorer视图选中项目鼠标右键选中properties

maven 警告:Description Resource Path Location Type Classpath entry org.eclipse.m2e.MAVE
完成以上操作 选中警告ctrl+1或者加鼠标右键