Build a runtime environment based on intellij idea 15.0.2 tomcat7.0.69 source code

Source: Internet
Author: User

Due to the adjustment of the current work content and the re-planning of the job, we are ready to learn the Tomcat source code.

I. Prepare resources:

1. Java ide tool: intellij idea 15.0.2

2, Tomcat source code use: apache-tomcat-7.0.69-src.zip version

3. Use Maven environment: apache-maven-3.0.4 version

4. JDK environment: JDK 1.7.0 _ 51

II. Environment Construction

1. Prepare the Tomcat source code Environment

A. decompress the atat7.0.69 source code package.

B. Convert tomcat7.0.69 to a Maven project and addPom. xmlFile-For details, see the appendix "Pom. xml]

C. In the tomcat7.0.69 source code root directory, createCatalina-homeDirectory, as the Tomcat running directory

D. Move the conf, logs, webapps, and work folders to the Catalina-home directory.

----- The general structure of the directory is as follows:

--- Tomcat 7.0.69

650) This. width = 650; "src =" http://s1.51cto.com/wyfs02/M01/80/1E/wKioL1c4fjzS3nEsAAAV9BEsj7s832.png "Title =" tomcat7.0.69 "alt =" wkiol1c4fjzs3nesaaav9besj7s832.png "/>

--- Catalina-Home Directory

650) This. width = 650; "src =" http://s2.51cto.com/wyfs02/M00/80/21/wKiom1c4faei9cwMAAAFdhr_8dU179.png "Title =" Catalina-home directory "alt =" wkiom1c4faei9cwmaaafdhr_8du179.png "/>


2. Import the Tomcat 7.0.69 Project

A. Import Project

650) This. width = 650; "src =" http://s1.51cto.com/wyfs02/M02/80/21/wKiom1c4gyjCiCaZAAA3w93Eb24132.png "Title =" 20.1.png" alt = "wkiom1c4gyjcicazaaa3w93eb24132.png"/>

650) This. width = 650; "src =" http://s4.51cto.com/wyfs02/M02/80/1E/wKioL1c4hGLSxLsvAAAeNEEMrNQ266.png "Title =" Copyright 5.png" alt = "wkiol1c4hglsxlsvaaaeneemrnq266.png"/>

650) This. width = 650; "src =" http://s1.51cto.com/wyfs02/M00/80/21/wKiom1c4hCSgYH90AAAW5KKodvE115.png "Title =" 0006.png" alt = "wkiom1c4hcsgyh90aaaw5kkodve115.png"/>


B. Configure Maven: File> Settings to search for "Maven"

650) This. width = 650; "src =" http://s4.51cto.com/wyfs02/M02/80/1E/wKioL1c4h5nBCU7ZAAFCwV-qRUM109.png "Title =" Copyright 6.png" alt = "wKioL1c4h5nBCU7ZAAFCwV-qRUM109.png"/>

650) This. width = 650; "src =" http://s2.51cto.com/wyfs02/M00/80/21/wKiom1c4hrWwLaCjAABp-lkOllo625.png "style =" float: none; "Title =" 2.167.png" alt = "wKiom1c4hrWwLaCjAABp-lkOllo625.png"/>

650) This. width = 650; "src =" http://s2.51cto.com/wyfs02/M00/80/1E/wKioL1c4h5zxf2KPAAD_p3yBBVI002.png "style =" float: none; "Title =" 20.8.png" alt = "wkiol1c4h5zxf2kpaad_p3ybbvi002.png"/>


C. Adjust the JDK environment and specify the sources and tests directories: File> Project Structure

650) This. width = 650; "src =" http://s1.51cto.com/wyfs02/M02/80/21/wKiom1c4jGahZmX5AAETVtMaipY398.png "style =" float: none; "Title =" 00009.png" alt = "wkiom1c4jgahzmx5aaetvtmaipy398.png"/>

650) This. width = 650; "src =" http://s2.51cto.com/wyfs02/M02/80/1E/wKioL1c4jU7RTfQ8AAFAMs8FivE646.png "style =" float: none; "Title =" 00010.png" alt = "wkiol1c4ju7rtfq8aafams8five646.png"/>

650) This. width = 650; "src =" http://s2.51cto.com/wyfs02/M00/80/21/wKiom1c4jGqislFgAADroE7Ijmo838.png "style =" float: none; "Title =" 00011.png" alt = "wkiom1c4jgqislfgaadroe7ijmo838.png"/>

650) This. width = 650; "src =" http://s2.51cto.com/wyfs02/M00/80/21/wKiom1c4jGzjUvNbAAFGlExzDLo089.png "style =" float: none; "Title =" 00012.png" alt = "wkiom1c4jgzjuvnbaafglexzdlo089.png"/>


B. Set SRC Test

C. Set startup

Iii. FAQs


PS: to be continued

This article from the "Spring blossom" blog, please be sure to keep this source http://spring1984.blog.51cto.com/8721305/1773750

Build a runtime environment based on intellij idea 15.0.2 tomcat7.0.69 source code

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.