Repository navigation
CAMEL-27005: camel-launcher - the generate plugin installs on first use instead of being bundled - #30163
Conversation
…se instead of being bundled The generate plugin and the OpenAPI generator it uses are 58 jars and a fifth of the Camel CLI download. camel generate installs the plugin on first use, as for camel edit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 1 of 726 tested, 0 compile-only — current: 1 all testedMaveniverse Scalpel detected 1 affected modules (current approach: 1). Skip-tests mode would test 1 modules (2 direct + 0 downstream), skip tests for 0 (generated code, meta-modules) Modules Scalpel would test (1)
💡 Manual integration tests recommended:
All tested modules (3 modules, 51.4s total)Total reactor time: 51.4s
Top 20 slowest modules:
|
The embedded plugins are lambdas now (CAMEL-27045, #30199); the generate plugin stays out of the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
gnodet-bot
left a comment
There was a problem hiding this comment.
LGTM. No issues found.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
CAMEL-27005
The Camel CLI launcher no longer bundles the generate plugin. The plugin and the OpenAPI generator it uses take up a fifth of the download.
camel generateinstalls the plugin on first use from Maven Central, the same waycamel editdoes.lib/bin.tar.gzChanges
camel-launcher/pom.xml: removes thecamel-jbang-plugin-generatedependency. The commonmark pin stays: tui needs a core at least as new as itscommonmark-ext-*modules. The generate plugin, once installed, uses that core too, because its class loader is parent-first. The pom comment now explains this.CamelLauncherMain: removes generate from the embedded plugins.CamelLauncherTest: generate is not among the launcher commands, is still a plugin command (so it installs on first use), and neitherGeneratePluginnor openapi-generator is on the launcher classpath.camel-jbang-projects.adocsays which plugins the launcher bundles. The 4.24 upgrade guide has an entry about the download on first use.Who else uses generate
camel run --open-apiuses a template, not the generate plugin.camel_openapi_*tools run in the separatecamel-jbang-mcprunner, which has its own dependencies.camel generate: its OpenAPI import is written in TypeScript.Tested
camel-launchertests pass, 47 skipped.camel generate rest --input petstore-v3.jsonprintedInstalled plugin: generate, wrote the REST DSL and exited with 0.--dtowrote the 8 model classes through openapi-generator.camel plugin getlists the plugin, andcamel --helpshowsgenerate.Claude Code on behalf of davsclaus
🤖 Generated with Claude Code