I've recently started trying to convert an application to use wildfly swarm, I'm on Windows, using maven, and am using the wildfly swarm maven plugin to: create the uber jar, start it up for integration tests and stop at the end of the build.
Here's a snippet from the pom:
<plugin>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-plugin</artifactId>
<version>${version.wildfly.swarm}</version>
<configuration>
<useUberJar>true</useUberJar>
<debug>8000</debug>
</configuration>
<executions>
<execution>
<id>swarm-package</id>
<phase>package</phase>
<goals>
<goal>package</goal>
</goals>
</execution>
<execution>
<id>swarm-start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>swarm-stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
I additionally use mvn wildfly-swarm:run
from the command line to start up the application so I can do some manual testing outside of the maven build.
Each time I run the build, C:\Users\myusername\AppData\Local\Temp
is filling up with large amounts of data that never seems to be torn down. I'm having to clear down my Temp directory manually every few builds as it's eating up all of my disk space.
Is there something that I'm missing? Is it possible to place all this temp data into the project target
directory so it can be deal with using mvn clean
?