Commit 134bdcea by 郭旭

教案修改

parent a84edb41
## 后端项目下载运行 ## 后端项目下载运行
...@@ -43,6 +43,83 @@ http://114.115.138.98:9497/gjjs-book/assets/videos/engineering-settings.mp4 ...@@ -43,6 +43,83 @@ http://114.115.138.98:9497/gjjs-book/assets/videos/engineering-settings.mp4
maven配置,选择本地的maven仓库和settings.xml配置文件 maven配置,选择本地的maven仓库和settings.xml配置文件
![](../assets/images/backendconfig1.png) ![](../assets/images/backendconfig1.png)
**注意:项目POM文件已配置远程仓库,需要在settings.xml中增加配置。**
servers元素中配置如下
```xml
<servers>
<!-- server
| Specifies the authentication information to use when connecting to a
particular server, identified by
| a unique name within the system (referred to by the
'id' attribute below).
|
| NOTE: You should either specify username/password OR
privateKey/passphrase, since these pairings are
| used together.
|
<server>
<id>deploymentRepo</id>
<username>repouser</username>
<password>repopwd</password>
</server>
-->
<server>
<id>brilliance-virtual</id>
<username>root</username>
<password>AP5SLUTDKxS4F2RWgF297T636Hn</password>
</server>
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
<privateKey>/path/to/private/key</privateKey>
<passphrase>optional; leave empty if not
used.</passphrase>
</server>
-->
</servers>
```
mirrors元素中配置如下
```xml
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The
repository that
| this mirror serves has an ID that matches the mirrorOf element of this
mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique
across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>brilliance-virtual</id>
<mirrorOf>*</mirrorOf>
<name>brilliance-virtual</name>
<url>http://114.115.138.98:9620/artifactory/brilliance-virtual/</url>
</mirror>
<!-- <mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror> -->
<!-- <mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror> -->
</mirrors>
```
编译内存设置,建议根据自己电脑内存实际情况进行配置,推荐2048 编译内存设置,建议根据自己电脑内存实际情况进行配置,推荐2048
![](../assets/images/backendconfig2.png) ![](../assets/images/backendconfig2.png)
...@@ -60,7 +137,7 @@ http://114.115.138.98:9497/gjjs-book/assets/videos/engineering-settings.mp4 ...@@ -60,7 +137,7 @@ http://114.115.138.98:9497/gjjs-book/assets/videos/engineering-settings.mp4
#### 项目编译 #### 项目编译
**注意!!!** **注意!!!**
第一次项目搭建进行到这里,用mvn install进行项目编译会报错,因为项目之前开发的交易相关的resource、service、vo进行了提交,但manager等一些需要bd转换过来的代码没有受git管理,大家到这里先不用管,等到后面步骤bd代码下载后并进行代码转换后就不会报错了,可以先跳过后端剩下步骤去进行 ”3BD代码的下载“, “4转换工具下载” 等后续流程 第一次项目搭建进行到这里,构建项目时编译会报错,因为项目之前开发的交易相关的resource、service、vo进行了提交,但manager等一些需要bd转换过来的代码没有受git管理,需要下载bdproject代码后使用bd工具编译后生成缺少的代码,可以先进行 ”BD代码下载“, “转换工具下载” 等后续流程
![](../assets/images/backendinstall1.png) ![](../assets/images/backendinstall1.png)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment