This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch 3.40.x in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit f4ba428bf3a5de11a323e04ea1f4f3f13624db52 Author: James Netherton <[email protected]> AuthorDate: Fri Nov 20 14:35:21 2026 +0000 Update outdated content in the contributor guide Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 054a0451c41b3b587db670dc2c90d3912ff2a696) --- .../contributor-guide/create-new-extension.adoc | 6 +++--- .../contributor-guide/extension-documentation.adoc | 11 ++++++++++- .../pages/contributor-guide/extension-metadata.adoc | 20 ++++++++++++++++---- docs/modules/ROOT/pages/contributor-guide/index.adoc | 8 ++++---- .../contributor-guide/promote-jvm-to-native.adoc | 3 ++- .../ROOT/pages/contributor-guide/release-guide.adoc | 12 ++++++------ 6 files changed, 41 insertions(+), 19 deletions(-) diff --git a/docs/modules/ROOT/pages/contributor-guide/create-new-extension.adoc b/docs/modules/ROOT/pages/contributor-guide/create-new-extension.adoc index 5b2b27b48b8..45b9ef2faf6 100644 --- a/docs/modules/ROOT/pages/contributor-guide/create-new-extension.adoc +++ b/docs/modules/ROOT/pages/contributor-guide/create-new-extension.adoc @@ -45,8 +45,8 @@ because the test project needs to get finished. You need to build `poms/bom` one + The `description` comes from Camel Catalog. If it looks improper or too long due to concatenation of multiple -component descriptions, you may override it by setting an explicit `<description>` in the runtime `pom.xml` -of your new extension. If you think the value coming from Camel Catalog should be changed, please +component descriptions, you may override it by setting an explicit `<description>` together with +`<cq.descriptionSync>false</cq.descriptionSync>` in the runtime `pom.xml` of your new extension. If you think the value coming from Camel Catalog should be changed, please https://issues.apache.org/jira/secure/CreateIssue!default.jspa[file a new Camel issue] and ask to fix the metadata for the given Camel component. + @@ -64,7 +64,7 @@ Check the xref:contributor-guide/extension-metadata.adoc[Extension metadata] pag 9. Complete the integration test module under `integration-tests/foo-abc`, following the xref:contributor-guide/extension-testing.adoc[Extension testing] guide. - Make sure the tests are passing both in the JVM mode (`mvn test`) and in the native mode (`mvn verify -Pnative`). + Make sure the tests are passing both in the JVM mode (`mvn test`) and in the native mode (`mvn verify -Dnative`). 10. In case of problems, consult the https://quarkus.io/guides/extension-authors-guide[Quarkus extension author's guide], ask for help in the given GitHub issue or via https://camel.zulipchat.com[Camel Quarkus chat]. diff --git a/docs/modules/ROOT/pages/contributor-guide/extension-documentation.adoc b/docs/modules/ROOT/pages/contributor-guide/extension-documentation.adoc index 95109da5bcf..69bc7a9b655 100644 --- a/docs/modules/ROOT/pages/contributor-guide/extension-documentation.adoc +++ b/docs/modules/ROOT/pages/contributor-guide/extension-documentation.adoc @@ -4,7 +4,15 @@ The documentation pages for the individual extensions are generated by the `https://github.com/apache/camel-quarkus/blob/main/tooling/maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateExtensionDocPageMojo.java[update-extension-doc-page]` mojo of `camel-quarkus-maven-plugin`. -The mojo is invoked from the runtime module of each extension. +The mojo is invoked from the deployment module of each extension (or from the runtime module if the deployment module +is not part of the build). It is skipped when building with `-Dquickly`. +To regenerate the page of a single extension, run the following command from the root of the source tree: + +[source,shell] +---- +mvn -pl extensions/foo/deployment process-classes +---- + The resulting AsciiDoc files are stored in `https://github.com/apache/camel-quarkus/blob/main/docs/modules/ROOT/pages/reference/extensions[docs/modules/ROOT/pages/reference/extensions]`. From there, the pages are published by Antora to the Camel website. @@ -27,6 +35,7 @@ The `update-extension-doc-page` mojo merges the https://raw.githubusercontent.co * `intro`: the first paragraph (optional); the content of `src/main/doc/intro.adoc` in the runtime module of the given extension. If `intro.adoc` does not exist, the `description` from the Camel Catalog is used as the first paragraph on the page. * `usage`: Camel Quarkus specific usage (optional); the content of `src/main/doc/usage.adoc` in the runtime module of the given extension. +* `usageAdvanced`: advanced usage (optional); the content of `src/main/doc/usage-advanced.adoc` in the runtime module of the given extension. * `configuration`: Camel Quarkus specific configuration options (optional); the content of `src/main/doc/configuration.adoc` in the runtime module of the given extension. * `limitations`: Camel Quarkus specific limitations (optional); the content of `src/main/doc/limitations.adoc` in the runtime module of the given extension. diff --git a/docs/modules/ROOT/pages/contributor-guide/extension-metadata.adoc b/docs/modules/ROOT/pages/contributor-guide/extension-metadata.adoc index 3c48c221660..dc3c4b6d00e 100644 --- a/docs/modules/ROOT/pages/contributor-guide/extension-metadata.adoc +++ b/docs/modules/ROOT/pages/contributor-guide/extension-metadata.adoc @@ -10,11 +10,18 @@ Here is an https://github.com/apache/camel-quarkus/blob/main/extensions/activemq [source,yaml] ---- name: "Camel ActiveMQ" -description: "Send messages to (or consume from) Apache ActiveMQ. This component extends the Camel JMS component" +description: "Send messages to (or consume from) Apache ActiveMQ 5.x. This component extends the Camel JMS component" metadata: + icon-url: "https://raw.githubusercontent.com/apache/camel-website/main/antora-ui-camel/src/img/logo-d.svg" + sponsor: "Apache Software Foundation" guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/activemq.html" categories: - "integration" + status: "stable" + integrates: + - name: "Camel" + artifact: "org.apache.camel:camel-base" + version: "${camel.version}" ---- Within Camel Quarkus, these files are 100% generated by `cq-maven-plugin`. To re-generate the @@ -32,10 +39,15 @@ sources: * `name`: comes from `pom.xml`'s `<name>` * `description`: taken from xref:manual::camel-catalog.adoc[Camel Catalog]. If the given extension contains more than one component, language or data format, their descriptions are concatenated and a warning - is issued in the log. The value from Camel Catalog can be overridden by setting a `<description>` in the - `pom.xml` of the given extension's runtime module. + is issued in the log. The description is synced to the `<description>` of the runtime module's `pom.xml`. + To use a custom description instead, set `<cq.descriptionSync>false</cq.descriptionSync>` together with an explicit + `<description>` in the runtime module's `pom.xml`. See + xref:contributor-guide/extension-documentation.adoc[Extension documentation]. * `guide`: derived from the extension's `artifactId` -* `unlisted`: `true` if the given extension is JVM only; omitted otherwise. +* `unlisted`: `true` if the given extension is JVM only, or if the `<quarkus.metadata.unlisted>` property is set to `true` + in the runtime module's `pom.xml`; omitted otherwise. +* `status`: the `<quarkus.metadata.status>` property in the runtime module's `pom.xml`. Defaults to `stable` for + native-supported extensions or `preview` for JVM-only extensions. * `keywords`: omitted unless `<quarkus.metadata.keywords>` property is available in the runtime module's `pom.xml` file. Please set explicit keywords only if the given term is both important and occurs neither in extension name nor in the description. diff --git a/docs/modules/ROOT/pages/contributor-guide/index.adoc b/docs/modules/ROOT/pages/contributor-guide/index.adoc index d3791c121a5..8c5bee6809b 100644 --- a/docs/modules/ROOT/pages/contributor-guide/index.adoc +++ b/docs/modules/ROOT/pages/contributor-guide/index.adoc @@ -9,9 +9,9 @@ * GraalVM with `native-image` command installed and `GRAALVM_HOME` environment variable set, see https://quarkus.io/guides/building-native-image[Building a native executable] section of the Quarkus documentation. -* If you are on Linux, `docker` or `podman` is sufficient for the native mode too. Use `-Pnative,docker` instead of `-Pnative` - if you choose this option. -* Java 17 or higher (Java 11 is only for Camel Quarkus < 3.0.0). +* If you are on Linux, `docker` or `podman` is sufficient for the native mode too. Add `-Ddocker` to the native build + command if you choose this option. +* Java 17 or higher. * Maven {min-maven-version}+ (unless you use the Maven Wrapper, a.k.a. `mvnw` available in the source tree). [[how-to-build]] @@ -43,7 +43,7 @@ A build with integration tests in both the JVM mode and the native mode: [source,shell] ---- -mvn clean install -Pnative +mvn clean install -Dnative ---- TIP: You may want to install and use https://github.com/apache/maven-mvnd[`mvnd` - the Maven Daemon] for faster builds. When using `mvnd` on macOS, make sure the mvnd version matches your installed Maven version (`mvn`) to avoid compilation failures due to missing dependencies. diff --git a/docs/modules/ROOT/pages/contributor-guide/promote-jvm-to-native.adoc b/docs/modules/ROOT/pages/contributor-guide/promote-jvm-to-native.adoc index 66acf2352f4..7a4f3f47f69 100644 --- a/docs/modules/ROOT/pages/contributor-guide/promote-jvm-to-native.adoc +++ b/docs/modules/ROOT/pages/contributor-guide/promote-jvm-to-native.adoc @@ -34,6 +34,7 @@ The `promote` mojo does the following for you: * Creates a native test class extending the existing JVM mode test class * Copies the rest of the extension code from `extensions-jvm/foo` to `extensions/foo` * Removes the warning build step from the processor class in the deployment module +* Adds the `camel.quarkus.nativeSince` property to the runtime module's `pom.xml` 4. Assign the integration test to an existing or new test category in `tooling/scripts/test-categories.yaml` so that it gets executed by the CI. @@ -43,7 +44,7 @@ The `promote` mojo does the following for you: [source,shell] ---- cd integration-tests/foo -mvn clean verify -Pnative +mvn clean verify -Dnative ---- + Consider shifting some tasks from runtime to build time. diff --git a/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc b/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc index 7eacb3ef48c..c356a44fa87 100644 --- a/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc +++ b/docs/modules/ROOT/pages/contributor-guide/release-guide.adoc @@ -44,7 +44,7 @@ For patch releases where a release maintenance branch already exists: [source,shell] ---- -export BRANCH=3.20.x # The maintenance branch you want to release from +export BRANCH=3.40.x # The maintenance branch you want to release from git checkout $BRANCH git reset --hard upstream/$BRANCH export VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's|-SNAPSHOT||') # the version you are releasing, e.g. 0.1.0 @@ -325,7 +325,7 @@ https://{link-quarkus-code-generator}/[{link-quarkus-code-generator}] as well as ---- git clone [email protected]:quarkusio/quarkus-platform.git ---- -* For patch releases `git checkout` the appropriate platform maintenance branch (e.g 3.20). +* For patch releases `git checkout` the appropriate platform maintenance branch (e.g. 3.40). + * Change `camel-quarkus.version` property in the Quarkus platform top level `https://github.com/quarkusio/quarkus-platform/blob/main/pom.xml[pom.xml]` to the newly released version: + @@ -394,7 +394,7 @@ The following needs to be done: + [source,markdown] ---- -Check the full [release announcement](https://camel.apache.org/blog/2021/06/camel-quarkus-release-2.0.0/) +Check the full [release announcement](https://camel.apache.org/blog/<year>/<month>/camel-quarkus-release-<version>/) ---- + * Click the green "Publish release" button at the bottom @@ -415,7 +415,7 @@ This section needs to be executed only when a Quarkus Platform release has been It should be the case most of the time. In this case, right after the newest Quarkus Platform becomes available on https://repo1.maven.org/maven2/io/quarkus/platform/quarkus-bom/[Maven Central]: -NOTE: For patch releases, the instructions that follow are mostly the same. Except that you must `git checkout` the desired maintenance branch (E.g 3.20.x), perform any updates on there and send PRs to the same upstream maintenance branch. +NOTE: For patch releases, the instructions that follow are mostly the same. Except that you must `git checkout` the desired maintenance branch (e.g. 3.40.x), perform any updates on there and send PRs to the same upstream maintenance branch. There is no need to interact with the `camel-quarkus-main` branch in this case. * Make sure all https://github.com/apache/camel-quarkus-examples/pulls[PRs] against `camel-quarkus-main` branch are merged. @@ -423,7 +423,7 @@ There is no need to interact with the `camel-quarkus-main` branch in this case. + [source,shell] ---- -NEW_PLATFORM_VERSION=... # E.g. 2.2.0.Final +NEW_PLATFORM_VERSION=... # e.g. 3.40.1 git fetch upstream git checkout camel-quarkus-main git reset --hard upstream/camel-quarkus-main @@ -445,7 +445,7 @@ git commit -m "Upgrade to Quarkus Platform $NEW_PLATFORM_VERSION" + [source,shell] ---- -NEW_CQ_VERSION=... # the recent release of Camel Quarkus; e.g. 2.2.0 +NEW_CQ_VERSION=... # the recent release of Camel Quarkus; e.g. 3.40.1 git checkout main git fetch upstream git reset --hard upstream/main
