用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/citrusframework/citrus --skill citrus-set-camel-version命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | citrus-set-camel-version |
| description | # Set Camel Versions |
| metadata | {"user-invocable":true,"disable-model-invocation":true} |
Align dependency and plugin versions in this repository's Maven pom.xml files with a specific Apache Camel release version.
/citrus-set-camel-version <release.version>
Arguments:
<release.version> - A valid Apache Camel release version (e.g., 4.21.0, 4.22.0)Examples:
/citrus-set-camel-version 4.21.0
/citrus-set-camel-version 4.22.0
Extract <release.version> from the argument. It must be a valid Camel version string (e.g., 4.21.0). If missing or malformed, ask the user to provide a valid version.
Fetch the Camel parent POM for the given release version:
https://raw.githubusercontent.com/apache/camel/refs/tags/camel-<release.version>/parent/pom.xml
Extract all version properties from the <properties> section (those ending in -version or .version). If the fetch fails, report the error and stop.
Read the root pom.xml of this repository and extract all version properties from its <properties> section.
First, update the apache.camel.version property in the Citrus POM to the target release version — this is the Camel dependency itself.
Then, for each other version property in the Citrus POM, find the corresponding property in the Camel POM by matching on the dependency/library they refer to (property names may differ between projects). This includes both dependency versions and Maven plugin versions. Classify each match:
Update all outdated version properties in the root pom.xml. Do NOT touch properties where the Citrus version is already equal to or newer than the Camel version.
Search the repository for hardcoded references to the old Camel version and update them to the new version. Key locations include:
tools/jbang/src/main/java/org/citrusframework/jbang/cli/CitrusJBangMain.java — update the CAMEL_VERSION_DEFAULT constantWhen the Camel version changes, the set of available Camel test infrastructure services may change (services added or removed). Check the new Camel version for changes to camel-test-infra-* modules and update:
tools/schema-generator/src/test/resources/control/citrus-catalog-aggregate-infra-services.json and citrus-catalog-aggregate-test-actions.json — add entries for new services, remove entries for deleted servicesendpoints/citrus-camel/src/test/java/org/citrusframework/camel/actions/infra/InfraServiceUtilsTest.java — update the expected service name list in shouldListInfraServices()To discover changes, compare the Camel test infrastructure modules between the old and new version tags (e.g., list directories under test-infra/ in the Camel repository for both versions).
Run a module-specific build for any modules with changed files to verify compilation and tests pass. If tests fail due to the version updates (e.g., updated test expectations, changed APIs), fix them.
After all updates are applied, produce a summary with three sections:
mvn in the module directory where changes occurred; do NOT parallelize Maven jobs