Waiting for application start using jboss-maven-plugin fails
tejl Feb 15, 2013 6:41 AMHi
I am using the jboss-maven-plugin to deploy or .ear file to a JBoss Application Server 5.1. This is done by the hard-deploy goal which works fine. Our requirements now requires me to wait for the deployment to finish. I've tried to add the wait-app-start goal, but it simply does not discover the started application. Any clues on how to solve this problem?
Here is the ourput
[INFO] --- jboss-maven-plugin:1.5.0:wait-app-start (default-cli) @ Yacs-ear ---
[INFO] JBoss JMX MBean connection successful!
[INFO] Trying 1 of 5
[INFO] Checking if My.ear is already started...
[INFO] App not started yet
[INFO] Trying 2 of 5
[INFO] Checking if My.ear is already started...
[INFO] App not started yet
[INFO] Trying 3 of 5
[INFO] Checking if My.ear is already started...
[INFO] App not started yet
[INFO] Trying 4 of 5
[INFO] Checking if My.ear is already started...
[INFO] App not started yet
[INFO] Trying 5 of 5
[INFO] Checking if My.ear is already started...
[INFO] App not started yet
And here is my jboss-maven-plugin configuration:
<plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>jboss-maven-plugin</artifactId>
          <executions>
                    <execution>
                              <id>deploy-on-install</id>
                              <phase>install</phase>
                              <goals>
                                        <goal>hard-deploy</goal>
                                        <goal>wait-app-start</goal>
                              </goals>
                              <configuration>
                                        <jbossHome>${env.JBOSS_HOME}</jbossHome>
                              </configuration>
                    </execution>
          </executions>
          <configuration>
                    <fileNames>
                              <param>${basedir}/target/My.ear</param>
                    </fileNames>
                    <earName>My.ear</earName>
                    <retry>5</retry>
                    <retryWait>10000</retryWait>
          </configuration>
</plugin>
PS. I am using Maven 3.0.4
