【原创翻译】AppFuse 2.0 快速起步【AppFuse文档-4】
本文简述如何快速上手,开始使用AppFuse 2.0
翻译: 陈海青(josonchen)
2007.10.22
英文版网址:http://appfuse.org/display/APF/AppFuse+QuickStart
【原创翻译】AppFuse 2.0 快速起步【AppFuse文档-4】
本文简述如何快速上手,开始使用AppFuse 2.0
翻译: 陈海青(josonchen)
2007.10.22
英文版网址:http://appfuse.org/display/APF/AppFuse+QuickStart
Added by Matt Raible, last edited by Matt Raible on Sep 18, 2007 10:18
在建立原型过程中,是会看到一些警告信息输出。如果在输出信息的末尾看到了“BUILD SUCCESSFUL”字样,那就意味着你的项目建立成功了。 |
Archetype | Command |
JSF Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Spring MVC Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Struts 2 Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Tapestry Basic | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
JSF Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Spring MVC Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Struts 2 Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Tapestry Modular | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
Core (backend only) | mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/releases-DarchetypeVersion=2.0 -DgroupId=com.mycompany.app -DartifactId=myproject |
关于MySQL 安全性 使用不设置口令的MySQL会导致系统不安全。一旦建立了数据库,可以使用以下命令来设置root用户的口令:mysql --user=root --pass='' mysql -e "update user set password=password('newpw') where user='root'; flush privileges;" AppFuse默认使用root用户和空口令,可以编辑项目的pom.xml文件(位于文件末尾)的和 属性,来设置相应的值 |
默认的管理用户的用户名和口令是dmin/admin,常规用户是user/user。 |
开发环境 |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/59745/viewspace-144091/ ,如需转载,请注明出处,否则将追究法律责任。