我最近开始尝试将应用程序转换为使用wildfly swarm,我在Windows上使用maven,并使用wildfly swarm maven插件来:创建超级jar,启动它进行集成测试,并在构建结束时停止。蜻蜓虫群+填充临时目录的Maven
下面是来自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>
我还使用mvn wildfly-swarm:run
从命令行启动应用程序,所以我可以做一些手工测试Maven构建之外。
每次运行构建时,C:\Users\myusername\AppData\Local\Temp
都会填满大量未被拆除的数据。我不得不手动清理我的临时目录,因为它占用了我所有的磁盘空间。
有什么,我失踪?是否可以将所有这些临时数据放入项目target
目录中,以便使用mvn clean
来处理?
什么是你的'version.wildfly.swarm'? – nullpointer
我使用'2017.8.1' –