maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Farinacci <jie...@gmail.com>
Subject Re: how to centralize configuration accross multiple modules
Date Tue, 05 Oct 2010 12:57:04 GMT
Hi Emerson,

On Tue, Oct 5, 2010 at 8:50 AM, emerson <echofloripa.yell@gmail.com> wrote:
>
> I would like then to pass a parameter to the mvn command (eg. mvn -Denv=st1)
> and it would pick up the appropriate resource file depending on the
> environment.
> What would be the best way to implement something on these lines?

You should look at
http://maven.apache.org/plugins/maven-remote-resources-plugin/ .. you
could bundle them up in one module, and extract them (via
property-enabled profile) wherever needed. Then your integration tests
just need to pick up your properties bundle.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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


Mime
View raw message