RaceBase
RaceBase

Reputation: 18868

Configuring Maven Eclipse plugin

I am having issues in building maven project using m2e.

When I run update project/clean project usually maven runs

mvn clean install

But I need to modify this to

mvn clean install -Penv-itt

or

mvn clean install -Penv-uat

and so on. I need to pass these parameters otherwise build will not success.

But how do I modify settings in Eclipse (m2e plugin) to create multiple profiles or atleast I can add them dynamically

Eclipse Juno SR1. M2E updated version as per Market

Upvotes: 1

Views: 870

Answers (1)

Priyanka Namburi
Priyanka Namburi

Reputation: 66

Please follow the below steps to create two different profiles and run them as needed

enter image description here

and then in the new window..fill in the command as below

enter image description here fill the details and click apply button

fill the details and click apply button

repeat the above process for uat profile and fill in the configuration as below and click apply button

repeat the above process for uat profile and fill in the configuration as below and click apply button

follow the below steps to run the created profiles as needed enter image description here

enter image description here

Upvotes: 3

Related Questions