Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported

前端 未结 14 910
离开以前
离开以前 2020-12-24 00:09

I\'m getting this warning in Eclipse:

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

14条回答
  •  星月不相逢
    2020-12-24 00:50

    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:

    
        
            
        
    
    

    Simply delete have the attribute exported="true" and confirm by refreshing the project configuration.

提交回复
热议问题