Skip to content

Include just the maven dependencies needed for a quickstart #9432

@thesteve0

Description

@thesteve0

Description
I love the quickstarts as simple easy ways to add functionality. This is a very minor request.
All the quickstarts assume you are starting a project from scratch so they use Maven to generate the whole project. For me I already have a project and I want to just add the functionality in the quickstart to my app. So I just want to see the maven dependencies I need to get the project.

I know I can look at the POM.xml in the example project but

  1. Then I have to navigate away from the page to look
  2. I still am not sure which dependency I need to add to get the feature.

Implementation ideas
Let's take this quickstart for example
https://quarkus.io/guides/microprofile-metrics

If at the beginning, right after the Creating Maven Project sectio, add another section titled "Adding to an existing project" and then show this Maven dependency:

 <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-smallrye-metrics</artifactId>
    </dependency>

I think it is correct that all I need is smallrye-metrics to get the @timed, @counted, and @Gauge annotations

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions