Help Center/ Cloud Service Engine/ Developer Guide/ Appendix/ Java Chassis Version Upgrade Reference
Updated on 2023-11-08 GMT+08:00

Java Chassis Version Upgrade Reference

  • Java chassis earlier than 2.1.3 is used to the ServiceComb engine.
    1. The CSE SDK needs to be introduced using the following dependencies:
          <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>com.huawei.paas.cse</groupId>
                      <artifactId>cse-dependency</artifactId>
                      <version>version</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
              </dependencies>
          </dependencyManagement>
    2. Add dependencies.
      <dependency>
          <groupId>com.huawei.paas.cse</groupId>
          <artifactId>cse-solution-service-engine</artifactId>
      </dependency>

      The CSE SDK is introduced, and an extra repository needs to be added to Maven settings.

          <repositories>    
              <repository>    
                  <snapshots>    
                      <enabled>false</enabled>    
                  </snapshots>    
                  <id>huaweicloudsdk-releases</id>    
                  <name>huaweicloudsdk</name>    
                  <url>https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/</url>    
              </repository>    
          </repositories>
  • Upgrade the version to 2.1.3 or later.
    1. Modify Maven Dependency Management.
       <dependencyManagement>
          <dependencies>
            <dependency>
              <groupId>org.apache.servicecomb</groupId>
              <artifactId>java-chassis-dependencies</artifactId>
              <version>${java-chassis.version}</version>
              <type>pom</type>
              <scope>import</scope>
            </dependency>
          </dependencies>
        </dependencyManagement>
    2. Add dependencies.
      <dependency>
          <groupId>org.apache.servicecomb</groupId>
          <artifactId>solution-basic</artifactId>
      </dependency>
      <dependency>
          <groupId>org.apache.servicecomb</groupId>
          <artifactId>servicestage-environment</artifactId>
      </dependency>

      If this package depends on another software package whose groupId is com.huawei.paas.cse, delete the depended software package. For 2.1.3 or later, all software packages can be obtained from the Maven central repository. You do not need to configure the Maven repository.