Uploaded image for project: 'Quarkus Documentation'
  1. Quarkus Documentation
  2. QDOCS-517 Enhance the Maven guide
  3. QDOCS-520

Document quarkus extension add sytax more clearly

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • Quarkus-3.8.GA
    • None
    • Downstream-docs
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      https://gitlab.cee.redhat.com/quarkus-documentation/quarkus/-/merge_requests/1310#note_8014672

       
      Josef Smrcka[@jsmrcka|https://gitlab.cee.redhat.com/jsmrcka]· 50 minutes ago
      Developer
      Add reaction
      More actions
      quarkus extension add '*-agroal' works fine.

      However, be careful about a small difference in the extensions literal:

      • extension-name-end seaches the extension registry for extension with name matching the *extension-name-end pattern and then:
        • No match: prints an error message.
        • Unique match: installs the extension.
        • Multiple matches: prints an error message.
      • *extension-name-end does the same search and then:
        • No match: prints an error message.
        • Unique match: installs the extension.
        • Multiple matches: installs all the matching extensions.

      (Btw. the same behavior occurs while using Maven. Quarkus CLI calls the Maven plugin internally.)

      This does not show up in case of agroal, because there is only one *agroal extension, but e.g. with jdbc/*jdbc, the result would be very different.

      Because the ./mvnw quarkus:add-extension -Dextensions=agroal command uses agroal without wildcard, I suggest to do the same with CLI:
       quarkus extension add 'agroal'

              rdlugyhe Rolfe Dlugy-Hegwer
              rdlugyhe Rolfe Dlugy-Hegwer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: