Skip to content

Commit

Permalink
Set surefire's tempdir to target (#52)
Browse files Browse the repository at this point in the history
This patch follows up on the review given for #51 and uses
maven-surefire-plugin's configuration to set the tempdir to target and
restore the behavior change introduced in that PR.

Note: This fix will only effect running the test via maven. If the
test is manually run (e.g., from an IDE), java.io.tmpdir should be
overridden manually too.

Move surefire version to managed property by overriding property
in parent POM

Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
  • Loading branch information
mureinik and ctubbsii authored Oct 2, 2021
1 parent 2fbc1b6 commit cde6562
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<projectInfoReportsVersion>3.1.2</projectInfoReportsVersion>
<sourceReleaseAssemblyDescriptor>source-release-tar</sourceReleaseAssemblyDescriptor>
<surefire.version>3.0.0-M5</surefire.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -417,6 +418,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Djava.io.tmpdir="${project.build.directory}"</argLine>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
Expand Down

0 comments on commit cde6562

Please sign in to comment.