Hey, everyone! I'm trying to do something like this:
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>execute-commands</goal>
</goals>
<configuration>
<execute-commands>
<batch>false</batch>
<commands>
<command>
if (outcome != success) of
/deployment=postgresql.jar:read-resource
undeploy postgresql.jar
end-if
</command>
Not too crazy, right? However, it doesn't work:
org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:execute-commands
failed: Command 'if (outcome != success) of
/deployment=postgresql.jar:read-resource
[ERROR] undeploy postgresql.jar
[ERROR] end-if' is invalid. 'read-resourceundeploypostgresql.jarend-if' is
not a valid operation name.
[ERROR] -> [Help 1]
[ERROR]
I noticed that in the documentatio of wildfly-maven-plugin, there's no
multi-line commands. Are they not supported? Is this supposed to work, or
am I doing something wrong?
Thanks!
--
Karl