Wait false, terminate container after deployment
------------------------------------------------

                 Key: MJBOSS-18
                 URL: http://jira.codehaus.org/browse/MJBOSS-18
             Project: Maven 2.x JBoss Plugin
          Issue Type: Bug
         Environment: XP JBoss [Trinity] 4.2.2.GA
            Reporter: Shahriar Alam


We are using cargo plugin to start deploy ear file to JBoss. We want maven to 
do so and terminate itself, JBoss should be running:

<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jboss-packaging-maven-plugin</artifactId>
        <version>2.0-beta-1</version>
        <!-- Enable 'jboss-sar', etc., as a recognized maven packaging type -->
        <extensions>true</extensions>
      </plugin>
      <plugin>
                        <groupId>org.codehaus.cargo</groupId>
                         <artifactId>cargo-maven2-plugin</artifactId>
                         <executions>
                  <execution>
                    <id>start-container</id>
                    <phase>pre-integration-test</phase>
                    <goals>
                      <goal>start</goal>
                    </goals>
                  </execution>
                  <execution>
                    <id>stop-container</id>
                    <phase>compile</phase>
                    <goals>
                      <goal>stop</goal>
                    </goals>
                  </execution>
                 </executions>
<configuration>
       <wait>false</wait>
                                 <container>
                                                 
<containerId>jboss4x</containerId>
                                                 <home>${env.JBOSS_HOME}</home>
                                                 
<output>${env.JBOSS_HOME}/server/default/log/server.log</output>
                                                 
<log>${env.JBOSS_HOME}/server/default/log/cargo.log</log>
                                 </container>
                                 <configuration>
                                         <type>existing</type>
                                         
<home>${env.JBOSS_HOME}/server/default</home>
                                                <properties>
                                                        
<cargo.jboss.configuration>default</cargo.jboss.configuration>
                                                </properties>
                                 </configuration>
                         </configuration>
</plugin>
    </plugins>


We see

[INFO] [cargo:start]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 14 seconds
[INFO] Finished at: Mon Aug 18 15:39:37 PDT 2008
[INFO] Final Memory: 8M/14M
[INFO] ------------------------------------------------------------------------

and the container is terminated as well. 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to