Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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
<?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
[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
Attachments
Issue Links
- links to