Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

Eclipse Java Build Path properties

But this warning persists! What else can be done to fix it? Thanks.

like image 797
user710818 Avatar asked Jul 23 '11 09:07

user710818


1 Answers

You can right click on the warning, choose quickfix and choose one of the following:

  • 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.

As you will not have eclipse publishing/exporting the project it is safe to exclude it. But either way it makes no difference

Step by step screenshots:
http://publib.boulder.ibm.com/infocenter/radhelp/v8/index.jsp?topic=/com.ibm.javaee.doc/topics/tlooseclasspath.html

like image 58
Alin Stoian Avatar answered Sep 27 '22 21:09

Alin Stoian