davsclaus commented on code in PR #30792:
URL: https://github.com/apache/camel/pull/30792#discussion_r4696537321
##########
dsl/camel-jbang/camel-jbang-run/src/main/java/org/apache/camel/dsl/jbang/run/common/PluginExporter.java:
##########
@@ -47,6 +47,26 @@ default Set<String> getDependencies(RuntimeType runtimeType)
{
return Collections.emptySet();
}
+ /**
+ * Provide dependencies to remove from the exported project. They are
removed after the dependencies of the routes,
+ * of {@code --dep} and of all plugins are collected, and before the
project files are generated.
+ * <p>
+ * An entry is matched by groupId:artifactId against the dependencies as
collected, whatever notation ({@code mvn:},
+ * {@code camel:} or plain groupId:artifactId) and version either side
uses. A Camel component is named
+ * {@code org.apache.camel:camel-x} (or {@code camel:x}), not by the
artifact of the runtime: an entry such as
+ * {@code org.apache.camel.quarkus:camel-quarkus-x} or a Spring Boot
{@code camel-x-starter} does not match. A
Review Comment:
Nit: `org.apache.camel.quarkus:camel-quarkus-x` does match when a plugin
added that GA itself (matching is on the dependencies as collected). It only
does not match a component that comes from the routes as `camel:x`. Maybe:
```suggestion
* {@code camel:} or plain groupId:artifactId) and version either side
uses. A Camel component of the routes is
* named {@code org.apache.camel:camel-x} (or {@code camel:x}), not by
the runtime artifact: an entry such as
* {@code org.apache.camel.quarkus:camel-quarkus-x} or a Spring Boot
{@code camel-x-starter} does not match it. A
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]