maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Otaegui <>
Subject Re: using build profiles for WAR plugin
Date Fri, 02 Mar 2012 20:56:23 GMT
I think a much better solution than relying on the build tool (maven
profiles or on war overlays) is to use environment variables and bundle all
the LookAndFeel.xml in your war

I would use spring 3.1 and use the environment profiles feature.


On Thu, Mar 1, 2012 at 1:16 PM, offbyone <> wrote:

> Ok, I hear you, profiles are evil.  BUT I still don't understand the
> alternative so let me give a specific and tangible example and maybe you
> can
> explain a specific alternative.
> I am currently deploying my product in a tomcat/linux environment as a war
> file.  My webapp is driven by a set of spring configuration files using the
> Spring context loader.  For example, one of those spring configuration
> files
> is called LookAndFeel.xml.  It sets attributes like colors of the user
> interface.  I love using this type of configuration driven design because
> it
> lets me swap out the entire look and feel just by changing a config file.
> There are many deployments of my application on different systems and each
> one has a different look and feel configuration file.  So, I was planning
> to
> have a different maven profile for each deployment and have the profile
> automatically push the correct LookAndFeel.xml into the war archive.
> So specifically how do I accomplish this this in maven without using
> profiles?
> --
> View this message in context:
> Sent from the Maven - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Unix.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message