Are the SDKs of All Supported Programming Languages Released to the Maven Repository?
Currently, only the Java SDK has been released to the Maven repository (https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/).
The following are the Maven configuration items for adding the java-sdk-core dependency:
<dependency>
<groupId>com.huawei.apigateway</groupId>
<artifactId>java-sdk-core</artifactId>
<version>3.0.10</version>
</dependency>
If you build a project with Maven, modify the settings.xml file by adding the following content:
- Add the following content to the profiles section:
<profile> <id>MyProfile</id> <repositories> <repository> <id>HuaweiCloudSDK</id> <url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>HuaweiCloudSDK</id> <url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> - Add the following content to the mirrors section:
<mirror> <id>huaweicloud</id> <mirrorOf>*</mirrorOf> <url>https://mirrors.huaweicloud.com/repository/maven/</url> </mirror> - Add the activeProfiles tag to activate the configurations.
<activeProfiles> <activeProfile>MyProfile</activeProfile> </activeProfiles>
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.