File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 7575 export PATH=$M2_HOME/bin:$PATH;
7676 mvn -version;
7777 fi'
78+ - name : Setup M2_HOME Environment variable
79+ run : echo "::set-env name=M2_HOME::${PWD}/apache-maven-${{ matrix.maven_version }}"
80+ - name : Setup System Path to use the custom Maven
81+ run : echo "::add-path::${M2_HOME}/bin"
7882 - name : Cache local Maven repository
7983 uses : actions/cache@v1
8084 with :
8589 key : ${{ runner.os }}-maven-${{ matrix.maven_version }}-m2-${{ hashFiles('**/pom.xml') }}
8690 restore-keys : ${{ runner.os }}-maven-${{ matrix.maven_version }}-m2
8791 - name : Verify Setup of Maven ${{ matrix.maven_version }}
88- run : mvn -version
92+ run : bash -c "echo ${M2_HOME}; echo ${PATH}; mvn -version"
8993 - name : Install a test version with Maven
9094 run : mvn clean install -B
9195 - name : Run the local testversion with Maven
You can’t perform that action at this time.
0 commit comments