Maven Build: Validate Thing-type XML against schema#18579
Maven Build: Validate Thing-type XML against schema#18579lsiepel merged 3 commits intoopenhab:mainfrom
Conversation
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
|
@jimtng .. for info. |
|
Ping @holgerfriedrich .. |
|
@andrewfg - do you know why sometimes builds failed with validation errors and sometimes they passed (before this PR)? |
Honestly no. Perhaps the tests were removed recently?? |
|
Good to have the validation back in the build process. Though, I have some issues with this PR: |
|
@holgerfriedrich there are 'directory' tags in the pom xml and the catalog xml files where we need to insert the right variable names to make it work. => Any thoughts? |
* Fix failing validation in submodules (regression, openhab#18579) * Skip schema validation when -DskipChecks is set Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
It took me a while to find that we use But I have not found a solution for the issue that it validates all xml files when |
* Fix failing validation in submodules (regression, #18579) * Skip schema validation when -DskipChecks is set Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Move validation to subprojects, skip on top level to avoid double executuon (regression, openhab#18579) Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
|
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/californium-removed/163625/40 |
* 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>
* 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>
* 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>
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
* Move validation to subprojects, skip on top level to avoid double execution using a marker file (regression, #18579) Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Maven Build: Validate Thing-type XML against schema Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* Fix failing validation in submodules (regression, openhab#18579) * Skip schema validation when -DskipChecks is set Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* 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>
I went to great extents to modify the thing-description xml schema to be stricter in validating semantic tags against pre-defined allowed values. But then I discovered that the standard Maven build process does not actually do any xml schema validation at all. Maybe it was deleted at some time? Anyway this PR adds back the schema validation.
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch