新建一个项目
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
cd myproject
在pom.xml中修改数据库的链接
这里用的是mysql5.0
端口,用户名,密码
执行
mvn jetty:run-war
在浏览器里
localhost:8080旧可以进入一个登录界面
现在可以用admin/admin,user/user登录了
下一篇将是与eclipse集成
mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories= http://static.appfuse.org/releases

cd myproject
在pom.xml中修改数据库的链接
这里用的是mysql5.0
端口,用户名,密码
执行
mvn jetty:run-war
在浏览器里
localhost:8080旧可以进入一个登录界面
现在可以用admin/admin,user/user登录了
下一篇将是与eclipse集成