You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vivek <vk...@qasource.com> on 2011/07/13 10:14:01 UTC
configure Maven to dynamically select profiles
Hi There,
Is there any way to configure Maven to dynamically select profiles?
Issue:
Is it possible to have Maven dynamically pick different configuration
properties and build the project and execute tests based on those
dynamically acquired properties!
In my case I have single pom.xml and a different properties file for
each environment like:
product_QA.properties
product_staging.properties
product_UAT.properties
Please provide your feedback.
regards,
Vivek
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: configure Maven to dynamically select profiles
Posted by Ketil Aasarød <ke...@gmail.com>.
You would have to put them on your local development machine and on
your CI server to be able to run the tests ofc.
-ketil
2011/7/14 Ketil Aasarød <ke...@gmail.com>:
> If it is runtime properties I would consider externalizing them and
> put them on the file system or JNDI on your application server.
>
> -ketil
>
--
Med hilsen,
Ketil Aasarød
Fundator AS
+47 930 96 411
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: configure Maven to dynamically select profiles
Posted by Ketil Aasarød <ke...@gmail.com>.
If it is runtime properties I would consider externalizing them and
put them on the file system or JNDI on your application server.
-ketil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: configure Maven to dynamically select profiles
Posted by carlspring <ca...@gmail.com>.
You can use Maven profiles and Resource Filtering. You can set up different
profiles and define which resources to use for them.
--
View this message in context: http://maven.40175.n5.nabble.com/configure-Maven-to-dynamically-select-profiles-tp4581942p4585910.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: configure Maven to dynamically select profiles
Posted by anis chaaba <an...@gmail.com>.
Hi,
U can play with activation method using <activation> tag.
this may be helpful
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
good luck :)
On Wed, Jul 13, 2011 at 10:14 AM, Vivek <vk...@qasource.com> wrote:
> case I have single pom.xml an