Skip navigation

AppFuse QuickStart - Korean
Added by LeeDongGuk , last edited by Matt Raible on May 26, 2007 12:20

Toggle Sidebar

AppFuse 2.x? ???? ?? EE ??????? ????? ???, ??? ????? ?????.

??

  1. ??? ???? ??.
  2. ????.
  3. ???.

???? ??

  1. JDK 5 ??? ??? ?????? ????.
  2. MySQL 5.x? ?????? ????.
  3. (? ?)? SMTP server ? ?? ??? ?? hostname(??? localhost ? ??????) ? ????? mail.properties (src/main/resources ?? ??) ? ????.
  4. Maven 2.0.6 ??? ??? ?????? ????.
    ????? Eclipse?? ????? ???? ?? ?????, Candy for AppFuse ? ??????.
  5. AppFuse ? ?? ?? ??? ??? ???. ?????? ???? ??? ????? ???? ?? ???, ??? ??? ?? ???? archetype(starter project) ?? ????. ?? 'basic' ??? 'modular' ??? ??? AppFuse archtype ? ??.
    basic archetype ?? ? ????????? ????? ????? ??? ?????.
    "core" ? "web" ??? ???? ?? modular archtype ?? ??? ??? ???? ??? ?? ????? ??? ?????.
    ??? ????? ??? ??? ???? ??? ??. ??? groupId ? ???? package ???, artifactId ? ???? ???? ???? ???? ??.
    archetype ? ??? ?? ?? warning(??) ????? ??? ??????. ?? ???? BUILD SUCCESSFUL ???? ?? ??? ????? ????? ??? ????.
    Archetype ??
    JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Core
    (backend only)
    mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject

    ?? MySQL 5.x ??????? ?? ?? ?? root ??? ???? ?? ??? ? ??? ?? ??? AppFuse ? ?? ???? ? ? ??. ?? ?? ??????? ????? ????? ??? ??? ??? H2, HSQLDB, ??.. ? ?? ?????? ????? ??.

MySQL Security
???? ?? root ? MySQL ? ??????? ??? ??? ?? ????. ???? ??????? ???? ???? ?? ??? ?? root ????? ???? ??:
mysql --user=root --pass='' mysql -e "update user set password=password('newpw') where user='root'; flush privileges;"

AppFuse ? ????? "root" ? ????? ? ????? ????. ?? ?? ????? ??? ????? pom.xml ??? ???? ?? <jdbc.username> ? <jdbc.password> ???? ???? ??.

?????? ????

?? AppFuse ? ??????? ??. archetype ????? ?? ??? ??, Maven ? hibernate3 ? ???? ????? ??? dbunit ? ???? ?? ???? ??? ???. ?? ???? ? ?? Jetty ????? ????? ???? ??????? ??? ???.

  1. JAR ???? Tomcat ? ???? ?? ???? ????? ?? ???? ?? , ??? ???? ???? ????? ??(cd) ?? mvn integration-test ??? ????. ?? ??(^^)? ?? ?? ??? ??~. ???? ???? ?? ??? ???? ? 5~10? ???.
  2. ???? ??????? ??? ???? ?????? mvn jetty:run-war ??? ???? ??. Maven ? Jetty ??? ??????? ???? ? ?? http://localhost:8080 ?? ???? ???? ???? ??????? ? ? ?? ???. ?? modular archetype ? ?? ???, mvn jetty:run-war ??? ??? ????? web ?????? ????? ??.
    ?? ??? ?? ?? username/password ? admin/admin ?? ?? ??? user/user ??.
  3. AppFuse ? ?? ???? ????? mvn war:inplace ??? ??. ??? ???? WARs ? ???? ?? ???? ??? ? ?? src/main/webapp ????? ??? ???. ????? war ? ???? mvn jetty:run ? ??? ? ??. ??? ???? ???? ???? ?? ??, Jetty ? ??? ???? ??? ??? ?? ? ???. ? ??? ? ??? ???? ???? ?? "? AppFuse" ? ????? ?? ???? ?. ??? mvn war:inplace ? ???? ?? ???? ????? ?? ?? ???(cvs ? svn, ??..) ? ??? ????. ? ??? ?? ?? ???(??) ?? ??? ?? ?? ?? ?? ?? ?? ???. ?? jetty:run ? ???? OutOfMemory ??? ????, ? ??? ??? ??? ? ???.
????
AppFuse ??? ??????? ???? ?? ??? ???? ???? ???? ?? ??? ??? ?? ???? ??? ???.
?????? ?? ????Changing database settings
MySQL ?????? ??? ????, ??? pom.xml ??? ?? <jdbc.*> ?????? ???? ??. MySQL ? ?? ?? ??? ???? ?? ??? ?????? ???? ? ??? ??.

?????? ????

???? Eclipse, IDEA ?? NetBeans ? ???? ???? ??????? ??? ? ??. Eclipse ? ???, ???? ??? ???? ?? mvn install eclipse:eclipse ? ???? ???. IDEA ?, mvn idea:idea ? ???? ???. IDE ?? ??? ? ?? ??? ? ? ??.
???? ? ???? ?????? ??? ????? ??? ????.


Adaptavist Theme Builder Powered by Atlassian Confluence