maven cargo:start ( Keep container alive after process done)

View: New views
2 Messages — Rating Filter:   Alert me  

maven cargo:start ( Keep container alive after process done)

by kkrikor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey guys ,

Is there a way to have mvn cargo:deploy run successfully and have tomcat stay alive after the mvn process is finished ?

Here is the plugin i have

<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
        <configuration>
          <!-- Container configuration -->
          <wait>false</wait>
          <container>
            <containerId>tomcat5x</containerId>
            <home>${catalina.home}</home>
          </container>
          <configuration>
            <home>${catalina.home}</home>
            <type>existing</type>
          </configuration>
        </configuration>
      </plugin>

Re: maven cargo:start ( Keep container alive after process done)

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2009-01-28 at 18:56 -0800, kkrikor wrote:
> Hey guys ,
>
> Is there a way to have mvn cargo:deploy run successfully and have tomcat
> stay alive after the mvn process is finished ?

If you set wait to true, then when maven runs cargo, cargo will continue
to run the server until you call cargo:stop or ctrl-c (see
http://cargo.codehaus.org/Starting+and+stopping+a
+container#Startingandstoppingacontainer-nowait) But this pauses the
maven process and maven won't run to completion.

> Here is the plugin i have
>
> <plugin>
>         <groupId>org.codehaus.cargo</groupId>
>         <artifactId>cargo-maven2-plugin</artifactId>
>         <version>1.0-SNAPSHOT</version>
>         <configuration>
>           <!-- Container configuration -->
>           <wait>false</wait>
>           <container>
>             <containerId>tomcat5x</containerId>
>             <home>${catalina.home}</home>
>           </container>
>           <configuration>
>             <home>${catalina.home}</home>
>             <type>existing</type>
>           </configuration>
>         </configuration>
>       </plugin>


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

    http://xircles.codehaus.org/manage_email