davsclaus opened a new pull request, #30163: URL: https://github.com/apache/camel/pull/30163
[CAMEL-27005](https://issues.apache.org/jira/browse/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 generate` installs the plugin on first use from Maven Central, the same way `camel edit` does. | launcher distribution (local build) | before | after | |---|---|---| | jars in `lib/` | 342 | 284 | | `bin.tar.gz` | 113.4 MB | 90.8 MB | ### Changes - `camel-launcher/pom.xml`: removes the `camel-jbang-plugin-generate` dependency. The commonmark pin stays: tui needs a core at least as new as its `commonmark-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 neither `GeneratePlugin` nor openapi-generator is on the launcher classpath. - Docs: the plugin section in `camel-jbang-projects.adoc` says 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-api` uses a template, not the generate plugin. - The MCP `camel_openapi_*` tools run in the separate `camel-jbang-mcp` runner, which has its own dependencies. - Kaoto doesn't call `camel generate`: its OpenAPI import is written in TypeScript. ### Tested - All 419 `camel-launcher` tests pass, 47 skipped. - I unpacked the distribution and ran it with a throwaway home: - The first `camel generate rest --input petstore-v3.json` printed `Installed plugin: generate`, wrote the REST DSL and exited with 0. - `--dto` wrote the 8 model classes through openapi-generator. - `camel plugin get` lists the plugin, and `camel --help` shows `generate`. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
