Commit d1b7091
committed
Skip CLI npm ci when tests are skipped
Address review comment on PR #137 (discussion_r3165129538): the
install-nodejs-cli-dependencies execution previously ran on every
invocation of generate-test-resources because it was only guarded by
${skip.test.harness}. That made non-test builds (e.g. mvn package
-DskipTests, mvn deploy -Dmaven.test.skip=true) require npm and
network access unnecessarily.
Introduce a new ${skip.cli.install} property that defaults to
${skip.test.harness} but is forced to true when -DskipTests=true or
-Dmaven.test.skip=true is set, via two auto-activated profiles. Wire
the install-nodejs-cli-dependencies execution's <skip> to this new
property.1 parent 1461106 commit d1b7091
1 file changed
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
292 | 303 | | |
293 | 304 | | |
294 | 305 | | |
295 | | - | |
| 306 | + | |
296 | 307 | | |
297 | 308 | | |
298 | 309 | | |
| |||
657 | 668 | | |
658 | 669 | | |
659 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
660 | 704 | | |
661 | 705 | | |
662 | 706 | | |
| |||
0 commit comments