Error:
Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published
Posted by Geert Schuring on March 5, 2009
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.