Reference Reference article: http://www.blogjava.net/TiGERTiAN/archive/2010/09/11/238250.html
First, download mvnforum-1.2.2-mvnad-1.0.1-src-20100817
Second, first load Build.xml in Myvietnam by Project-java Project from Existing Ant buildfile in Eclipse and run as---extenal Tools Con figuration), set the base directory to your source Myvietnam directory, tick targets all and compile, JRE Select 1.4, and compile to generate a jar package. Note that you do not need tothe works in the mvnforum-1.2.2-mvnad-1.0.1-src-20100817 are copied to the workspace. the directory where the generated jar package resides:Mvnforum-1.2.2-mvnad-1.0.1-src-20100817/build/build-myvietnam/lib
Third,ditto, add Mvnforum build.xml in, where his associated class library needs to be added to the Myvietnam.jar that was just generated.
Modify the Build.properties before build and modify it to your own tomcat, here is the JRE version issue, when my JRE chooses jdk1.7
deploy.localhost=F:/Program Files/apache-tomcat-7.0.41/webapps
tomcat.home=F:/Program Files/apache-tomcat-7.0.41
Also note: Modify the configuration in Build.xml to remove common and server.
<fileset dir="${tomcat.home}/common/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${tomcat.home}/server/lib">
<include name="*.jar" />
</fileset>
or download a tomcat5.x version
FourIbid., add Mvnad related items, where his associated class library needs to be added to the Myvietnam.jar and Mvnforum.jar that were just generated.
here I only build mvnforum, omit fourth step.
Five,Copy the webapp portion of the Mvnforum build to the new Web project Myforum, where the associated class library includes not only the jar packages required for the first three projects, but also the myvietnam.jar generated by the first three projects. The Mvnforum.jar file.
Six, can beMyvietnam.jar,mvnforum.jar Delete, add these two project at build path.
in this step, the development environment is set up.
From for notes (Wiz)
Mvnforum 1.2.2 Deployment in eclipse