users@maven-glassfish-plugin.java.net

general deployment questions

From: David Hunnisett <daveh_at_etlsolutions.com>
Date: Mon, 23 Feb 2009 15:26:30 +0000

Hi
Thanks very much for the plugin its proving to be very useful so far.
I have a few questions and clarifications on the usage.
Am I correct in my understanding that the plugin can only be used to
deploy onto the local machine?
There is currently no way to deploy to a remote glassfish server.

With this in mind I am trying to use the plugin to control deployment
when the web applications have already been built. I hope I have been
able to describe this in the following deployment scenario:


I have a two independent development and two independent production
servers.
Each server does not ever communicate with any other server, they are
stand alone not part of any fall over or load balancing.

Both of the production servers must run the same code.
Both of the development servers will typically run the same code.

The code for both production and development is built on a third
(build) server.
The code consists of a number standalone war files that access a
common database structure (the database is stored on the server i.e.
there are four databases).
For the rest of this I will refer to the web applications as app-1.war
and app-2.war.

I would like to have a deployment pom that I can use to deploy to a
local server (either development or production) a specific collection
of app-1.war and app-2.war.

For the development server this would point to the -snapshot revision
of app-1.war and app-2.war.

running mvn glassfish:deploy should locally deploy the app-1.war-
SNAPSHOT to a domain called app-1 and app-2.war-SNAPSHOT to a domain
called app-2.
The SNAPSHOT version should be downloaded from our local maven
repository (running on the build server).

For production specific versions of app-1 and app-2 would be referenced.

Running mvn glassfish:deploy should locally deploy the app-1.war-1.4.1
to a domain called app-1 and app-2.war-1.1.1 to a domain called app-2

The specific versions should again be downloaded from our local maven
repository (running on the build server).


To deploy I new version to production I would them simply change the
version numbers in the production pom and log into each production
server and run mvn glassfish:deploy with the new pom.

If this is possible could some one provide an example deployment pom.

Thanks David





David Hunnisett
ETL Solutions Ltd
Tel:01248 675070

daveh_at_etlsolutions.com
***************************************************************************

ETL Solutions Ltd
Registered in England and Wales No 04327381
Registered Office: Unit 4, Glanypwll Workshops, Blaenau Ffestiniog,
Gwynedd LL41 3NW


***************************************************************************

Confidentiality Statement

This communication is for informational purposes only. Any comments,
statements, views or opinions made herein are
solely those of the author and do not necessarily represent those of
ETL Solutions Ltd. This transmission may contain information that is
privileged, confidential, legally privileged, and/or exempt from
disclosure under applicable law.
If you are not the intended recipient, you are hereby notified that
any disclosure, copying, distribution, or use of the information
contained herein (including any reliance thereon) is STRICTLY
PROHIBITED. If you received this e-mail in error, please notify the
sender by reply email immediately and permanently delete the original
and any copy of the e-mail, attachment(s) and any printout thereof.
Thank you.

***************************************************************************