這裡分類和彙總了欣宸的全部原創(含配套原始碼):https://github.com/zq2599/blog_demos
% mvn quarkus:help
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:help (default-cli) @ hello-quarkus ---
[INFO] Quarkus Platform - Quarkus Maven Plugin 2.7.3.Final
Quarkus Universe platform aggregates extensions from Quarkus Core and those
developed by the community into a single compatible and versioned set that
application developers can reference from their applications to align the
dependency versions
This plugin has 25 goals:
quarkus:add-extension
Allow adding an extension to an existing pom.xml file. Because you can add one
or several extension in one go, there are 2 mojos: add-extensions and
add-extension. Both supports the extension and extensions parameters.
quarkus:add-extensions
Allow adding extensions to an existing pom.xml file. Because you can add one
or several extension in one go, there are 2 mojos: add-extensions and
add-extension. Both supports the extension and extensions parameters.
quarkus:analyze-call-tree
Analyze call tree of a method or a class based on an existing report produced
by Substrate when using -H:+PrintAnalysisCallTree, and does a more meaningful
analysis of what is causing a type to be retained.
quarkus:build
Builds the Quarkus application.
...
mvn "io.quarkus:quarkus-maven-plugin:create" \
-DprojectGroupId="com.bolingcavalry" \
-DprojectArtifactId="hello-quarkus" \
-DprojectVersion="1.0-SNAPSHOT" \
-DclassName="HobbyResource" \
-Dpath="actions"
引數 | 預設值 | 說明 |
---|---|---|
projectGroupId | org.acme.sample | group id,GAV座標中的G |
projectArtifactId | mandatory | artifact id, GAV座標中的A |
projectVersion | 1.0.0-SNAPSHOT | version, GAV座標中的V |
platformGroupId | io.quarkus.platform | 在依賴quarkus的BOM,以及quarkus外掛時,都要指定GAV,這是G |
platformArtifactId | quarkus-bom | 在依賴quarkus的BOM,以及quarkus外掛時,都要指定GAV,這是A |
platformVersion | 2.7.1.Final | 在依賴quarkus的BOM,以及quarkus外掛時,都要指定GAV,這是V,預設值會自動更新到最新穩定版 |
className | 無預設值 | 指定後,會自動建立一個類 |
path | 無預設值 | 如果指定了className,此時再指定path的話,path會作為類的web介面的path |
extensions | 空 | 所需的quarkus外掛列表 |
quarkusRegistryClient | true | 是否聯網獲取最新的quarkus外掛列表,如果設定為false,列表只能根據BOM獲取,得不到最新的線上資料 |
(base) willdeMBP:hello-quarkus will$ mvn quarkus:info
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.1.Final:info (default-cli) @ hello-quarkus ---
[WARNING] quarkus:info goal is experimental, its options and output may change in future versions
[INFO] Looking for the newly published extensions in registry.quarkus.io
[INFO] Quarkus platform BOMs:
[INFO] io.quarkus:quarkus-bom:pom:2.7.1.Final
[INFO]
[INFO] Extensions from io.quarkus:quarkus-bom:
[INFO] io.quarkus:quarkus-arc
[INFO] io.quarkus:quarkus-resteasy
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.828 s
[INFO] Finished at: 2022-03-04T08:40:44+08:00
[INFO] ------------------------------------------------------------------------
mvn quarkus:list-platforms
% mvn quarkus:list-platforms
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:list-platforms (default-cli) @ hello-quarkus ---
[INFO] io.quarkus.platform:quarkus-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-optaplanner-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-kogito-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-qpid-jms-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-cassandra-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-amazon-services-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-camel-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-hazelcast-client::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-debezium-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-blaze-persistence-bom::pom:2.7.3.Final
[INFO] io.quarkus.platform:quarkus-google-cloud-services-bom::pom:2.7.3.Final
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
(base) willdeMBP:hello-quarkus will$ mvn quarkus:list-extensions
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.1.Final:list-extensions (default-cli) @ hello-quarkus ---
[INFO] Looking for the newly published extensions in registry.quarkus.io
[INFO] Current Quarkus extensions available:
[INFO]
[INFO] ✬ ArtifactId Extension Name
[INFO] ✬ quarkus-agroal Agroal - Database connection pool
[INFO] ✬ quarkus-amazon-lambda AWS Lambda
[INFO] ✬ quarkus-amazon-lambda-http AWS Lambda HTTP
[INFO] ✬ quarkus-amazon-lambda-rest AWS Lambda Gateway REST API
[INFO] ✬ quarkus-amazon-lambda-xray AWS Lambda X-Ray
[INFO] ✬ quarkus-apicurio-registry-avro Apicurio Registry - Avro
[INFO] ✬ quarkus-avro Apache Avro
[INFO] ✬ quarkus-awt AWT
[INFO] ✬ quarkus-azure-functions-http Azure Functions HTTP
[INFO] ✬ quarkus-cache Cache
[INFO] ✬ quarkus-config-yaml YAML Configuration
...
mvn quarkus:list-categories -Dformat=full
% mvn quarkus:list-categories -Dformat=full
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:list-categories (default-cli) @ hello-quarkus ---
[INFO] Available Quarkus extension categories:
[INFO]
[INFO] Category CategoryId Description
[INFO] Alternative languages alt-languages Support for other JVM based languages
[INFO] Alternative languages alternative-languages Support for other JVM based languages
[INFO] Business Automation business-automation Rules engine, BPM, etc
[INFO] Cloud cloud Useful for Cloud Native deployments platforms like Kubernetes and cloud providers
[INFO] Compatibility compatibility Support for alternative programming models on Quarkus
[INFO] Core core Core Quarkus components: engine, logging, etc.
[INFO] Data data Accessing and managing your data (RDBMS, NoSQL, caching, transaction management, etc)
[INFO] Integration integration Connectors to read to write from a skew of systems (file, S#, Twitter, etc)
[INFO] Messaging messaging Send and receives message to various messaging systems (AMQP, KAfka etc)
[INFO] Miscellaneous miscellaneous Mixed bag of good stuff
[INFO] Observability observability Metrics, tracing, etc
[INFO] Reactive reactive Non blocking stack and connectors
[INFO] Security security Everything you need to secure your application
[INFO] Serialization serialization Serializing and deserializing various formats
[INFO] Web web Everything you need for REST endpoints, HTTP and web formats like JSON
[INFO] gRPC grpc gRPC integration
[INFO]
[INFO] To list extensions in given category, use:
`./mvnw quarkus:list-extensions -Dcategory="categoryId"`
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
mvn quarkus:list-extensions -Dcategory="messaging"
% mvn quarkus:list-extensions -Dcategory="messaging"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:list-extensions (default-cli) @ hello-quarkus ---
[INFO] Current Quarkus extensions available:
[INFO]
[INFO] ✬ ArtifactId Extension Name
[INFO] quarkus-artemis-jms Artemis JMS
[INFO] ✬ quarkus-google-cloud-pubsub Google Cloud Pubsub
[INFO] ✬ quarkus-kafka-client Apache Kafka Client
[INFO] ✬ quarkus-kafka-streams Apache Kafka Streams
[INFO] ✬ quarkus-qpid-jms AMQP 1.0 JMS client - Apache Qpid JMS
[INFO] quarkus-rabbitmq-client RabbitMQ Client
[INFO] quarkus-reactive-messaging-http Reactive HTTP and WebSocket Connector
[INFO] ✬ quarkus-smallrye-reactive-messaging SmallRye Reactive Messaging
[INFO] ✬ quarkus-smallrye-reactive-messaging-amqp SmallRye Reactive Messaging - AMQP Connector
[INFO] ✬ quarkus-smallrye-reactive-messaging-kafka SmallRye Reactive Messaging - Kafka Connector
[INFO] ✬ quarkus-smallrye-reactive-messaging-mqtt SmallRye Reactive Messaging - MQTT Connector
[INFO] ✬ quarkus-smallrye-reactive-messaging-rabbitmq SmallRye Reactive Messaging - RabbitMQ Connector
[INFO]
[INFO] To get more information, append `-Dformat=full` to your command line.
[INFO]
[INFO] Add an extension to your project by adding the dependency to your pom.xml or use `./mvnw quarkus:add-extension -Dextensions="artifactId"`
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
mvn quarkus:add-extension -Dextensions="quarkus-jackson"
% mvn quarkus:add-extension -Dextensions="quarkus-jackson"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:add-extension (default-cli) @ hello-quarkus ---
[INFO] [SUCCESS] ✅ Extension io.quarkus:quarkus-jackson has been installed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.756 s
[INFO] Finished at: 2022-03-05T15:36:40+08:00
[INFO] ------------------------------------------------------------------------
mvn quarkus:add-extensions -Dextensions="quarkus-jdbc-mysql,quarkus-config-yaml"
quarkus:add-extensions -Dextensions="agroal"
% mvn quarkus:add-extensions -Dextensions="agroal"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:add-extensions (default-cli) @ hello-quarkus ---
[INFO] [SUCCESS] ✅ Extension io.quarkus:quarkus-agroal has been installed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.832 s
[INFO] Finished at: 2022-03-05T16:16:53+08:00
[INFO] ------------------------------------------------------------------------
% mvn quarkus:add-extension -Dextensions="jdbc"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:add-extension (default-cli) @ hello-quarkus ---
[INFO] [ERROR] ❗ Multiple extensions matching 'jdbc'
- io.quarkus:quarkus-agroal
- io.quarkus:quarkus-elytron-security-jdbc
- io.quarkus:quarkus-jdbc-db2
- io.quarkus:quarkus-jdbc-derby
- io.quarkus:quarkus-jdbc-h2
- io.quarkus:quarkus-jdbc-mariadb
- io.quarkus:quarkus-jdbc-mssql
- io.quarkus:quarkus-jdbc-mysql
- io.quarkus:quarkus-jdbc-oracle
- io.quarkus:quarkus-jdbc-postgresql
- org.kie.kogito:kogito-addons-quarkus-persistence-jdbc
- org.apache.camel.quarkus:camel-quarkus-jdbc
Be more specific e.g using the exact name or the full GAV.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.500 s
[INFO] Finished at: 2022-03-05T16:18:34+08:00
[INFO] ------------------------------------------------------------------------
[INFO] Quarkus platform BOMs:
[INFO] io.quarkus.platform:quarkus-bom:pom:2.7.3.Final
[INFO]
[INFO] Extensions from io.quarkus.platform:quarkus-bom:
[INFO] io.quarkus:quarkus-jackson
[INFO] io.quarkus:quarkus-config-yaml
[INFO] io.quarkus:quarkus-arc
[INFO] io.quarkus:quarkus-jdbc-mysql
[INFO] io.quarkus:quarkus-resteasy
[INFO] io.quarkus:quarkus-agroal
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
mvn quarkus:remove-extension -Dextensions="quarkus-jackson"
% mvn quarkus:remove-extension -Dextensions="quarkus-jackson"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:remove-extension (default-cli) @ hello-quarkus ---
[INFO] [SUCCESS] ✅ Extension io.quarkus:quarkus-jackson has been uninstalled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
mvn quarkus:remove-extensions -Dextensions="quarkus-config-yaml,quarkus-jdbc-mysql"
% mvn quarkus:remove-extensions -Dextensions="quarkus-config-yaml,quarkus-jdbc-mysql"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:remove-extensions (default-cli) @ hello-quarkus ---
[INFO] [SUCCESS] ✅ Extension io.quarkus:quarkus-config-yaml has been uninstalled
[INFO] [SUCCESS] ✅ Extension io.quarkus:quarkus-jdbc-mysql has been uninstalled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
% mvn quarkus:info
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.3.Final:info (default-cli) @ hello-quarkus ---
[WARNING] quarkus:info goal is experimental, its options and output may change in future versions
[INFO] Looking for the newly published extensions in registry.quarkus.io
[INFO] Quarkus platform BOMs:
[INFO] io.quarkus.platform:quarkus-bom:pom:2.7.3.Final
[INFO]
[INFO] Extensions from io.quarkus.platform:quarkus-bom:
[INFO] io.quarkus:quarkus-arc
[INFO] io.quarkus:quarkus-resteasy
[INFO] io.quarkus:quarkus-agroal
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
(base) willdeMBP:hello-quarkus will$ mvn quarkus:dependency-tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.bolingcavalry:hello-quarkus >-------------------
[INFO] Building hello-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- quarkus-maven-plugin:2.7.1.Final:dependency-tree (default-cli) @ hello-quarkus ---
[INFO] Quarkus application PROD mode build dependency tree:
[INFO] com.bolingcavalry:hello-quarkus:pom:1.0-SNAPSHOT
[INFO] ├─ io.quarkus:quarkus-arc-deployment:jar:2.7.1.Final (compile)
[INFO] │ ├─ io.quarkus:quarkus-core-deployment:jar:2.7.1.Final (compile)
[INFO] │ │ ├─ org.aesh:readline:jar:2.2 (compile)
[INFO] │ │ │ └─ org.fusesource.jansi:jansi:jar:1.18 (compile)
[INFO] │ │ ├─ org.aesh:aesh:jar:2.6 (compile)
[INFO] │ │ ├─ org.apache.commons:commons-lang3:jar:3.12.0 (compile)
[INFO] │ │ ├─ org.wildfly.common:wildfly-common:jar:1.5.4.Final-format-001 (compile)
...