更新时间:2025-01-09 GMT+08:00
分享

组件纳管的依赖包和版本

组件纳管的依赖包

  • spring-boot-starter-huawei包含的依赖包(代码中pom可不引入相关依赖)。
    表1 spring-boot-starter-huawei包含的依赖包

    包名groupId:artifactId

    备注

    org.springframework:spring-core

    -

    org.springframework:spring-beans

    -

    org.springframework:spring-expression

    -

    org.springframework:spring-aop

    -

    org.springframework:spring-context

    -

    org.springframework:spring-web

    -

    org.springframework:spring-webmvc

    -

    org.springframework:spring-aspects

    -

    org.springframework:spring-boot

    -

    org.springframework:spring-boot-autoconfigure

    -

    jakarta.annotation-api

    -

    org.yaml:snakeyaml

    -

    com.fasterxml.jackson.core:jackson-databind

    -

    org.projectlombok:lombok

    -

    org.apache.commons:commons-lang3

    -

    com.google.guava:guava

    -

    org.slf4j:slf4j-api

    -

    org.apache.logging.log4j:log4j-api

    -

    org.apache.logging.log4j:log4j-core

    -

    org.apache.logging.log4j:log4j-slf4j-impl

    -

    org.apache.httpcomponents:httpclient

    jdk8版本存在

    org.springdoc:springdoc-openapi-ui

    jdk8版本存在

    org.springdoc:springdoc-openapi-starter-webmvc-ui

    jdk17版本存在

    org.apache.httpcomponents.client5:httpclient5

    jdk17版本存在

    io.swagger.core.v3:swagger-core

    -

    io.swagger:swagger-core

    -

    org.springframework:spring-test

    -

    org.springframework.boot:spring-boot-test

    -

  • spring-boot-huawei-dependencies已管理的包。

    spring-boot-starter-huawei未对以下版本做实际依赖,仅在spring-boot-huawei-dependencies中做版本管理,实际使用时需在pom中显式依赖,例如:

    <dependency>
        <groupId>org.mybatis.spring.boot</groupId>
        <artifactId>mybatis-spring-boot-starter</artifactId>
    </dependency>
    

    需要注意以下事项:

    • 前提是已经在本模块(或父模块)的dependencyManagement中加入了spring-boot-huawei-dependencies或本模块(或父模块)的parent设置为spring-boot-huawei-parent。
    • 由于spring-boot-huawei-dependencies中继承了spring-boot-dependencies,故未在spring-boot-huawei-dependencies中声明版本的依赖可能来自spring-boot-dependencies, 此时若有依赖的版本不符合版本检查条件,则需要在本地pom中指定所依赖的版本。
    表2 spring-boot-huawei-dependencies已管理的包

    包名groupId:artifactId

    备注

    org.springframework:spring-framework-bom

    -

    org.springframework.security:spring-security-bom

    -

    org.springframework.boot:spring-boot-dependencies

    -

    io.netty:netty-bom

    -

    io.swagger:swagger-core

    -

    io.swagger:swagger-models

    -

    io.swagger:swagger-annotations

    -

    io.swagger.core.v3:swagger-core

    -

    org.springdoc:springdoc-openapi-ui

    jdk8版本存在

    org.springdoc:springdoc-openapi-starter-webmvc-ui

    jdk17版本存在

    org.springdoc:springdoc-openapi-starter-webflux-ui

    jdk17版本存在

    org.yaml:snakeyaml

    -

    org.projectlombok:lombok

    -

    org.apache.commons:commons-lang3

    -

    org.apache.commons:commons-pool2

    -

    org.apache.commons:commons-text

    -

    com.google.guava:guava

    -

    org.apache.httpcomponents:httpclient

    jdk8版本存在

    org.apache.httpcomponents.client5:httpclient5

    jdk17版本存在

    org.apache.httpcomponents:httpmime

    jdk8版本存在

    org.apache.logging.log4j:log4j-api

    -

    org.apache.logging.log4j:log4j-core

    -

    org.apache.logging.log4j:log4j-slf4j-impl

    -

    org.apache.logging.log4j:log4j-to-slf4j

    -

    io.micrometer:micrometer-registry-prometheus

    -

    org.json:json

    -

    com.google.code.gson:gson

    -

    com.fasterxml.jackson.core:jackson-core

    -

    com.fasterxml.jackson.core:jackson-annotations

    -

    com.fasterxml.jackson.core:jackson-databind

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-yaml

    -

    com.fasterxml.jackson.datatype:jackson-datatype-jsr310

    -

    com.fasterxml.jackson.datatype:jackson-datatype-jdk8

    -

    com.fasterxml.jackson.module:jackson-module-afterburner

    -

    com.fasterxml.jackson.module:jackson-module-parameter-names

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-csv

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-smile

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-xml

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-cbor

    -

    com.fasterxml.jackson.module:jackson-module-jaxb-annotations

    -

    net.bytebuddy:byte-buddy

    -

    net.bytebuddy:byte-buddy-agent

    -

    com.alibaba:fastjson

    -

    com.squareup.okhttp3:okhttp

    -

    com.squareup.okio:okio

    -

    org.apache.zookeeper:zookeeper

    -

    org.mariadb.jdbc:mariadb-java-client

    -

    com.alibaba:druid

    -

    com.alibaba:druid-spring-boot-starter

    -

    jaxen:jaxen

    -

    org.mybatis:mybatis-spring

    -

    org.mybatis.spring.boot:mybatis-spring-boot-starter

    -

    org.bouncycastle:bcpkix-jdk18on

    -

    com.github.ben-manes.caffeine:caffeine

    -

    com.huaweicloud:esdk-obs-java

    -

    io.projectreactor:reactor-core

    -

    org.antlr:antlr4-runtime

    -

    jakarta.annotation:jakarta.annotation-api

    -

    io.prometheus:simpleclient_common

    -

    io.prometheus:simpleclient

    -

    io.prometheus:simpleclient_tracer_otel

    -

    io.prometheus:simpleclient_tracer_otel_agent

    -

