You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2019/03/06 02:10:03 UTC
[servicecomb-docs] branch master updated: update
ServiceComb-Java-Chassis maven repo address
This is an automated email from the ASF dual-hosted git repository.
liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 7ffcc6d update ServiceComb-Java-Chassis maven repo address
7ffcc6d is described below
commit 7ffcc6d93737e095885befbb3ee86fa4e1fe9f11
Author: yaohaishi <ya...@huawei.com>
AuthorDate: Wed Mar 6 09:52:22 2019 +0800
update ServiceComb-Java-Chassis maven repo address
---
.../en_US/start/development-environment.md | 40 +++++++++++++++++-----
.../zh_CN/start/development-environment.md | 40 +++++++++++++++++-----
2 files changed, 64 insertions(+), 16 deletions(-)
diff --git a/java-chassis-reference/en_US/start/development-environment.md b/java-chassis-reference/en_US/start/development-environment.md
index 524014d..1e498d9 100644
--- a/java-chassis-reference/en_US/start/development-environment.md
+++ b/java-chassis-reference/en_US/start/development-environment.md
@@ -53,15 +53,39 @@ e. (Optional) Set a local repository path to hold the plug-ins and dependent cop
Here is the path D:\maven\repository. Find the settings.xml file in /conf and set localRepository to D:\maven\repository
-f. (Optional) In order to quickly download various dependencies, it is recommended to configure the central repository.
-
+f. (Optional) In order to quickly download various dependencies, it is recommended to configure the maven repository settings.
+
+In `profiles` element, the content below should be added:
+```xml
+<profile>
+ <id>MyProfile</id>
+ <repositories>
+ <repository>
+ <id>SDK</id>
+ <url>https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+</profile>
+```
+In `mirrors` element, the content below should be added:
+```xml
+<mirror>
+ <id>RepoMirror</id>
+ <mirrorOf>*,!SDK</mirrorOf>
+ <url>https://repo.huaweicloud.com/repository/maven/</url>
+</mirror>
```
- <mirror>
- <id>mirrorId</id>
- <mirrorOf>*</mirrorOf>
- <name>Mirror of central repository.</name>
- <url>http://maven.huaweicse.com/nexus/content/groups/public</url>
- </mirror>
+Add `activeProfiles` element as below:
+```xml
+<activeProfiles>
+ <activeProfile>MyProfile</activeProfile>
+</activeProfiles>
```
g. Verification
diff --git a/java-chassis-reference/zh_CN/start/development-environment.md b/java-chassis-reference/zh_CN/start/development-environment.md
index fa5a25e..5379f93 100644
--- a/java-chassis-reference/zh_CN/start/development-environment.md
+++ b/java-chassis-reference/zh_CN/start/development-environment.md
@@ -53,15 +53,39 @@ e.(可选)设置本地仓库路径,用于保存从远程仓库获取的插
这里以路径D:\maven\repository为例。在/conf中找到settings.xml文件,设置localRepository为D:\maven\repository
-f. (可选)要想项目能够快速的下载各种依赖,建议配置下中心仓库。
-
+f. (可选)要想项目能够快速的下载各种依赖,建议配置一下maven仓库地址。
+
+在`profiles`中增加如下配置:
+```xml
+<profile>
+ <id>MyProfile</id>
+ <repositories>
+ <repository>
+ <id>SDK</id>
+ <url>https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+</profile>
+```
+在`mirrors`节点中增加如下配置:
+```xml
+<mirror>
+ <id>RepoMirror</id>
+ <mirrorOf>*,!SDK</mirrorOf>
+ <url>https://repo.huaweicloud.com/repository/maven/</url>
+</mirror>
```
- <mirror>
- <id>mirrorId</id>
- <mirrorOf>*</mirrorOf>
- <name>Mirror of central repository.</name>
- <url>http://maven.huaweicse.com/nexus/content/groups/public</url>
- </mirror>
+新增`activeProfiles`配置:
+```xml
+<activeProfiles>
+ <activeProfile>MyProfile</activeProfile>
+</activeProfiles>
```
g.结果验证