This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new ee4a558 Fix #1300 Document SSL auto-enabled by extensions new bdf1abe Merge pull request #1378 from ppalaga/i1300 ee4a558 is described below commit ee4a558ced1eed60d286aeb1e42c3dde8bf03e7a Author: Peter Palaga <ppal...@redhat.com> AuthorDate: Thu Jun 18 16:27:09 2020 +0200 Fix #1300 Document SSL auto-enabled by extensions --- docs/modules/ROOT/pages/extensions/activemq.adoc | 6 +++ docs/modules/ROOT/pages/extensions/ahc-ws.adoc | 6 +++ docs/modules/ROOT/pages/extensions/ahc.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-ec2.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-ecs.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-eks.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-iam.adoc | 6 +++ .../modules/ROOT/pages/extensions/aws-kinesis.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-kms.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-lambda.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-s3.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-sdb.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-sns.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-sqs.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws-swf.adoc | 6 +++ .../ROOT/pages/extensions/aws-translate.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-cw.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-ddb.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-ec2.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-ecs.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-eks.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-iam.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-kms.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-s3.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-sns.adoc | 6 +++ docs/modules/ROOT/pages/extensions/aws2-sqs.adoc | 6 +++ .../ROOT/pages/extensions/aws2-translate.adoc | 6 +++ docs/modules/ROOT/pages/extensions/azure.adoc | 6 +++ docs/modules/ROOT/pages/extensions/box.adoc | 6 +++ docs/modules/ROOT/pages/extensions/consul.adoc | 6 +++ docs/modules/ROOT/pages/extensions/fhir.adoc | 6 +++ docs/modules/ROOT/pages/extensions/github.adoc | 6 +++ .../ROOT/pages/extensions/google-calendar.adoc | 6 +++ .../ROOT/pages/extensions/google-drive.adoc | 6 +++ .../modules/ROOT/pages/extensions/google-mail.adoc | 6 +++ .../ROOT/pages/extensions/google-sheets.adoc | 6 +++ docs/modules/ROOT/pages/extensions/graphql.adoc | 6 +++ docs/modules/ROOT/pages/extensions/http.adoc | 6 +++ docs/modules/ROOT/pages/extensions/influxdb.adoc | 6 +++ docs/modules/ROOT/pages/extensions/jira.adoc | 6 +++ docs/modules/ROOT/pages/extensions/kudu.adoc | 6 +++ docs/modules/ROOT/pages/extensions/olingo4.adoc | 6 +++ .../ROOT/pages/extensions/sap-netweaver.adoc | 6 +++ docs/modules/ROOT/pages/extensions/servicenow.adoc | 6 +++ docs/modules/ROOT/pages/extensions/slack.adoc | 6 +++ docs/modules/ROOT/pages/extensions/telegram.adoc | 6 +++ .../camel/quarkus/maven/CamelQuarkusExtension.java | 13 ++++- .../org/apache/camel/quarkus/maven/CqUtils.java | 15 ++++++ .../quarkus/maven/UpdateExtensionDocPageMojo.java | 55 ++++++++++++++++++++++ .../doc-templates/extension-doc-page.adoc | 8 ++++ 50 files changed, 365 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/extensions/activemq.adoc b/docs/modules/ROOT/pages/extensions/activemq.adoc index b093673..b990ed2 100644 --- a/docs/modules/ROOT/pages/extensions/activemq.adoc +++ b/docs/modules/ROOT/pages/extensions/activemq.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/ahc-ws.adoc b/docs/modules/ROOT/pages/extensions/ahc-ws.adoc index 429eeb9..2361620 100644 --- a/docs/modules/ROOT/pages/extensions/ahc-ws.adoc +++ b/docs/modules/ROOT/pages/extensions/ahc-ws.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/ahc.adoc b/docs/modules/ROOT/pages/extensions/ahc.adoc index fe8e992..6f5d53b 100644 --- a/docs/modules/ROOT/pages/extensions/ahc.adoc +++ b/docs/modules/ROOT/pages/extensions/ahc.adoc @@ -27,6 +27,12 @@ Please refer to the above link for usage and configuration details. Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. + == Additional Camel Quarkus configuration * Check the xref:user-guide/native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect diff --git a/docs/modules/ROOT/pages/extensions/aws-ec2.adoc b/docs/modules/ROOT/pages/extensions/aws-ec2.adoc index 0525814..0e206d7 100644 --- a/docs/modules/ROOT/pages/extensions/aws-ec2.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-ec2.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-ecs.adoc b/docs/modules/ROOT/pages/extensions/aws-ecs.adoc index 36d7905..eb52c5d 100644 --- a/docs/modules/ROOT/pages/extensions/aws-ecs.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-ecs.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-eks.adoc b/docs/modules/ROOT/pages/extensions/aws-eks.adoc index ed6ea7d..4bf45ee 100644 --- a/docs/modules/ROOT/pages/extensions/aws-eks.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-eks.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-iam.adoc b/docs/modules/ROOT/pages/extensions/aws-iam.adoc index be93f23..aa4a51a 100644 --- a/docs/modules/ROOT/pages/extensions/aws-iam.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-iam.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-kinesis.adoc b/docs/modules/ROOT/pages/extensions/aws-kinesis.adoc index 4327e0e..c50c8e0 100644 --- a/docs/modules/ROOT/pages/extensions/aws-kinesis.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-kinesis.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-kms.adoc b/docs/modules/ROOT/pages/extensions/aws-kms.adoc index 0d95717..644c8f3 100644 --- a/docs/modules/ROOT/pages/extensions/aws-kms.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-kms.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-lambda.adoc b/docs/modules/ROOT/pages/extensions/aws-lambda.adoc index 9e964b8..db06393 100644 --- a/docs/modules/ROOT/pages/extensions/aws-lambda.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-lambda.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-s3.adoc b/docs/modules/ROOT/pages/extensions/aws-s3.adoc index df71a18..3759987 100644 --- a/docs/modules/ROOT/pages/extensions/aws-s3.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-s3.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-sdb.adoc b/docs/modules/ROOT/pages/extensions/aws-sdb.adoc index 22be517..dd39d83 100644 --- a/docs/modules/ROOT/pages/extensions/aws-sdb.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-sdb.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-sns.adoc b/docs/modules/ROOT/pages/extensions/aws-sns.adoc index d461aab..c7f689a 100644 --- a/docs/modules/ROOT/pages/extensions/aws-sns.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-sns.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-sqs.adoc b/docs/modules/ROOT/pages/extensions/aws-sqs.adoc index 20dee90..81f0807 100644 --- a/docs/modules/ROOT/pages/extensions/aws-sqs.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-sqs.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-swf.adoc b/docs/modules/ROOT/pages/extensions/aws-swf.adoc index 0736166..9ad7242 100644 --- a/docs/modules/ROOT/pages/extensions/aws-swf.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-swf.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws-translate.adoc b/docs/modules/ROOT/pages/extensions/aws-translate.adoc index 0180e19..7620a69 100644 --- a/docs/modules/ROOT/pages/extensions/aws-translate.adoc +++ b/docs/modules/ROOT/pages/extensions/aws-translate.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-cw.adoc b/docs/modules/ROOT/pages/extensions/aws2-cw.adoc index b052ee8..5098242 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-cw.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-cw.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-ddb.adoc b/docs/modules/ROOT/pages/extensions/aws2-ddb.adoc index 0d5625d..a47d780 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-ddb.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-ddb.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-ec2.adoc b/docs/modules/ROOT/pages/extensions/aws2-ec2.adoc index 1d1c301..55abc36 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-ec2.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-ec2.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-ecs.adoc b/docs/modules/ROOT/pages/extensions/aws2-ecs.adoc index 44bbf91..39d2651 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-ecs.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-ecs.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-eks.adoc b/docs/modules/ROOT/pages/extensions/aws2-eks.adoc index 5071934..60d841b 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-eks.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-eks.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-iam.adoc b/docs/modules/ROOT/pages/extensions/aws2-iam.adoc index 54d26cd..0799f8e 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-iam.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-iam.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-kms.adoc b/docs/modules/ROOT/pages/extensions/aws2-kms.adoc index 05ce38c..ee449c3 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-kms.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-kms.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-s3.adoc b/docs/modules/ROOT/pages/extensions/aws2-s3.adoc index dc652f7..c675b67 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-s3.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-s3.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-sns.adoc b/docs/modules/ROOT/pages/extensions/aws2-sns.adoc index cd3f958..b4c30d5 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-sns.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-sns.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-sqs.adoc b/docs/modules/ROOT/pages/extensions/aws2-sqs.adoc index 0db293d..8ed1d2a 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-sqs.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-sqs.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/aws2-translate.adoc b/docs/modules/ROOT/pages/extensions/aws2-translate.adoc index 9dbe76c..da6b1bd 100644 --- a/docs/modules/ROOT/pages/extensions/aws2-translate.adoc +++ b/docs/modules/ROOT/pages/extensions/aws2-translate.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/azure.adoc b/docs/modules/ROOT/pages/extensions/azure.adoc index 76ab2f9..5ce3314 100644 --- a/docs/modules/ROOT/pages/extensions/azure.adoc +++ b/docs/modules/ROOT/pages/extensions/azure.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/box.adoc b/docs/modules/ROOT/pages/extensions/box.adoc index edfa9d1..d2efb23 100644 --- a/docs/modules/ROOT/pages/extensions/box.adoc +++ b/docs/modules/ROOT/pages/extensions/box.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/consul.adoc b/docs/modules/ROOT/pages/extensions/consul.adoc index f5cd858..48fe77c 100644 --- a/docs/modules/ROOT/pages/extensions/consul.adoc +++ b/docs/modules/ROOT/pages/extensions/consul.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/fhir.adoc b/docs/modules/ROOT/pages/extensions/fhir.adoc index a1d6419..bf4802a 100644 --- a/docs/modules/ROOT/pages/extensions/fhir.adoc +++ b/docs/modules/ROOT/pages/extensions/fhir.adoc @@ -29,6 +29,12 @@ Please refer to the above links for usage and configuration details. Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. + == Additional Camel Quarkus configuration The https://hapifhir.io/download.html[hapi-fhir] library, on which camel-fhir depends on, heavily uses reflection which affects performance in Quarkus (memory footprint, build time, CPU resources etc...). The following options are provided to improve on this: diff --git a/docs/modules/ROOT/pages/extensions/github.adoc b/docs/modules/ROOT/pages/extensions/github.adoc index ac29209..208a707 100644 --- a/docs/modules/ROOT/pages/extensions/github.adoc +++ b/docs/modules/ROOT/pages/extensions/github.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/google-calendar.adoc b/docs/modules/ROOT/pages/extensions/google-calendar.adoc index 26090c7..d8ea294 100644 --- a/docs/modules/ROOT/pages/extensions/google-calendar.adoc +++ b/docs/modules/ROOT/pages/extensions/google-calendar.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/google-drive.adoc b/docs/modules/ROOT/pages/extensions/google-drive.adoc index 513a701..e1d1222 100644 --- a/docs/modules/ROOT/pages/extensions/google-drive.adoc +++ b/docs/modules/ROOT/pages/extensions/google-drive.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/google-mail.adoc b/docs/modules/ROOT/pages/extensions/google-mail.adoc index 4b5f781..f9606dc 100644 --- a/docs/modules/ROOT/pages/extensions/google-mail.adoc +++ b/docs/modules/ROOT/pages/extensions/google-mail.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/google-sheets.adoc b/docs/modules/ROOT/pages/extensions/google-sheets.adoc index b6a2a70..e75072e 100644 --- a/docs/modules/ROOT/pages/extensions/google-sheets.adoc +++ b/docs/modules/ROOT/pages/extensions/google-sheets.adoc @@ -27,3 +27,9 @@ Please refer to the above links for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/graphql.adoc b/docs/modules/ROOT/pages/extensions/graphql.adoc index 396ed00..c57845b 100644 --- a/docs/modules/ROOT/pages/extensions/graphql.adoc +++ b/docs/modules/ROOT/pages/extensions/graphql.adoc @@ -27,6 +27,12 @@ Please refer to the above link for usage and configuration details. Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. + == Additional Camel Quarkus configuration When configuring `graphql` endpoints to reference query files from the classpath, set the following configuration diff --git a/docs/modules/ROOT/pages/extensions/http.adoc b/docs/modules/ROOT/pages/extensions/http.adoc index 0e50854..c4897f9 100644 --- a/docs/modules/ROOT/pages/extensions/http.adoc +++ b/docs/modules/ROOT/pages/extensions/http.adoc @@ -28,6 +28,12 @@ Please refer to the above links for usage and configuration details. Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. + == Additional Camel Quarkus configuration * Check the xref:user-guide/native-mode.adoc#charsets[Character encodings section] of the Native mode guide if you expect diff --git a/docs/modules/ROOT/pages/extensions/influxdb.adoc b/docs/modules/ROOT/pages/extensions/influxdb.adoc index 1b0edff..9ae63fc 100644 --- a/docs/modules/ROOT/pages/extensions/influxdb.adoc +++ b/docs/modules/ROOT/pages/extensions/influxdb.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/jira.adoc b/docs/modules/ROOT/pages/extensions/jira.adoc index b2c5ad7..0c8b986 100644 --- a/docs/modules/ROOT/pages/extensions/jira.adoc +++ b/docs/modules/ROOT/pages/extensions/jira.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/kudu.adoc b/docs/modules/ROOT/pages/extensions/kudu.adoc index b00bc07..a914179 100644 --- a/docs/modules/ROOT/pages/extensions/kudu.adoc +++ b/docs/modules/ROOT/pages/extensions/kudu.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/olingo4.adoc b/docs/modules/ROOT/pages/extensions/olingo4.adoc index 6791b20..ecaa532 100644 --- a/docs/modules/ROOT/pages/extensions/olingo4.adoc +++ b/docs/modules/ROOT/pages/extensions/olingo4.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/sap-netweaver.adoc b/docs/modules/ROOT/pages/extensions/sap-netweaver.adoc index 10e654f..3f5e72d 100644 --- a/docs/modules/ROOT/pages/extensions/sap-netweaver.adoc +++ b/docs/modules/ROOT/pages/extensions/sap-netweaver.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/servicenow.adoc b/docs/modules/ROOT/pages/extensions/servicenow.adoc index 475ae19..33589a1 100644 --- a/docs/modules/ROOT/pages/extensions/servicenow.adoc +++ b/docs/modules/ROOT/pages/extensions/servicenow.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/slack.adoc b/docs/modules/ROOT/pages/extensions/slack.adoc index 065f054..693fc37 100644 --- a/docs/modules/ROOT/pages/extensions/slack.adoc +++ b/docs/modules/ROOT/pages/extensions/slack.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/docs/modules/ROOT/pages/extensions/telegram.adoc b/docs/modules/ROOT/pages/extensions/telegram.adoc index 45c6d7a..6982806 100644 --- a/docs/modules/ROOT/pages/extensions/telegram.adoc +++ b/docs/modules/ROOT/pages/extensions/telegram.adoc @@ -26,3 +26,9 @@ Please refer to the above link for usage and configuration details. ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. diff --git a/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CamelQuarkusExtension.java b/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CamelQuarkusExtension.java index fe4014b..523c96a 100644 --- a/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CamelQuarkusExtension.java +++ b/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CamelQuarkusExtension.java @@ -21,6 +21,7 @@ import java.io.Reader; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; +import java.util.Collections; import java.util.List; import java.util.Optional; import java.util.Properties; @@ -72,7 +73,8 @@ public class CamelQuarkusExtension { runtimePom.getDescription(), props.getProperty("label"), version, - !runtimePomXmlPath.getParent().getParent().getParent().getFileName().toString().endsWith("-jvm")); + !runtimePomXmlPath.getParent().getParent().getParent().getFileName().toString().endsWith("-jvm"), + deps == null ? Collections.emptyList() : Collections.unmodifiableList(deps)); } catch (IOException | XmlPullParserException e) { throw new RuntimeException("Could not read " + runtimePomXmlPath, e); } @@ -87,6 +89,7 @@ public class CamelQuarkusExtension { private final String firstVersion; private final String name; private final boolean nativeSupported; + private final List<Dependency> dependencies; public CamelQuarkusExtension( Path runtimePomXmlPath, @@ -97,7 +100,8 @@ public class CamelQuarkusExtension { String description, String label, String version, - boolean nativeSupported) { + boolean nativeSupported, + List<Dependency> dependencies) { super(); this.runtimePomXmlPath = runtimePomXmlPath; this.camelComponentArtifactId = camelComponentArtifactId; @@ -108,6 +112,7 @@ public class CamelQuarkusExtension { this.label = label; this.version = version; this.nativeSupported = nativeSupported; + this.dependencies = dependencies; } public String getVersion() { @@ -150,4 +155,8 @@ public class CamelQuarkusExtension { return nativeSupported; } + public List<Dependency> getDependencies() { + return dependencies; + } + } diff --git a/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqUtils.java b/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqUtils.java index 222adb6..173e2c3 100644 --- a/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqUtils.java +++ b/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/CqUtils.java @@ -167,4 +167,19 @@ public class CqUtils { return description; } } + + public static Path findExtensionDirectory(Path sourceTreeRoot, String artifactId) { + if (artifactId.startsWith("camel-quarkus-support-")) { + return sourceTreeRoot.resolve("extensions-support") + .resolve(artifactId.substring("camel-quarkus-support-".length())); + } else { + final String depArtifactIdBase = artifactId.substring("camel-quarkus-".length()); + return Stream.of("extensions-core", "extensions") + .map(dir -> sourceTreeRoot.resolve(dir).resolve(depArtifactIdBase)) + .filter(Files::exists) + .findFirst() + .orElseThrow( + () -> new IllegalStateException("Could not find directory of " + depArtifactIdBase + " extension")); + } + } } diff --git a/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java b/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java index 7bf5d58..d8855d9 100644 --- a/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java +++ b/tooling/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java @@ -19,12 +19,15 @@ package org.apache.camel.quarkus.maven; import java.io.IOException; import java.io.StringWriter; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; +import java.util.stream.Stream; import freemarker.template.Configuration; import freemarker.template.TemplateMethodModelEx; @@ -32,6 +35,7 @@ import freemarker.template.TemplateModelException; import org.apache.camel.catalog.Kind; import org.apache.camel.tooling.model.ArtifactModel; import org.apache.camel.tooling.model.BaseModel; +import org.apache.maven.model.Dependency; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Mojo; @@ -39,6 +43,8 @@ import org.apache.maven.plugins.annotations.Mojo; @Mojo(name = "update-extension-doc-page", threadSafe = true) public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo { + private static final Map<String, Boolean> nativeSslActivators = new ConcurrentHashMap<>(); + @Override public void execute() throws MojoExecutionException, MojoFailureException { final Charset charset = Charset.forName(encoding); @@ -72,6 +78,8 @@ public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo { model.put("usage", loadSection(basePath, "usage.adoc", charset, null)); model.put("configuration", loadSection(basePath, "configuration.adoc", charset, null)); model.put("limitations", loadSection(basePath, "limitations.adoc", charset, null)); + model.put("activatesNativeSsl", ext.isNativeSupported() && detectNativeSsl(multiModuleProjectDirectory.toPath(), + basePath, ext.getRuntimeArtifactId(), ext.getDependencies(), nativeSslActivators)); model.put("humanReadableKind", new TemplateMethodModelEx() { @Override public Object exec(List arguments) throws TemplateModelException { @@ -98,6 +106,53 @@ public class UpdateExtensionDocPageMojo extends AbstractDocGeneratorMojo { } } + static boolean detectNativeSsl(Path sourceTreeRoot, Path basePath, String artifactId, List<Dependency> dependencies, + Map<String, Boolean> cache) { + if (cache.computeIfAbsent(artifactId, + aid -> detectNativeSsl(basePath.resolve("../deployment").toAbsolutePath().normalize()))) { + return true; + } + for (Dependency dependency : dependencies) { + if ("org.apache.camel.quarkus".equals(dependency.getGroupId()) + && !dependency.getArtifactId().endsWith("-component")) { + final String depArtifactId = dependency.getArtifactId(); + if (cache.computeIfAbsent( + depArtifactId, + aid -> detectNativeSsl( + CqUtils.findExtensionDirectory(sourceTreeRoot, depArtifactId).resolve("deployment")))) { + return true; + } + } + } + return false; + } + + static boolean detectNativeSsl(Path deploymentBasePath) { + final Path deploymentPackageDir = deploymentBasePath.resolve("src/main/java/org/apache/camel/quarkus") + .toAbsolutePath() + .normalize(); + + if (!Files.exists(deploymentPackageDir)) { + return false; + } + + try (Stream<Path> files = Files.walk(deploymentPackageDir)) { + final boolean anyMatch = files + .filter(p -> p.getFileName().toString().endsWith("Processor.java")) + .map(p -> { + try { + return new String(Files.readAllBytes(p), StandardCharsets.UTF_8); + } catch (Exception e) { + throw new RuntimeException("Could not read from " + p, e); + } + }) + .anyMatch(source -> source.contains("new ExtensionSslNativeSupportBuildItem")); + return anyMatch; + } catch (IOException e) { + throw new RuntimeException("Could not walk " + deploymentPackageDir, e); + } + } + private static String loadSection(Path basePath, String fileName, Charset charset, String default_) { Path p = basePath.resolve("src/main/doc/" + fileName); if (Files.exists(p)) { diff --git a/tooling/package-maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc b/tooling/package-maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc index 2a1b753..c286b28 100644 --- a/tooling/package-maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc +++ b/tooling/package-maven-plugin/src/main/resources/doc-templates/extension-doc-page.adoc @@ -33,6 +33,14 @@ Check the xref:user-guide/index.adoc[User guide] for more information about writ [=usage] [/#if] +[#if activatesNativeSsl ] + +== SSL in native mode + +This extension auto-enables SSL support in native mode. Hence you do not need to add +`quarkus.ssl.native=true` to your `application.properties` yourself. See also +https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide]. +[/#if] [#if configuration?? ] == Additional Camel Quarkus configuration