0

I get an error when I try to create a new Quarkus project and select some extensions. But when the project is created I get this error in each extension that I selected during creation of the project.

<dependencies>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-hibernate-orm</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-smallrye-reactive-messaging-amqp</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-narayana-jta</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-resteasy-jackson</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-jdbc-postgresql</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-arc</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-resteasy</artifactId>
    </dependency>
    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-junit5</artifactId>
        <scope>test</scope>
    </dependency>

All same error :

Multiple annotations found at this line:

  • Project build error: 'dependencies.dependency.version' for io.quarkus:quarkus-hibernate-orm:jar is missing.
  • 'dependencies.dependency.version' for io.quarkus:quarkus-hibernate-orm:jar is missing.
Jeroen Steenbeeke
  • 3,884
  • 5
  • 17
  • 26
kinzkowski
  • 23
  • 6
  • 1
    does this help https://stackoverflow.com/questions/17325163/dependencies-dependency-version-is-missing-error-but-version-is-managed-in-pa? –  Jul 07 '21 at 17:17
  • no, but thx... I just solve the problem.. Run the comand mvn clean install -U – kinzkowski Jul 07 '21 at 22:11

2 Answers2

1

Looks like you are missing the Quarkus BOM, allowing you to omit the version on the different Quarkus dependencies.

Have a look at the getting started guide

It will look something like this

    <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-universe-bom</artifactId>
        <version>${quarkus.platform.version}</version>
        <type>pom</type>
        <scope>import</scope>
    </dependency>
Paul Whelan
  • 16,574
  • 12
  • 50
  • 83
0

I just solve the problem.. Run the comand

mvn clean install -U

Thanks

kinzkowski
  • 23
  • 6