Use local schema for add-on JAXB generation - #5757
Merged
Merged
Conversation
* Add an XML catalog for the add-on JAXB schema generation. * Resolve the config-description schema from the local core module. This prevent build failures when openhab.org is unavailable and reduces requests during builds. It follows the same approach already used by the org.openhab.core.thing bundle. Signed-off-by: Wouter Born <github@maindrain.net>
kaikreuzer
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The build log of #5720 shows that JAXB/XJC timed out while downloading:
The failed import subsequently caused errors such as:
This PR adds an XML catalog to
org.openhab.core.addonso that the schema is resolved from the localorg.openhab.core.config.coremodule instead.This follows the same approach already used by the
org.openhab.core.thingbundle.Benefits
openhab.orgis temporarily unavailable.openhab.orgduring CI and local builds.Testing
The change can be tested easily by building the bundle without network access, or by specifically blocking access to
openhab.org, and verifying that JAXB source generation still succeeds.src/generated/javabefore and after the change; no differences were found.openhab.orgis blocked.See also: #5731