Java Chassis Version Upgrade Reference
- Java chassis earlier than 2.1.3 is used to the ServiceComb engine.
- 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>
- 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>
- The CSE SDK needs to be introduced using the following dependencies:
- Upgrade the version to 2.1.3 or later.
- 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>
- 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.
- Modify Maven Dependency Management.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot