编译安装过程中,执行GitStubDownloaderTest用例时,提示“Caused by: java.nio.file.NoSuchFileException: /tmp/git-contracts-1590371014299-0/.git/gc.log.lock”。
GC(Garbage Collection)运行异常导致的问题,可以通过禁用GC来解决此问题。
vim spring-cloud-contract-stub-runner/src/test/java/org/springframework/cloud/contract/stubrunner/GitStubDownloaderTests.java
map.put("gc.auto", "0"); map.put("gc.autoPackLimit", "0"); map.put("receive.autogc", "false");
./mvnw clean install -Dgpg.skip=true