Fix macOS GitHub Actions build failures#248
Merged
Merged
Conversation
Two fixes to resolve macOS build failures in CI:
1. Upgrade setup-java from v1 to v4 with Temurin distribution
- The old v1 action doesn't properly support ARM64 macOS runners
- macos-latest now uses Apple Silicon (ARM64) machines
- v4 automatically detects architecture and installs correct JDK
2. Add MAVEN_OPTS to fix JAXP XML entity size limit errors
- Set maxGeneralEntitySizeLimit, totalEntitySizeLimit, and
entityExpansionLimit to 0 to bypass XML parsing limits
- Prevents "JAXP00010004: The accumulated size of entities
exceeded the limit" errors during p2 repository parsing
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
Fixes #247
Summary
Problem
macOS builds were failing with two errors:
JAVA_HOME environment variable is not defined correctly- caused by setup-java v1 not supporting ARM64 macOS runners (macos-latest now uses Apple Silicon)JAXP00010004: The accumulated size of entities exceeded the limit- caused by strict XML parsing limits when loading p2 repositoriesSolution
1. Upgrade setup-java action
actions/setup-java@v1toactions/setup-java@v4architecture: x64to allow auto-detection2. Add MAVEN_OPTS environment variable
MAVEN_OPTSwith XML parsing limits disabled:-Djdk.xml.maxGeneralEntitySizeLimit=0-Djdk.xml.totalEntitySizeLimit=0-Djdk.xml.entityExpansionLimit=0Test plan
🤖 Generated with Claude Code