Wouldn't Ant do this for you rather nicely?
Use the Antrun plug-in in its own maven project.
Ron
On 16/04/2012 9:34 AM, Piotr Skawinski wrote:
Hi,
Is there a way to deploy all web applications in a project to a servlet
container (for ex. weblogic) from one pom file?
I have following project structure:
project-parent
|-- project-parent-war
|-- web-project-war-1
|-- web-project-war-2
.
.
|-- web-project-war-n
|-- services
project-parent is also a multi-module project and is used to build all sub
projects in one go.
In the project-parent-war I have defined several profiles that can be used
to deploy/undeploy applications to/from different environments. I can run a
deploy or an undeploy profile from all single web projects using:
mvn -P localhost-deploy weblogic:deploy
but I haven't found a way to run a profile for all applications from one
pom file (for example from project-parent). Is it possible? If so, how
should that pom file be defined and how should it be executed as a goal?
thanks in advance, Piotr
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]