maven构建appfuse常用命令

来源:互联网 发布:vip域名后缀可以备案 编辑:程序博客网 时间:2024/05/17 09:19

mvn appfuse:gen-model 根据数据库的表生成java类mvn appfuse:gen根据 POJOs.生成并安装Tests, DAO, Managers, Controllers and Viewsmvn appfuse:full-source把运行所需要的org.appfuse中的依赖类转换成你的包名称mvn eclipse:eclipse生成eclipse的项目的配置文件,用户可以直接把项目导入到eclipse中mvn jetty:run-war 打包并且发布你的应用程序到Jetty, 查看在 http://localhost:8080mvn appfuse:install                把生成的源代码及配置文件写入到src中mvn integration-test 启动TOMCAT(或别的服务器)进行测试mvn appfuse:remove            删除appfuse:gen.生成的代码mvn appfuse:clean                清除target下的所有内容

The Maven Hibernate3 Plugin has seven goals.
    * hibernate3:hbm2cfgxml: Generates hibernate.cfg.xml
    * hibernate3:hbm2ddl: Generates database schema.
    * hibernate3:hbm2doc: Generates HTML documentation for the database schema.
    * hibernate3:hbm2hbmxml: Generates a set of hbm.xml files
    * hibernate3:hbm2java: Generates Java classes from set of *.hbm.xml files
    * hibernate3:schema-export: Creates SQL DDL file and generates the database schema from set of *.hbm.xml files
    * hibernate3:schema-update: Updates the database schema based on the set of *.hbm.xml files


原创粉丝点击