AppFuse 2.x? ???? ?? EE ??????? ????? ???, ??? ????? ?????.
샘플 한국어 텍스트
??
???? ??
- JDK 5 ??? ??? ?????? ????.
- MySQL 5.x? ?????? ????.
- (? ?)? SMTP server ? ?? ??? ?? hostname(??? localhost ? ??????) ? ????? mail.properties (src/main/resources ?? ??) ? ????.
- Maven 2.0.6 ??? ??? ?????? ????.

????? Eclipse?? ????? ???? ?? ?????, Candy for AppFuse ? ??????. - 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 ????? ????? ???? ??????? ??? ???.
- JAR ???? Tomcat ? ???? ?? ???? ????? ?? ???? ?? , ??? ???? ???? ????? ??(cd) ?? mvn integration-test ??? ????. ?? ??(^^)? ?? ?? ??? ??~. ???? ???? ?? ??? ???? ? 5~10? ???.
- ???? ??????? ??? ???? ?????? mvn jetty:run-war ??? ???? ??. Maven ? Jetty ??? ??????? ???? ? ?? http://localhost:8080 ?? ???? ???? ???? ??????? ? ? ?? ???.
?? modular archetype ? ?? ???, mvn jetty:run-war ??? ??? ????? web ?????? ????? ??.
?? ??? ?? ?? username/password ? admin/admin ?? ?? ??? user/user ??. - 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 ?? ??? ? ?? ??? ? ? ??.
???? ? ???? ?????? ??? ????? ??? ????.