Classpath entry Org.maven.eclipse.MAVEN2_CLASSPATH_CONTAINER won't be exported or published
In the actual development process of building Java Web Project with maven, sometimes this warning will occur, and if you do not resolve this warning, you will throw the exception of the third-party jar package that cannot load MAVEN management when starting the Web server.
Therefore, to solve the above problem mainly consists of the following several steps:
1. First locate the. classpath file at the root of the project, then open the file, locate the following label, and then add the following label contents of the Green Line callout:
<classpathentry kind= "Con" path= "Org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER" >
<attributes>
<attribute name= "maven.pomderived" value= "true"/>
<attribute name= "org.eclipse.jst.component.dependency" value= "/web-inf/lib"/>
</attributes>
</classpathentry>
2. Then, select your project in the Eclipse Project manager, right-click Build path->configure Build Path->order and Export, tick maven Dependencies, click OK
3. Finally, clean the current project, and then look in warning under the Problems tab for Classpath Entry Org.maven.eclipse.MAVEN2_CLASSPATH_CONTAINER will is not being exported or published warning, if not, then the problem is solved.
Then start the server without throwing exceptions that cannot load Maven-managed third-party jar packages.
Java. CLASSPATH file CLASSPATH entry Org.maven.eclipse.MAVEN2_CLASSPATH_CONTAINER won't be exported or published exception resolution