Appfuse 2.0.2 configuration on Eclipse

Source: Internet
Author: User
Tags tomcat
Environment JDK1.6, Eclipse 3.4 JEE, maven 2.0.9, M2eclipse, MySQL I personally always use the Eclipse Birt all in one package, which is the version of 3.4.1.


Installing Appfuse

MVN archetype:create-darchetypegroupid=org.appfuse.archetypes-darchetypeartifactid=appfuse-modular-struts- Dremoterepositories=http://static.appfuse.org/releases-darchetypeversion=2.0.2-dgroupid=com.appdemo- Dartifactid=appdemo CD Appdemo mvn-dmaven.test.skip=true mvn war:inplace mvn appfuse:full-source mvn ECLIPSE:ECLIPSE-DM Aven.test.skip=true rd/s/q web\src\main\webapp\web-inf\classes rd/s/q web\src\main\webapp\web-inf\lib CD Web MVN jetty : Run

Run the above 10 steps in turn to ensure that you finally get a running appfuse, open the browser http://localhost:8080/can see

If you maven outofmemory wrong, add set maven_opts=-xmx384m-xx:permsize=48m to the first line of Maven

If your MySQL password is not empty, remember to change the value of the password inside the pom.xml after the first part.

If you do not need to start jetty at the command line, 7,8,9,10 can not run. Import the entire project directly into eclipse. A core and a Web project. If you like Maven, you can install M2eclipse, then import the MAVEN project, set MAVEN's repository location, if you don't like MAVEN, import the project directly, and then configure M2_REPO this variable just want your maven The repository directory.

join Eclipse's WTP

You should finally see 2 errors, is the Web project under the App.java file and its test file misplaced folder, you can delete it directly, if you want to start in the WTP you also have to do the following steps. Modify. setting\ Org.eclipse.wst.common.component Delete remove add modify. Classpath delete added added

(Note that above is greater than less than the sign is greater than less than the number, copy of the time note)

In the 4th step, note the following values, and finally point to your <web>/target/xxx-snapshot folder, what items you created earlier may be different, and possibly Xxx-webapp-1.0-snapshot later, Note that your directory designation is right.

The above default is the version of Tomcat 6.0 created, if you are downloading other versions of the container or different versions, modify it yourself (you can manually create a dynamic Web project yourself deploy this to see this file)

Precautions

If you are to develop this in myeclipse or WTP, remember that your modified Java code can be correctly deployed, but you modify the JSP and configuration file, remember is in the Target/xxx-snapshot directory of this file, it does not add the default source code folder.

If you really want to develop in a myeclipse or WTP environment, it is best to build a Dynamic Web project yourself, then unzip the resulting war file into the Web directory, and then manually copy all the Java files and test to the source code directory.

If you do not have to myeclipse or the WTP environment, the normal eclipse + m2eclipse plugin is actually more convenient, packaged, tested, generated code (Appgen), start jetty,

The main is to see personal habits, personally think Eclipse + m2eclipse This way is really convenient, mainly to see you like maven.

If the development process is coupled with Javarebel, the speed is really fast.

Reference Http://appfuse.org/display/APF/AppFuse+QuickStart

Appfuse's Quick Start http://appfuse.org/display/APF/Eclipse

Appfuse in Eclipse's WTP configuration http://chen7768.blogspot.com/2008/12/eclipse-34-appfuse-202.html

Appfuse in Eclipse configuration, traditional http://chen7768.blogspot.com/2008/12/run-appfuse-202-with-jpa.html

Appfuse + JPA configuration, traditional http://chen7768.blogspot.com/2008/12/run-appfuse-202-in-netbeans-65.html

Appfuse + Netbean, traditional http://chen7768.blogspot.com/2008/12/eclipse-34-appfuse-202.html

Appfuse + Eclipse Traditional

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.