You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Urooj Khan <ur...@gmail.com> on 2008/04/10 22:00:38 UTC

maven 2 + cargo plugin

hi everyone

i have a project with three sub-projects which are web apps...

i am currently using cargo to deploy each web app project and have the
individual pom.xml and profiles.xml configured...

i am trying to figure out what command i can use when building the parent
project that will be the equivalent of
calling something like:

mvn cargo:deployer-redeploy -Pdev

on each individual project....


-- 
Urooj Khan

Re: maven 2 + cargo plugin

Posted by Wayne Fay <wa...@gmail.com>.
You should ask this question on the Cargo Users list.

Wayne

On 4/10/08, Urooj Khan <ur...@gmail.com> wrote:
> hi everyone
>
> i have a project with three sub-projects which are web apps...
>
> i am currently using cargo to deploy each web app project and have the
> individual pom.xml and profiles.xml configured...
>
> i am trying to figure out what command i can use when building the parent
> project that will be the equivalent of
> calling something like:
>
> mvn cargo:deployer-redeploy -Pdev
>
> on each individual project....
>
>
> --
> Urooj Khan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven 2 + cargo plugin

Posted by VUB Stefan Seidel <ss...@vub.de>.
Hi,

in your parent project, define the pluginManagement:
   <build>
     <pluginManagement>
       <plugins>
         <plugin>
             <groupId>org.codehaus.cargo</groupId>
             <artifactId>cargo-maven2-plugin</artifactId>
             <configuration>
		... (your configuration)
             </configuration>
             <executions>
               <execution>
                 <id>redeploy</id>
                 <goals>
                   <goal>deployer-redeploy</goal>
                 </goals>
               </execution>
             </executions>
           </plugin>
       </plugins>
     </pluginManagement>
   </build>
This defines an execution of the plugin phase (deployer-redeploy).
Then, in the sub-projects, define
   <build>
       <plugins>
         <plugin>
             <groupId>org.codehaus.cargo</groupId>
             <artifactId>cargo-maven2-plugin</artifactId>
             <executions>
               <execution>
                 <id>redeploy</id>
                 <phase>test</phase>
               </execution>
             </executions>
           </plugin>
       </plugins>
   </build>
(you may need to change the phase)
This will use the previously defined execution and run it in the given 
phase. Then, when you do mvn install on the parent project, it will 
execute the test-phase (among others) of the child projects and your 
goal will run.

Stefan

Urooj Khan wrote:
> hi everyone
> 
> i have a project with three sub-projects which are web apps...
> 
> i am currently using cargo to deploy each web app project and have the
> individual pom.xml and profiles.xml configured...
> 
> i am trying to figure out what command i can use when building the parent
> project that will be the equivalent of
> calling something like:
> 
> mvn cargo:deployer-redeploy -Pdev
> 
> on each individual project....
> 
> 

-- 
best regards,

Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.    +49 (341) 9 60 50 07
fax.    +49 (341) 9 60 50 92
mail.   sseidel@vub.de
web.    www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org