2022-04-26 09:22:13 +08:00
|
|
|
# 二开后台环境搭建
|
|
|
|
|
|
|
|
二开后台环境的搭建主要用于平台后端平台功能无法满足的时候使用. 可以扩展以jar包的方式扩展后台的功能.
|
|
|
|
|
|
|
|
## 工具准备
|
|
|
|
|
|
|
|
- eclipse
|
|
|
|
|
|
|
|
<http://www.eclipse.org/downloads/>
|
|
|
|
|
|
|
|
- jdk
|
|
|
|
|
|
|
|
<https://www.oracle.com/java/technologies/downloads/archive/>
|
|
|
|
|
|
|
|
建议版本: jdk8u311
|
|
|
|
|
|
|
|
## 下载后台二开模板工程
|
|
|
|
|
|
|
|
<http://develop.kdayun.com:2019/kdpublic/kdayun-template/-/archive/master/kdayun-template-master.zip>
|
|
|
|
<http://139.196.40.6:2019/kdpublic/kdayun-template.git>
|
|
|
|
|
|
|
|
## eclipse导入maven工程
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
## 修改kdayun-demo工程的名称成项目的名称
|
|
|
|
|
|
|
|
- 修改完名称后入口工程内的pom.xml也要同时更新
|
|
|
|
|
|
|
|
## 配置jdk
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
## 设置maven的私有库地址
|
|
|
|
|
|
|
|
maven的版本建议:maven 3.2.5
|
|
|
|
|
|
|
|
<https://dlcdn.apache.org/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.zip>
|
|
|
|
|
|
|
|
具体maven配置过程依次如下图:
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
``` xml
|
|
|
|
<server\>
|
|
|
|
<id\>kdayun-releases\</id\>
|
|
|
|
<username\>kdayun-community</username\>
|
|
|
|
<password\>kdayun.com</password\>
|
|
|
|
</server\>
|
|
|
|
<server\>
|
|
|
|
<id\>kdayun-snapshots\</id\>
|
|
|
|
<username\>kdayun-community</username\>
|
|
|
|
<password\>kdayun.com</password\>
|
|
|
|
</server\>
|
|
|
|
<mirror\>
|
|
|
|
<id\>kdayun-releases\</id\>
|
|
|
|
<name\>kdayun maven\</name\>
|
|
|
|
<url\>http://develop.kdayun.com:8081/repository/maven-public/</url\>
|
|
|
|
<mirrorOf\>central\</mirrorOf\>
|
|
|
|
</mirror\>
|
|
|
|
```
|
|
|
|
**如果需要发布到快搭私库需要跟快搭客服联系**
|
|
|
|
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|
![]http://help.kdayun.com/static/6b34f3c63e1e4c43c5b50624f70056a3.2eafcdf8.png).
|
2022-04-26 09:22:13 +08:00
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
### 检查maven的配置是否生效
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
### 刷新mave依赖
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
## 入口jar工程增加二开工程jar的依赖
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
## 模板工作目录说明
|
|
|
|
|
2022-04-26 09:29:32 +08:00
|
|
|

|
2022-04-26 09:22:13 +08:00
|
|
|
|
|
|
|
## 发布
|
|
|
|
|
|
|
|
发布只需要利用平台的更新打包把kdayun-app.jar,
|
|
|
|
kdayun-demo.jar打包生成更新包并上传服务器执行更新.
|
|
|
|
|
|
|
|
|
|
|
|
## **注意事项**
|
|
|
|
1. maven,jdk,模板工程的目录不要放在中文或者类似D:\Program Files\ 这种带有空格目录下
|