过去,我们可以使用wildfly-maven-plugin 1.0.2.Final更新Wildfly应用服务器配置(standalone-full-ha.xml)。当我们切换到1.2.2.Final版本时,它停止工作。我们仍在使用Wildfy 8.2.1。由于deployment problems over SSL,我不得不升级插件。
这是子项目pom.xml
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<executions>
<execution>
<id>add-${project.artifactId}</id>
<phase>package</phase>
<goals>
<goal>execute-commands</goal>
</goals>
<configuration>
<execute-commands>
<scripts>
<script>${basedir}/processed/scripts/add-${project.artifactId}.cli</script>
</scripts>
</execute-commands>
</configuration>
</execution>
...
我执行了:
> mvn package -e -P nonclustered
...
[INFO] --- wildfly-maven-plugin:1.2.2.Final:execute-commands (add-jboss-security) @ jboss-security ---
[INFO] ------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------
[INFO] Total time: 6.814 s
[INFO] Finished at: 2018-10-11T14:49:03-04:00
[INFO] Final Memory: 22M/365M
[INFO] ------------------------------------------------------------------
构建成功,但配置未更新。没有错误。我尝试在线搜索以找出哪些wildfly-maven-plugin版本可与哪个Wildfly应用服务器版本一起使用,但是我找不到任何信息。