Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-2135

DO378-55: Alternative lab instructions are incomplete

XMLWordPrintable

    • ROLE
    • en-US (English)

      URL: https://rol.redhat.com/rol/app/courses/do378-1.11/pages/ch02s07
      Reporter RHNID:
      Section: implement-review-lab - Lab: Implementing a Microservice with Quarkus
      Language: en-US (English)||
      Workaround: In addition to the dependencies listed in step 6.1, also add the following dependency to the pom.xml:

      <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-jsonb</artifactId>
      </dependency>

      Description: Currently, following step 6 does not work with the vscodium instructions (see https://training-feedback.redhat.com/browse/DO378-42 and https://training-feedback.redhat.com/browse/DO378-43 ).

      The alternative instructions provide the list of dependencies to manually add to the pom.xml, but they seem incomplete.

      On step 11, the JsonbCreator annotation cannot be resolved. Later, on trying to run the application in step 21, the application fails to start due to the same missing dependency.

       

      I was able to fix the annotation resolution by adding another dependency (in addition to the two already listed):

      <dependency>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-jsonb</artifactId>
      </dependency>
      

       

      However, Quarkus still issues a warning on startup:

      WARN [io.qua.res.com.dep.ResteasyCommonProcessor] (build-58) Quarkus detected the need of REST JSON support but you have not provided the necessary JSON extension for this. You can visit https://quarkus.io/guides/rest-json for more information on how to set one.

      Glancing at the linked guide, it appears that provides Maven archetypes for creating new projects, but doesn't really list how to add to an existing project.

       

              rht-zgutterman Zachary Gutterman
              rhn-gps-gbianco Guy Bianco
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: