jira-importer opened a new issue, #227: URL: https://github.com/apache/maven-build-cache-extension/issues/227
**[Mark Dodgson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER289574)** opened **[MBUILDCACHE-21](https://issues.apache.org/jira/browse/MBUILDCACHE-21?redirect=false)** and commented Below is a minimal pom.xml file the illustrates the problem. Specifying a surefire systemPropertyVariable for `java.io.tmpdir` to the temp folder produces an `AccessDeniedException` **example pom.xml** ```java <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>build_cache_test</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> </properties> <build> <extensions> <extension> <groupId>org.apache.maven.extensions</groupId> <artifactId>maven-build-cache-extension</artifactId> <version>1.0.0-SNAPSHOT</version> </extension> </extensions> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M5</version> <configuration> <systemPropertyVariables> <java.awt.headless>true</java.awt.headless> <java.io.tmpdir>${java.io.tmpdir}</java.io.tmpdir> </systemPropertyVariables> </configuration> </plugin> </plugins> </build> </project> ``` **Output** ```java [INFO] Using XX hash algorithm for cache [INFO] Attempting to restore project from build cache [INFO] Going to calculate checksum for project [groupId=org.example, artifactId=build_cache_test] [INFO] Scanning plugins configurations to find input files. Probing is enabled, values will be checked for presence in file system [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.246 s [INFO] Finished at: 2022-05-17T06:13:08+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to calculate checksums for build_cache_test: java.nio.file.AccessDeniedException: /tmp/tracker-extract-3-files.111 ``` --- **Remote Links:** - [GitHub Pull Request #15 ](https://github.com/apache/maven-build-cache-extension/pull/15) -- 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]
