java Maven wildflymavenplugin定制独立版。xml
如何使用自定义单机版。运行wildfly maven插件时的xml:start(不仅仅是添加数据源、驱动程序等等)
使用wildfly-maven-plugin-1.0.2。最终:
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
...
<execution>
<id>pre-integration-phase</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
<goal>deploy</goal>
</goals>
</execution>
...
我曾尝试使用maven resources插件复制wildfly配置文件夹中的资源(standalone.xml),但似乎wildfly:start覆盖并删除wildfly(配置)目录中的每个(其他)文件
这个任务用于jenkins集成测试,这就是为什么我需要在测试进行时运行jboss
# 1 楼答案
您可以解压缩WildFly安装,然后在WildFly maven插件中设置
jbossHome
配置元素配置示例: