此内容没有您所选择的语言版本。
Chapter 12. Packaging and running your Quarkus application
After you compile your Quarkus project, you can package it in a JAR file and run it from the command line.
Prerequisites
- You have compiled your Quarkus project.
Procedure
- To package your Quarkus project, enter the following command in the - rootdirectory:- ./mvnw clean package - ./mvnw clean package- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - This command produces the following JAR files in the - /targetdirectory:- 
							config-quickstart-1.0-SNAPSHOT.jar: Contains the classes and resources of the projects. This is the regular artifact produced by the Maven build.
- 
							config-quickstart-1.0-SNAPSHOT-runner.jar: Is an executable JAR file. Be aware that this file is not an uber-JAR file because the dependencies are copied into thetarget/libdirectory.
 
- 
							
- If development mode is running, press CTRL+C to stop development mode. If you do not do this, you will have a port conflict.
- To run the application, enter the following command: - java -jar target/config-quickstart-1.0-SNAPSHOT-runner.jar - java -jar target/config-quickstart-1.0-SNAPSHOT-runner.jar- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow Note- The - Class-Pathentry of the- MANIFEST.MFfile from the- runnerJAR file explicitly lists the JAR files from the- libdirectory. If you want to deploy your application from another location, you must copy the- runnerJAR file as well as the- libdirectory.