Re: Deploying web applications from one pom file using a simple goal

2012-04-16 Thread Ron Wheeler

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: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



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

Re: Deploying web applications from one pom file using a simple goal

2012-04-16 Thread Wayne Fay
 Is there a way to deploy all web applications in a project to a servlet
 container (for ex. weblogic) from one pom file?

Can you not construct a single EAR file out of all your WARs and then
deploy that EAR? This is how we generally deploy multiple web apps to
Weblogic.

Wayne

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



Re: Deploying web applications from one pom file using a simple goal

2012-04-16 Thread Piotr Skawinski
Originally we used ant-run, but I fall into this weblogic-maven-plugin and
thought it would be more clean to ise it instead of ant-run. As I said it
works nice when running it from from every single web project. But I would
like to trigger this plugin from a multi-module pom file, so all web
applications could be deployed in one go.

On Mon, Apr 16, 2012 at 4:05 PM, Ron Wheeler rwhee...@artifact-software.com
 wrote:

 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: rwhee...@artifact-software.com
 skype: ronaldmwheeler
 phone: 866-970-2435, ext 102




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



Re: Deploying web applications from one pom file using a simple goal

2012-04-16 Thread Piotr Skawinski
Yeah, I thought of creating a single era file with all war files in it, but
our client's weblogic is not licence to support ear deployments.

On Mon, Apr 16, 2012 at 6:12 PM, Piotr Skawinski
piotr.skawin...@gmail.comwrote:

 Originally we used ant-run, but I fall into this weblogic-maven-plugin and
 thought it would be more clean to ise it instead of ant-run. As I said it
 works nice when running it from from every single web project. But I would
 like to trigger this plugin from a multi-module pom file, so all web
 applications could be deployed in one go.

 On Mon, Apr 16, 2012 at 4:05 PM, Ron Wheeler 
 rwhee...@artifact-software.com wrote:

 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: rwhee...@artifact-software.com
 skype: ronaldmwheeler
 phone: 866-970-2435, ext 102




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





Re: Deploying web applications from one pom file using a simple goal

2012-04-16 Thread Wayne Fay
 works nice when running it from from every single web project. But I would
 like to trigger this plugin from a multi-module pom file, so all web
 applications could be deployed in one go.

Perhaps the author(s) or users of this plugin would have a suggestion
for you if you contact them directly.

Oracle:
http://docs.oracle.com/cd/E24329_01/web.1211/e24443/maven_deployer.htm

Codehaus:
http://mojo.codehaus.org/weblogic-maven-plugin/

Wayne

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