Java. CLASSPATH file CLASSPATH entry Org.maven.eclipse.MAVEN2_CLASSPATH_CONTAINER won't be exported or published exception resolution

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.