slawekjaranowski commented on code in PR #54:
URL:
https://github.com/apache/maven-gh-actions-shared/pull/54#discussion_r915690628
##########
.github/workflows/maven-verify.yml:
##########
@@ -208,7 +208,12 @@ jobs:
shell: bash
- name: Clean Ensuring no file handle remains open on windows
- run: ./mvnw clean --errors --batch-mode --show-version
+ run: ./mvnw clean --errors --batch-mode --show-version
+
+ - name: clean local repo to ensure no locks remains on files
+ if: always()
+ run: rm -rf ~/.m2/
Review Comment:
cache is removed when is not used for 7 days - compiler-p case - look into
`Set up JDK` and `Post Set up JDK`
case in this test - first build did `rm ..` cache was updated with empty .m2
and next build has cache by id - but it is empty.
for test you can change someting in pom.xml so we will new cache id - cache
id for maven build is computed based on poms like `${{ runner.os }}-maven-${{
hashFiles('**/pom.xml') }}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]