Http://shengxichen.iteye.com/blog/994780
1. Check out source code, SVN address: http://svn.apache.org/repos/asf/tomcat/trunk
2. Rename build. properties. Default to build. properties.
3. Create a directory (for example, G:/myfile/other/tomcat_compile_lib_base_path) for compiling jar files required for Tomcat dependencies.
Modify base. Path in build. properties to the directory you just created:
Base. Path = G:/myfile/other/tomcat_compile_lib_base_path
///////////// In my practice, do not change the base. path here. Otherwise, an error may occur. Without modification, it will create its own directory
4. Run the command: ant ide-Eclipse
If the dependent jar package is not found, such as the geronimo-spec-jaxrpc-1.1-rc4.jar cannot,
Open the http://www.findjar.com/index.x to find the geronimo-spec-jaxrpc-1.1-rc4.jar and replace the old loc address in build. properties as follows:
Set
Jaxrpc-lib.loc =$ {base-maven.loc}/Geronimo-spec-jaxrpc/$ {jaxrpc-lib.version}/Geronimo-spec-jaxrpc-$ {jaxrpc-lib.version}. Jar
Replace
Jaxrpc-lib.loc = http://mirrors.ibiblio.org/pub/mirrors/maven/geronimo-spec/jars/geronimo-spec-jaxrpc-1.1-rc4.jar
//// // I have not encountered any changes here. You can directly use ant ide-Eclipse.
Then you can import eclipse. At the same time, you can run tomcat in the output \ build directory. Click bin \ Startup. BAT to start it;
Go to the fun bar :)