Commit 92c5b04
authored
Native build issues (finos#2619)
* fix(calm-hub): pin MCP server to 1.12.1 to restore native image builds
quarkus-mcp-server-bom:3.34.7 (added in PR finos#2608) resolves all MCP
artifacts to 1.10.5, a downgrade from the previously pinned 1.12.0.
Version 1.10.5 predates the native-image fix added in 1.12.0
(quarkiverse/quarkus-mcp-server#684/finos#685: fix elicitation and sampling
in native image), causing both native CI workflows to fail at Quarkus
augmentation.
Add explicit dependencyManagement overrides in calm-hub/pom.xml pinning
all five MCP runtime and deployment artifacts to 1.12.1, overriding the
1.10.5 resolved by the platform BOM.
Verified: both build-native-image.sh --no-docker and
build-readonly-native-image.sh --no-docker produce BUILD SUCCESS with a
220MB native binary.
* fix(calm-hub): remove Netty version override to fix native image on x86_64
Netty 4.1.135.Final (overridden in PR finos#2608) registers
io.netty.handler.codec.compression.BrotliDecoder for link-at-build-time
in netty-codec's native-image config. On linux/x86_64 (CI), brotli4j
native libs are not on the classpath, causing a fatal unresolved method
error during native image analysis.
Quarkus 3.34.7 already manages Netty at 4.1.132.Final, which patches
CVE-2025-58057, CVE-2026-33870, and CVE-2026-33871 (all affecting
<=4.1.131.Final). The 4.1.135.Final override is unnecessary and breaks
native image compilation on x86_64 CI runners.
* fix(calm-hub): remove duplicated MCP dependencyManagement block
The five io.quarkiverse.mcp version overrides (and their comment) were
accidentally duplicated in the dependencyManagement section. Remove the
second identical copy, leaving one set pinning all MCP artifacts to 1.12.1.1 parent c75e5a1 commit 92c5b04
1 file changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
| |||
0 commit comments