模块说明
---jetlinks-project-template
|--bootstrap 单体项目启动模块
|--micro-services 微服务相关模块
|-----|----api-gateway-service API网关服务
|--modules 子模块
|-----|----examples 示例相关模块
|-----|-------|-----crud-examples 增删改查示例
|-----|-------|-----rule-engine-example 自定义规则引擎节点示例
在github中使用时,直接打开地址: https://github.com/jetlinks-v2/jetlinks-project-template/generate . 创建新的仓库即可.
新建仓库时选择使用模版仓库 jetlinks-project-template
git clone -o template git@github.com:jetlinks-v2/jetlinks-project-template.git {新的项目名称}
cd {新的项目名称}
#添加新的远程仓库地址
git remote add origin {项目远程仓库地址}
# 执行编译看是否正常
mvn clean compile
修改maven的settings.xml
,添加:
<servers>
<server>
<id>jetlinks</id>
<username>{用户名}</username>
<password>{密码}</password>
</server>
</servers>
项目开发建议使用maven模块化管理,在modules
目录创建相应的业务模块,然后在bootstrap
模块中引入依赖进行启动.