Class ExecuteCommandsMojo

  • All Implemented Interfaces:
    ContextEnabled, Mojo

    @Mojo(name="execute-commands",
          threadSafe=true)
    public class ExecuteCommandsMojo
    extends AbstractServerConnection
    Execute commands to the running WildFly Application Server.

    Commands should be formatted in the same manner CLI commands are formatted.

    Executing commands in a batch will rollback all changes if one command fails.

          <batch>true</batch>
          <fail-on-error>false</fail-on-error>
          <commands>
              <command>/subsystem=logging/console=CONSOLE:write-attribute(name=level,value=DEBUG)</command>
          </commands>
     
    Author:
    James R. Perkins