[jboss-user] wildfly-maven-plugin: multi-line commands?

Karl Pietrzak kap4020 at gmail.com
Thu Jun 25 11:58:17 EDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20150625/842beb64/attachment.html 


More information about the jboss-user mailing list