组件纳管的依赖版本

  • spring-boot-starter-huawei和spring-boot-huawei-dependencies(jdk8优选本版本):2.1.10.JDK8-RELEASE。
  • spring-boot-starter-huawei和spring-boot-huawei-dependencies(jdk17优选版本):2.1.14.JDK17-RELEASE。

优选版本依赖详情如下:

  • spring-boot-starter-huawei
    表3 spring-boot-starter-huawei版本依赖

    包名groupId:artifactId

    jdk8版本

    jdk17版本

    备注

    org.springframework:spring-core

    5.3.31

    6.0.19

    -

    org.springframework:spring-beans

    5.3.31

    6.0.19

    -

    org.springframework:spring-expression

    5.3.31

    6.0.19

    -

    org.springframework:spring-aop

    5.3.31

    6.0.19

    -

    org.springframework:spring-context

    5.3.31

    6.0.19

    -

    org.springframework:spring-web

    5.3.31

    6.0.19

    -

    org.springframework:spring-webmvc

    5.3.31

    6.0.19

    -

    org.springframework:spring-aspects

    5.3.31

    6.0.19

    -

    org.springframework:spring-boot

    5.3.31

    6.0.19

    -

    org.springframework:spring-boot-autoconfigure

    5.3.31

    6.0.19

    -

    jakarta.annotation:jakarta.annotation-api

    2.1.1

    2.1.1

    -

    org.yaml:snakeyaml

    2.2

    2.0

    -

    com.fasterxml.jackson.core:jackson-databind

    2.15.2

    2.15.2

    -

    org.projectlombok:lombok

    1.18.26

    1.18.28

    -

    org.apache.commons:commons-lang3

    3.13.0

    3.13.0

    -

    com.google.guava:guava

    32.1.2-jre

    32.1.2-jre

    -

    org.slf4j:slf4j-api

    2.18.0

    2.20.0

    -

    org.apache.logging.log4j:log4j-api

    2.18.0

    2.20.0

    -

    org.apache.logging.log4j:log4j-core

    2.18.0

    2.20.0

    -

    org.apache.logging.log4j:log4j-slf4j-impl

    2.18.0

    2.20.0

    -

    org.apache.httpcomponents:httpclient

    4.5.14

    -

    jdk8版本存在

    org.springdoc:springdoc-openapi-ui

    1.6.9

    -

    jdk8版本存在

    org.springdoc:springdoc-openapi-starter-webmvc-ui

    -

    2.2.0

    jdk17版本存在

    org.apache.httpcomponents.client5:httpclient5

    -

    5.2.1

    jdk17版本存在

    io.swagger.core.v3:swagger-core

    2.2.8

    2.2.8

    -

    io.swagger:swagger-core

    1.6.6

    1.6.6

    -

    org.springframework:spring-test

    5.3.31

    6.0.19

    -

    org.springframework.boot:spring-boot-test

    2.7.18

    3.1.6

    -

  • spring-boot-huawei-dependencies
    表4 spring-boot-huawei-dependencies版本依赖

    包名groupId:artifactId

    jdk8版本

    jdk17版本

    备注

    org.springframework:spring-framework-bom

    5.3.31

    6.0.19

    -

    org.springframework.security:spring-security-bom

    5.8.8

    6.2.3

    -

    org.springframework.boot:spring-boot-dependencies

    2.7.18

    3.1.6

    -

    io.netty:netty-bom

    4.1.109.Final

    4.1.109.Final

    -

    io.swagger:swagger-core

    1.6.6

    1.6.6

    -

    io.swagger:swagger-models

    1.6.6

    1.6.6

    -

    io.swagger:swagger-annotations

    1.6.6

    1.6.6

    -

    io.swagger.core.v3:swagger-core

    2.2.8

    2.2.8

    -

    org.springdoc:springdoc-openapi-ui

    1.6.9

    -

    jdk8版本存在

    org.springdoc:springdoc-openapi-starter-webmvc-ui

    -

    2.2.0

    jdk17版本存在

    org.springdoc:springdoc-openapi-starter-webflux-ui

    -

    2.2.0

    jdk17版本存在

    org.yaml:snakeyaml

    2.2

    2.0

    -

    org.projectlombok:lombok

    1.18.26

    1.18.28

    -

    org.apache.commons:commons-lang3

    3.13.0

    3.13.0

    -

    org.apache.commons:commons-pool2

    2.11.1

    2.11.1

    -

    org.apache.commons:commons-text

    1.10.0

    1.10.0

    -

    com.google.guava:guava

    32.1.2-jre

    32.1.2-jre

    -

    org.apache.httpcomponents:httpclient

    4.5.14

    -

    jdk8版本存在

    org.apache.httpcomponents.client5:httpclient5

    -

    5.2.1

    jdk17版本存在

    org.apache.httpcomponents:httpmime

    4.5.14

    -

    jdk8版本存在

    org.apache.logging.log4j:log4j-api

    2.18.0

    2.20.0

    -

    org.apache.logging.log4j:log4j-core

    2.18.0

    2.20.0

    -

    org.apache.logging.log4j:log4j-slf4j-impl

    2.18.0

    2.20.0

    -

    org.apache.logging.log4j:log4j-to-slf4j

    2.18.0

    2.20.0

    -

    io.micrometer:micrometer-registry-prometheus

    1.10.1

    1.10.1

    -

    org.json:json

    20231013

    20231013

    -

    com.google.code.gson:gson

    2.9.1

    2.10.1

    -

    com.fasterxml.jackson.core:jackson-core

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.core:jackson-annotations

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.core:jackson-databind

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-yaml

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.datatype:jackson-datatype-jsr310

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.datatype:jackson-datatype-jdk8

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.module:jackson-module-afterburner

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.module:jackson-module-parameter-names-

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-csv

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-smile

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-xml

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.dataformat:jackson-dataformat-cbor

    2.15.2

    2.15.2

    -

    com.fasterxml.jackson.module:jackson-module-jaxb-annotations

    2.15.2

    2.15.2

    -

    net.bytebuddy:byte-buddy

    1.12.10

    1.14.6

    -

    net.bytebuddy:byte-buddy-agent

    1.12.10

    1.14.6

    -

    com.alibaba:fastjson

    1.2.83

    2.0.39

    -

    com.squareup.okhttp3:okhttp

    4.11.0

    4.11.0

    -

    com.squareup.okio:okio

    3.4.0

    3.4.0

    -

    org.apache.zookeeper:zookeeper

    3.7.1

    3.9.2

    -

    org.mariadb.jdbc:mariadb-java-client

    3.0.5

    3.0.5

    -

    com.alibaba:druid

    1.2.10

    1.2.18

    -

    com.alibaba:druid-spring-boot-starter

    1.2.9

    1.2.15

    -

    jaxen:jaxen

    2.0.0

    2.0.0

    -

    org.mybatis:mybatis-spring

    2.0.7

    2.1.0

    -

    org.mybatis.spring.boot:mybatis-spring-boot-starter

    2.2.2

    3.0.1

    -

    org.bouncycastle:bcpkix-jdk18on

    1.75

    1.75

    -

    com.github.ben-manes.caffeine:caffeine

    2.9.3

    3.1.8

    -

    com.huaweicloud:esdk-obs-java

    3.23.3

    3.23.3

    -

    io.projectreactor:reactor-core

    3.4.18

    3.5.11

    -

    org.antlr:antlr4-runtime

    4.9.2

    4.13.1

    -

    jakarta.annotation:jakarta.annotation-api

    2.1.1

    2.1.1

    -

    io.prometheus:simpleclient_common

    0.16.0

    0.16.0

    -

    io.prometheus:simpleclient

    0.16.0

    0.16.0

    -

    io.prometheus:simpleclient_tracer_otel

    0.16.0

    0.16.0

    -

    io.prometheus:simpleclient_tracer_otel_agent

    0.16.0

    0.16.0

    -

相关文档