This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch CAMEL-27980-doc-slips
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/CAMEL-27980-doc-slips by this
push:
new 2c4202d3da31 chore: docs - dsl-modeline page moves to the modeline
deprecation (CAMEL-28011)
2c4202d3da31 is described below
commit 2c4202d3da31748101a56db4c41d299d893f4a54
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Dec 1 23:16:04 2026 +0100
chore: docs - dsl-modeline page moves to the modeline deprecation
(CAMEL-28011)
Reverts the dsl-modeline page text of this PR: CAMEL-28011 deprecates
modeline and has the
page with the replacements.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../apache/camel/catalog/docs/dsl-modeline.adoc | 50 +---------------------
.../src/main/docs/dsl-modeline.adoc | 50 +---------------------
2 files changed, 4 insertions(+), 96 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dsl-modeline.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dsl-modeline.adoc
index 646163617e11..b4fe310fe726 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dsl-modeline.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/dsl-modeline.adoc
@@ -13,51 +13,5 @@
== Camel CLI
-The Camel CLI supports
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] in the
-`//DEPS` comment style: a route file can name the extra Maven dependencies it
needs, and `camel run` downloads them and
-adds them to the classpath.
-
-A `//DEPS` line is a comment, so it is written in the comment style of the
file. In a Java route:
-
-[source,java]
-----
-//DEPS com.example:my-library:1.0
-
-import org.apache.camel.builder.RouteBuilder;
-
-public class MyRoute extends RouteBuilder {
-
- @Override
- public void configure() throws Exception {
- from("timer:tick")
- .to("log:tick");
- }
-}
-----
-
-And in a YAML route, behind `#`:
-
-[source,yaml]
-----
-#//DEPS com.example:my-library:1.0
-#//DEPS com.example:other-library:2.1
-
-- route:
- from:
- uri: timer:tick
- steps:
- - to:
- uri: log:tick
-----
-
-The rules:
-
-* Each dependency is a Maven coordinate `groupId:artifactId:version`. One line
can name several, separated by spaces.
-* A coordinate that ends with `@pom` (a BOM in JBang) is skipped.
-* A coordinate can use a JVM system property as `${name}` or
`${name:default}`, as JBang does. Without a default, the
- system property must be set, or the route fails to load.
-* Every line of the file is read, not only the first lines.
-
-Modelines are on with `camel run` (the `--modeline` option, `true` by default)
and in the `dev` profile of Camel Main
-(`camel.main.modeline`). An exported Spring Boot or Quarkus project does not
use them: add the dependencies to its
-`pom.xml` instead.
+There is support for
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] using the `//DEPS` comments style,
+when using Camel CLI.
diff --git a/dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc
b/dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc
index 646163617e11..b4fe310fe726 100644
--- a/dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc
+++ b/dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc
@@ -13,51 +13,5 @@
== Camel CLI
-The Camel CLI supports
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] in the
-`//DEPS` comment style: a route file can name the extra Maven dependencies it
needs, and `camel run` downloads them and
-adds them to the classpath.
-
-A `//DEPS` line is a comment, so it is written in the comment style of the
file. In a Java route:
-
-[source,java]
-----
-//DEPS com.example:my-library:1.0
-
-import org.apache.camel.builder.RouteBuilder;
-
-public class MyRoute extends RouteBuilder {
-
- @Override
- public void configure() throws Exception {
- from("timer:tick")
- .to("log:tick");
- }
-}
-----
-
-And in a YAML route, behind `#`:
-
-[source,yaml]
-----
-#//DEPS com.example:my-library:1.0
-#//DEPS com.example:other-library:2.1
-
-- route:
- from:
- uri: timer:tick
- steps:
- - to:
- uri: log:tick
-----
-
-The rules:
-
-* Each dependency is a Maven coordinate `groupId:artifactId:version`. One line
can name several, separated by spaces.
-* A coordinate that ends with `@pom` (a BOM in JBang) is skipped.
-* A coordinate can use a JVM system property as `${name}` or
`${name:default}`, as JBang does. Without a default, the
- system property must be set, or the route fails to load.
-* Every line of the file is read, not only the first lines.
-
-Modelines are on with `camel run` (the `--modeline` option, `true` by default)
and in the `dev` profile of Camel Main
-(`camel.main.modeline`). An exported Spring Boot or Quarkus project does not
use them: add the dependencies to its
-`pom.xml` instead.
+There is support for
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] using the `//DEPS` comments style,
+when using Camel CLI.