类路径条目org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER将不会导出 [英] Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported
问题描述
类路径条目org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER不会被导出或发布。运行时ClassNotFoundExceptions可能会导致
搜索后发现我需要修复导出。我做了。
但此警告仍然存在!
还有什么可以修复它?
谢谢。
我尝试过这两个选项,只有后者是你需要的:
- 将关联的原始类路径条目标记为发布/导出
依赖关系 - 排除关联的原始从潜在的
发布/导出依赖关系中的类路径条目
如果导出依赖关系,请通过 Maven - >更新项目配置上下文菜单将导致警告返回。在这种情况下,您需要手动编辑.classpath文件:
< classpathentry kind = conexported =truepath =org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER>
<属性>
< attribute name =org.eclipse.jst.component.dependencyvalue =/ WEB-INF / lib/>
< / attributes>
< / classpathentry>
只需删除具有属性 exported =true
并通过刷新项目配置进行确认。
I'm getting this warning in Eclipse:
Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result
After searching I found that I need fix export. I did it.
But this warning persists! What else can be done to fix it? Thanks.
I had tried both of the options but only the latter is what you need:
- Mark the associated raw classpath entry as a publish/export dependency
- Exclude the associated raw classpath entry from the set of potential publish/export dependencies
If you export the dependency, refreshing the project configuration via Maven -> Update Project Configuration context menu will cause the warning to return. In this case you need to edit the .classpath file by hand:
<classpathentry kind="con" exported="true" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
Simply delete have the attribute exported="true"
and confirm by refreshing the project configuration.
这篇关于类路径条目org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER将不会导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!