You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2018/03/08 09:48:24 UTC

[incubator-servicecomb-website] 06/07: Update the group id of spring boot

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-website.git

commit 634d32308b00d49e20714b53f8a85e932d167f1d
Author: Willem Jiang <ji...@huawei.com>
AuthorDate: Thu Mar 8 17:35:28 2018 +0800

    Update the group id of spring boot
---
 _users/cn/use-servicecomb-in-spring-boot.md | 38 +++++++++++++++--------------
 _users/use-servicecomb-in-spring-boot.md    | 38 +++++++++++++++--------------
 2 files changed, 40 insertions(+), 36 deletions(-)

diff --git a/_users/cn/use-servicecomb-in-spring-boot.md b/_users/cn/use-servicecomb-in-spring-boot.md
index 8b22419..bea1a0c 100644
--- a/_users/cn/use-servicecomb-in-spring-boot.md
+++ b/_users/cn/use-servicecomb-in-spring-boot.md
@@ -35,15 +35,17 @@ redirect_from:
 
 使用SpringBoot/Cloud开发应用,在原有应用的基础上按照以下步骤进行操作,即可对接ServiceComb的SDK各组件:
 
+注意: 如果使用Java Chassis 0.5.0 以及以前的版本的,请使用io.servicecomb 作为依赖的groupId。
+
 * **步骤 1** 在pom中添加依赖管理dependencyManagement:
 
    ```xml
    <dependencyManagement>
      <dependencies>
        <dependency>
-         <groupId>io.servicecomb</groupId>
+         <groupId>org.apache.servicecomb</groupId>
          <artifactId>java-chassis-dependencies</artifactId>
-         <version>0.1.0</version>
+         <version>1.0.0-m1-SNAPSHOT</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
@@ -56,17 +58,17 @@ redirect_from:
    ```xml
    <dependency>
      <!--让服务运行于微服务sdk容器中-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-provider</artifactId>
    </dependency>
    <dependency>
      <!--使用服务中心-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-discovery</artifactId>
    </dependency>
    <dependency>
      <!--让服务运行于Spring boot embedded tomcat中-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-transport</artifactId>
    </dependency>
    <dependency>
@@ -106,7 +108,7 @@ redirect_from:
    ```java
    <dependency>
      <!--使用服务中心-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-discovery</artifactId>
    </dependency>
    ```
@@ -166,12 +168,12 @@ redirect_from:
 * **步骤 1** 在工程pom文件添加&lt;dependencyManagement&gt;节点:
 
    ```xml
-   <dependencyManagement> 
-     <dependencies> 
-       <dependency> 
-         <groupId>io.servicecomb</groupId>
+   <dependencyManagement>
+     <dependencies>
+       <dependency>
+         <groupId>org.apache.servicecomb</groupId>
          <artifactId>java-chassis-dependencies</artifactId>
-         <version>0.1.0</version>
+         <version>1.0.0-m1-SNAPSHOT</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
@@ -184,22 +186,22 @@ redirect_from:
    引入ServiceComb提供的Spring Boot依赖
 
    ```xml
-   <dependency> 
-     <groupId>io.servicecomb</groupId>
-     <artifactId>spring-boot-starter-provider</artifactId> 
+   <dependency>
+     <groupId>org.apache.servicecomb</groupId>
+     <artifactId>spring-boot-starter-provider</artifactId>
    </dependency>
    ```
 
    引入Spring Boot依赖
 
    ```xml
-   <dependency> 
+   <dependency>
      <groupId>org.springframework.boot</groupId>
-     <artifactId>spring-boot-starter-web</artifactId> 
+     <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
-   <dependency> 
+   <dependency>
      <groupId>org.springframework.boot</groupId>
-     <artifactId>spring-boot-starter-actuator</artifactId> 
+     <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    ```
 
diff --git a/_users/use-servicecomb-in-spring-boot.md b/_users/use-servicecomb-in-spring-boot.md
index 446dc09..a7e22b3 100644
--- a/_users/use-servicecomb-in-spring-boot.md
+++ b/_users/use-servicecomb-in-spring-boot.md
@@ -35,15 +35,17 @@ You can use Spring Cloud or Spring Boot to develop applications, enable services
 
 Use Spring Boot or Spring Cloud to develop applications and perform the following steps based on the original application to interconnect with the SDK components of ServiceComb.
 
+NOTE, If your java chassis version is or below 0.5.0, please use the io.servicecomb as the groupId.  
+
 * **Step 1** Add dependencyManagement to teh POM file:
 
    ```xml
    <dependencyManagement>
      <dependencies>
        <dependency>
-         <groupId>io.servicecomb</groupId>
+         <groupId>org.apache.servicecomb</groupId>
          <artifactId>java-chassis-dependencies</artifactId>
-         <version>0.1.0</version>
+         <version>1.0.0-SNAPSHOT</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
@@ -56,17 +58,17 @@ Use Spring Boot or Spring Cloud to develop applications and perform the followin
    ```xml
    <dependency>
      <!--let services run in the microservice SDK container.-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-provider</artifactId>
    </dependency>
    <dependency>
      <!--Use Service Center.-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-discovery</artifactId>
    </dependency>
    <dependency>
      <!--Let Servieces run in Spring boot embedded tomcat-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-transport</artifactId>
    </dependency>
    <dependency>
@@ -106,7 +108,7 @@ Use Spring Boot or Spring Cloud to develop applications and perform the followin
    ```java
    <dependency>
      <!--Use the configuration center-->
-     <group>io.servicecomb</group>
+     <group>org.apache.servicecomb</group>
      <artifactId>spring-boot-starter-discovery</artifactId>
    </dependency>
    ```
@@ -164,12 +166,12 @@ This section describes advantages and procedures of integrating the Spring Boot
 * **Step 1** Add the dependency Management node to the POM file.
 
    ```xml
-   <dependencyManagement> 
-     <dependencies> 
-       <dependency> 
-         <groupId>io.servicecomb</groupId>
+   <dependencyManagement>
+     <dependencies>
+       <dependency>
+         <groupId>org.apache.servicecomb</groupId>
          <artifactId>java-chassis-dependencies</artifactId>
-         <version>0.1.0</version>
+         <version>1.0.0-SNAPSHOT</version>
          <type>pom</type>
          <scope>import</scope>
        </dependency>
@@ -182,20 +184,20 @@ This section describes advantages and procedures of integrating the Spring Boot
    Import Spring Boot dependency provided by ServiceComb
 
    ```xml
-   <dependency> 
-     <groupId>io.servicecomb</groupId>
-     <artifactId>spring-boot-starter-provider</artifactId> 
+   <dependency>
+     <groupId>org.apache.servicecomb</groupId>
+     <artifactId>spring-boot-starter-provider</artifactId>
    </dependency>
    ```
 
    ```xml
-   <dependency> 
+   <dependency>
      <groupId>org.springframework.boot</groupId>
-     <artifactId>spring-boot-starter-web</artifactId> 
+     <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
-   <dependency> 
+   <dependency>
      <groupId>org.springframework.boot</groupId>
-     <artifactId>spring-boot-starter-actuator</artifactId> 
+     <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    ```
 

-- 
To stop receiving notification emails like this one, please contact
ningjiang@apache.org.