Skip to content

Commit

Permalink
Set surefire's tempdir to target
Browse files Browse the repository at this point in the history
This patch follows up on the review given for revelc#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.
  • Loading branch information
mureinik committed Oct 2, 2021
1 parent 433489d commit 5172bde
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,16 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<systemPropertyVariables>
<java.io.tmpdir>${user.dir}/target</java.io.tmpdir>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
Expand Down

0 comments on commit 5172bde

Please sign in to comment.