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

前端 未结 14 849
离开以前
离开以前 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 01:01

    http://geertschuring.wordpress.com/2009/03/05/why-the-maven2_classpath_container-will-not-be-exported-or-published/

    On certain occasions Eclipse will present you with the following warning:

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

    So solve this, do the following:

    Open the properties of the project that generates this warning
    Click on “Java Build Path”
    Click on the tab “Order and Export”
    Enable “Maven Dependencies”
    Click on “Ok”
    Open the “Problems” view
    Select the warning we are trying to solve, and press “Ctrl-1″
    Click on “Ok”
    

    The problem is now solved. It may take some time before the warning disapears because the project needs to rebuild before it goes away.

提交回复
热议问题