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. [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]