Commit 5a4f545
fix(ci): use property-based compiler release for core and CLI isolation
PROBLEM:
- Command-line -Dmaven.compiler.release=25 overrides ALL property values in POMs
- Previous fix using ${dotcms.cli.compiler.release} in CLI POM didn't work
- CLI still inherited global override, causing Quarkus/ASM bytecode errors
SOLUTION:
- Added dotcms.core.compiler.release property (default 11) in parent POM
- Core modules reference ${dotcms.core.compiler.release} via maven.compiler.release
- CLI modules reference ${dotcms.cli.compiler.release} (default 11) directly
- Changed action to pass -Ddotcms.core.compiler.release instead of -Dmaven.compiler.release
RESULT:
- Override with -Ddotcms.core.compiler.release=25 affects only core modules
- CLI always uses release=11 (Quarkus/GraalVM compatible)
- Single Maven reactor build, no module exclusions needed
- Maintains backward compatibility (both default to 11)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a0a2f61 commit 5a4f545
File tree
2 files changed
+10
-7
lines changed- .github/actions/core-cicd/maven-job
- parent
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
243 | | - | |
| 242 | + | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
| 247 | + | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
0 commit comments