The Java version of Eclipse

Source: Internet
Author: User

Running Tomcat will be packaged according to WebApp's rules, generating a directory with content, named your project name, and placed inEclipse working directory \.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Directory. Then tell Tomcat there's webapp, so it can run.
Maven dependencies packaged into/web-inf/lib/sometimes eclipse can get the jar introduced by Maven, but it's not packaged into the/web-inf/lib/directory when it's debugged, and the solution is as follows: Open editProject DirectoryUnder the. ClasspathFile. Here is an example.
<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><!--project the. classpath file specifies the file operations during compilation, build. The jar introduced by Maven can be obtained by eclipse because the configuration statement: <attribute name= "maven.pomderived" value= "true"/> for WebApp projects, To get a dependent jar on the Tomcat runtime, you need to configure: <attribute name= "org.eclipse.jst.component.dependency" value= "/web-inf/lib"/>-- >


The Java version of Eclipse

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.