2 Replies Latest reply on Mar 14, 2014 12:24 PM by ggarciao

    Can a CLI Command wait until it finish starting a server/group?

    ggarciao

      I need to start a server/group and then deploy an application using the jboss-as-maven-plugin.

       

      This plugin allows you to execute some commands before and after the artifact deployment. Right now I'm using this command to start the server BEFORE deploying the application.

       

      /host=master/server-config=server-one:start

       

      The commands is working, but it does not wait until the server pass from STARTING to STARTED. So I get this error:

       

      message : Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.5.Final:deploy (default-cli) on project jboss73: Status of server group 'main-servers-group' is 'STARTING', but is required to be 'STARTED'.

      cause : Status of server group 'partner-servers-group' is 'STARTING', but is required to be 'STARTED'.

       

      There is a wait to force the command to wait until the server/group is actually STARTED? FYI: I cannot use Rhino/Python/... because the jboss-as-maven-plugin does not support this (or maybe i'm wrong on this?)

       

      Thanks in advance,