snowdrop / vertx-spring-boot

Vert.x Spring Boot integration brings different Vert.x components to Spring Boot ecosystem
Apache License 2.0
137 stars 41 forks source link

Maven import exits conflict #114

Closed Antony-Jia closed 2 years ago

Antony-Jia commented 2 years ago

I import vertx-spring-boot-starter-http image And in parent pom.xml i write like this from vertx-spring-boot pom.xml

<properties>
        <awaitility.version>4.0.3</awaitility.version>
        <!-- Align with SmallRye Reactive Utils -->
        <mutiny-reactor.version>0.12.5</mutiny-reactor.version>
        <scala-library.version>2.13.2</scala-library.version>
        <spring-boot.version>2.5.8</spring-boot.version>
        <vertx.version>4.2.2</vertx.version>
        <!-- Align with Vert.x -->
        <vertx-mutiny-clients.version>2.15.1</vertx-mutiny-clients.version>
        <!-- Align with Smallrye and Spring Boot -->
        <zookeeper.version>3.5.9</zookeeper.version>

        <maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
        <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
        <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
        <maven-failsafe-plugin.version>2.22.1</maven-failsafe-plugin.version>
        <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
        <maven-jar-plugin.version>3.1.2</maven-jar-plugin.version>
        <maven-javadoc-plugin.version>3.1.0</maven-javadoc-plugin.version>
        <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
        <maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
        <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
        <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version>

        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring-boot.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>io.vertx</groupId>
                <artifactId>vertx-dependencies</artifactId>
                <version>${vertx.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>io.smallrye.reactive</groupId>
                <artifactId>mutiny-reactor</artifactId>
                <version>${mutiny-reactor.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>io.projectreactor</groupId>
                        <artifactId>reactor-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>io.smallrye.reactive</groupId>
                <artifactId>smallrye-mutiny-vertx-core</artifactId>
                <version>${vertx-mutiny-clients.version}</version>
            </dependency>
            <dependency>
                <groupId>io.smallrye.reactive</groupId>
                <artifactId>smallrye-mutiny-vertx-mail-client</artifactId>
                <version>${vertx-mutiny-clients.version}</version>
            </dependency>
            <dependency>
                <groupId>io.smallrye.reactive</groupId>
                <artifactId>smallrye-mutiny-vertx-amqp-client</artifactId>
                <version>${vertx-mutiny-clients.version}</version>
            </dependency>
            <dependency>
                <groupId>io.smallrye.reactive</groupId>
                <artifactId>smallrye-mutiny-vertx-kafka-client</artifactId>
                <version>${vertx-mutiny-clients.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.zookeeper</groupId>
                <artifactId>zookeeper</artifactId>
                <version>${zookeeper.version}</version>
            </dependency>
            <dependency>
                <groupId>org.awaitility</groupId>
                <artifactId>awaitility</artifactId>
                <version>${awaitility.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

but i met maven conflict like this: image

how to solve or this is no impact?

jacobdotcosta commented 2 years ago

You're right, io.smallrye.reactive:smallrye-mutiny-vertx-core:2.14.2 depends on io.smallrye.reactive:mutiny:1.1.1. https://mvnrepository.com/artifact/io.smallrye.reactive/smallrye-mutiny-vertx-core/2.14.2