File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
.github/actions/install-mvnd Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ inputs:
13
13
description : ' Set to true to cache Maven Daemon artifacts per-platform-architecture'
14
14
required : true
15
15
default : ' true'
16
+ mvnd-connect-timeout :
17
+ description : ' The timeout (as a duration, e.g. `90 seconds`) for connecting to the Maven Daemon'
18
+ required : true
19
+ default : ' 90 seconds'
16
20
outputs :
17
21
mvnd-dir :
18
22
description : " The directory where the command mvnd is located"
@@ -64,11 +68,18 @@ runs:
64
68
if : steps.cache-mvnd.outputs.cache-hit != 'true'
65
69
shell : bash
66
70
run : unzip ${{ inputs.install-path }}/${{ env.MVND_NAME }}.zip -d ${{ inputs.install-path }}/
67
- - id : mvnd-location
71
+ - name : Show Maven Daemon version
72
+ shell : bash
73
+ run : |
74
+ ${{ inputs.install-path }}/${{ env.MVND_NAME }}/bin/mvnd -D'mvnd.connectTimeout=${{ inputs.mvnd-connect-timeout }}' --version
75
+ ${{ inputs.install-path }}/${{ env.MVND_NAME }}/bin/mvnd -D'mvnd.connectTimeout=${{ inputs.mvnd-connect-timeout }}' --status
76
+ - name : Set mvnd-dir
77
+ id : mvnd-location
68
78
shell : bash
69
79
run : |
70
80
MVND_BIN_DIR="${{ inputs.install-path }}/${{ env.MVND_NAME }}/bin"
71
81
if [ "$RUNNER_OS" == "Windows" ]; then
72
82
MVND_BIN_DIR="$(cygpath --absolute --long-name --windows $MVND_BIN_DIR)"
73
83
fi
84
+ echo "MVND_BIN_DIR=${MVND_BIN_DIR}" >> $GITHUB_ENV
74
85
echo "mvnd-dir=${MVND_BIN_DIR}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments