You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Vivek <vk...@qasource.com> on 2011/07/13 10:13:06 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: configure Maven to dynamically select profiles

Posted by Vivek <vk...@qasource.com>.
Thanks a lot Stephen for your feedback. Let me try to implement the 
solution provided by you and will get back to you in case of any further 
Issue.

Moreover, I will definitely make sure to post the single request.

regards,
Vivek

On 7/13/2011 2:09 PM, Stephen Connolly wrote:
> maven-invoker-plugin...
>
> and don't double post, we got the question the first time no need to
> resend again 1 minute later
>
> On 13 July 2011 09:13, Vivek<vk...@qasource.com>  wrote:
>> 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: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>


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


Re: configure Maven to dynamically select profiles

Posted by Stephen Connolly <st...@gmail.com>.
maven-invoker-plugin...

and don't double post, we got the question the first time no need to
resend again 1 minute later

On 13 July 2011 09:13, Vivek <vk...@qasource.com> wrote:
> 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

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