Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtim

来源:互联网 发布:软件著作权申请表 编辑:程序博客网 时间:2024/06/06 10:55

Eclipse里开发maven项目有如下警告的解决办法:

1、Description ResourcePath Location Type Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.  项目名称P/项目名称Classpath Dependency Validator Message

2、DescriptionResource PathLocationType Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result.  项目名称P/项目名称Classpath Dependency Validator Message

解决办法:

打开navigator资源管理器, 修改下面的classpath文件:

<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"><attributes><attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/></attributes></classpathentry>

项目上右键单击打开项目属性,如下操作:

完成操作后点击ok,然后单击选中警告,并按ctrl+1/或者右键选择,解决问题

最后要是还存在就clean一下项目,彻底解决问题。

1 0
原创粉丝点击