Help Center> API Gateway> FAQ> API Calling> Are the SDKs of All Supported Programming Languages Released to the Maven Repository?

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:

  1. 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>
  2. Add the following content to the mirrors section:
    <mirror>
        <id>huaweicloud</id>
        <mirrorOf>*</mirrorOf>
        <url>https://mirrors.huaweicloud.com/repository/maven/</url>
    </mirror>
  3. Add the activeProfiles tag to activate the configurations.
    <activeProfiles>
        <activeProfile>MyProfile</activeProfile>
    </activeProfiles>