vert-x3 / vertx-examples

Vert.x examples
Apache License 2.0
3.55k stars 2.09k forks source link

Cannot start vertx-web server after add `spring-boot-dependencies` #456

Closed ponfee closed 6 months ago

ponfee commented 6 months ago

Questions

If add spring-boot-dependencies dependencyManagement, Java Hello world example Server started, but url http://localhost:8080/ not connectable.

Version

4.5.6

Context

project maven pom.xml

  <properties>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>2.7.18</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>io.vertx</groupId>
      <artifactId>vertx-web</artifactId>
      <version>4.5.6</version>
    </dependency>
  </dependencies>

</project>
tsegismont commented 6 months ago

Perhaps SpringBoot's BOM version forces the version of a dependency that does not work with this version of Vert.x. Anyway, this is not a Spring integration example and we cannot guarantee you can add any BOM and still make the app work.