使用方法:
1.进入jeecg-cloud项目根目录 `mvn clean install`
2.构建archetype-catalog.xml `mvn archetype:crawl`
3.切换目录至空文件夹,执行命令 ` mvn archetype:generate -DarchetypeCatalog=local`创建新工程
```$xslt
3-1.需要选择一个archetype,输入number号即可,此处用到的是jeecg-gen,所以输入2
3-2.需要输入groupId
3-3.需要输入artifactId
3-4.需要输入package
3-5.确认输入y
Choose archetype:
1: local -> org.jeecgframework.cloud:jeecg-cloud-demo (beast-archetype)
2: local -> org.jeecgframework.cloud:jeecg-gen (beast-archetype)
3: local -> tech.qijin.archetype:qijin-quickstart (${artifactId})
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 2
Define value for property 'groupId': org.jeecgframework.cloud
Define value for property 'artifactId': testpro
Define value for property 'version' 1.0-SNAPSHOT: : 2.0
Define value for property 'package' org.jeecgframework.cloud: : org.jeecg.modules
Confirm properties configuration:
groupId: org.jeecgframework.cloud
artifactId: testpro
version: 2.0
package: org.jeecg.modules
Y: : y
```
----
_备注:上述第三步也可以在idea中添加archetype快速创建工程_
File --> new module --> maven
--> 勾选create from archetype
--> 点击按钮 add archetype
```$xslt
groupId:org.jeecgframework.cloud
artifactId:jeecg-gen
version:2.2.0
```
添加完成即可选中jeecg-gen,下一步创建新工程
![](https://img.kancloud.cn/6d/aa/6daab4021e4ef618846a79eecf422a8e_1243x677.png)