Java / Quarkus Interview questions
How do you create a new Quarkus project?
The most common way to scaffold a new Quarkus project is through the Quarkus Maven plugin's create goal, or equivalently through the code.quarkus.io web-based project generator, both of which let you pick a group/artifact ID and a starting set of extensions.
mvn io.quarkus.platform:quarkus-maven-plugin:create \ -DprojectGroupId=com.example \ -DprojectArtifactId=my-app \ -Dextensions="resteasy-reactive,jdbc-postgresql"
The Quarkus CLI offers an even shorter equivalent, quarkus create app com.example:my-app, and both approaches generate a ready-to-run project with a Maven or Gradle build file, a default REST resource, test scaffolding, and a Dockerfile for both JVM and native builds already included.
From there, extensions can be added or removed at any time with quarkus extension add <name> without needing to regenerate the whole project, which keeps the initial setup decision low-stakes.
More Related questions...
