Skip to content

Comments

Improve XML schema validation#18581

Merged
J-N-K merged 1 commit intoopenhab:mainfrom
holgerfriedrich:pr-validation-improvement
Apr 20, 2025
Merged

Improve XML schema validation#18581
J-N-K merged 1 commit intoopenhab:mainfrom
holgerfriedrich:pr-validation-improvement

Conversation

@holgerfriedrich
Copy link
Member

@andrewfg FYI
This fixes the broken build when run in a subdirectory for a specific add-on (second issue mentioned in #18579 (comment))
Though, it still validates all xml files when run on top level with -pl for a specific add-on.

* Fix failing validation in submodules (regression, openhab#18579)
* Skip schema validation when -DskipChecks is set

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Copy link
Contributor

@andrewfg andrewfg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @holgerfriedrich :)

@andrewfg
Copy link
Contributor

@holgerfriedrich the dir element tells the plugin to scan all folders within that directory or below. So if the -pl could populate that properly it would only scan the respective sub folder..

@lsiepel lsiepel added the infrastructure Build system and Karaf related issues and PRs label Apr 20, 2025
@holgerfriedrich
Copy link
Member Author

@lsiepel FYI I will not fix the open point mentioned above in this PR. This can be merged once maintainers are fine with it.

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@J-N-K J-N-K added this to the 5.0 milestone Apr 20, 2025
@J-N-K J-N-K merged commit 6996dc8 into openhab:main Apr 20, 2025
2 checks passed
@holgerfriedrich holgerfriedrich deleted the pr-validation-improvement branch April 20, 2025 09:40
holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Apr 23, 2025
* Move validation to subprojects, skip on top level to avoid double
  executuon (regression, openhab#18579)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Apr 25, 2025
* Move validation to subprojects, skip on top level to avoid double
  executuon using a marker file (regression, openhab#18579)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
holgerfriedrich added a commit to holgerfriedrich/openhab-addons that referenced this pull request Apr 25, 2025
* Move validation to subprojects, skip on top level to avoid double
  execution using a marker file (regression, openhab#18579)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 2025
* Fix failing validation in submodules (regression, openhab#18579)
* Skip schema validation when -DskipChecks is set

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Build system and Karaf related issues and PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants