脚手架生成程序
运行步骤
先编译一下:
- 到根目录
mvn clean install - 到Test目录执行下面语句
mvn archetype:generate -DarchetypeGroupId=com.itar.soa -DarchetypeArtifactId=biwan-framework -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=com.itar.soa -DartifactId=product -e
注: archetypeVersion是模板的version,本demo中是biwan-framework的版本,DarchetypeGroupId和DarchetypeArtifactId不要改动
这样就会在Test里面生成一个叫做product-biz的项目
参考:http://maven.apache.org/archetype/archetype-models/archetype-descriptor/archetype-descriptor.html
参考:https://maven.apache.org/guides/mini/guide-creating-archetypes.html
- Resteasy版本脚手架请切换masterSlave分支
- Springmvc版本脚手架请切换spring-mvc-version分支