CAMEL-23820: support custom directories in YAML DSL validator plugin#24234
Conversation
Add a 'directories' parameter to the camel-yaml-dsl-validator-maven-plugin that allows users to specify additional directories to scan for YAML files, beyond the default Maven resource directories. Both relative and absolute paths are supported. Signed-off-by: Otavio Rodolfo Piske <angusyoung@gmail.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
davsclaus
left a comment
There was a problem hiding this comment.
Thanks for the contribution — clean PR with good test coverage.
One issue to fix before merging:
Documentation typo: the <artifactId> in the new XML example is camel-yaml-dsl-validate-maven-plugin but the actual artifactId is camel-yaml-dsl-validator-maven-plugin (missing r in "validator"). Users copy-pasting this example won't resolve the plugin.
Otherwise looks good to me.
This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.
|
There are uncommitted changes |
Fix 'camel-yaml-dsl-validate-maven-plugin' -> 'camel-yaml-dsl-validator-maven-plugin' in all XML examples (2 pre-existing + 1 new) and sync the generated docs copy at docs/user-manual/. Signed-off-by: Otavio Rodolfo Piske <angusyoung@gmail.com>
|
Thanks for catching both issues. Fixed the Claude Code on behalf of Otavio Rodolfo Piske |
|
🧪 CI tested the following changed modules:
✅ POM dependency changes: targeted tests included Modules affected by dependency changes (2)
All tested modules (2 modules)
|
Summary
Add a
directoriesparameter to thecamel-yaml-dsl-validator-maven-pluginthat allows users to specify additional directories to scan for YAML files, beyond the default Maven resource directories.This addresses CAMEL-23820, where the plugin only supported files in Maven resource directories, preventing usage in projects that store YAML routes in other locations.
Changes
directoriesparameter (@Parameter(property = "camel.directories")) accepting a list of directory pathsartifactIdtypo in doc examples (camel-yaml-dsl-validate-maven-plugin->camel-yaml-dsl-validator-maven-plugin)docs/user-manual/.camel.yamlextension filteringTest plan
ValidateMojoTest)mvn verify)mvnd -Dquickly clean install)Claude Code on behalf of Otavio Rodolfo Piske