Author Login
Post Reply
Just looking for some advice on using Maven profiles with Struts 2,
and to see if anyone else out there is doing this.
I have a production profile "prod" (as I actually building off of an
AppFuse-archetype), that I use when building wars (mvn war:war) for
deployment.
1. INCLUDING/EXCLUDING JARS (config-browser plugin):
When in deployment, I want to exclude the config-browser dependency. I
understand how to INCLUDE dependencies for particular profiles (see
also http://stackoverflow.com/questions/166895/different-dependencies-for-different-build-profiles-in-maven)
but in this case, I want to have the config-browser dependency in
place for ALL profiles except for my production "prod" profile.
(this question might be better off on the Maven-users mailing list)
2. CONSTANT CONFIGURATIONS (parameterizing devMode and other constants):
In my struts.xml I have the following three constants that should be
changed to false for deployment:
<constant name="struts.devMode" value="true"/>
<constant name="struts.configuration.xml.reload" value="true"/>
<constant name="struts.i18n.reload" value="true"/>
I understand that struts.properties, as of Struts 2.1.x series, is
officially deprecated, so that these constants SHOULD be defined in
struts.xml rather than as properties.
Rather than each time I branch/tag for a release, having to manually
change these values, I'd like to see if there is a way of
parameterizing these boolean values with a Maven production profile?
Alex Coles
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)