此内容没有您所选择的语言版本。
Chapter 2. Creating the configuration quickstart project
The config-quickstart project lets you get up and running with a simple Quarkus application using Apache Maven and the Quarkus Maven plug-in. The following procedure demonstrates how you can create a Quarkus Maven project.
Procedure
In a command terminal, enter the following command to verify that Maven is using JDK 11 and that the Maven version is 3.6.3 or higher:
mvn --version
mvn --versionCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If the preceding command does not return JDK 11, add the path to JDK 11 to the PATH environment variable and enter the preceding command again.
To generate the project, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This command creates the following elements in the
./config-quickstartdirectory:- The Maven structure
-
An
org.acme.config.GreetingResourceresource -
A landing page that is accessible on
http://localhost:8080after you start the application -
Example
Dockerfilefile insrc/main/docker - The application configuration file
An associated test
NoteAlternatively, you can download a Quarkus Maven project to use in this tutorial from the Quarkus quickstart archive or clone the
Quarkus QuickstartsGit repository. The exercise is located in theconfig-quickstartdirectory.