Commit f4efcaf
springbootdemo: fix antrun phase and .mar overwrite for reliable builds
Two related fixes:
- Move antrun execution from 'install' to 'prepare-package' phase so that
'mvn package' (not just 'mvn install') assembles the .aar services, copies
axis2.xml, and creates the openapi .mar — the previous binding meant a
'mvn package -DskipTests' silently produced a stale deployment directory
- Add overwrite="true" to both .mar copy tasks so a pre-existing .mar from
a previous build is always replaced with the latest jar from .m2/repository
Applied to both springbootdemo (WildFly) and springbootdemo-tomcat11.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 08a8b2b commit f4efcaf
2 files changed
Lines changed: 6 additions & 4 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| |||
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
396 | | - | |
| 397 | + | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| |||
0 commit comments