Maven Profiles and Tomcat in Eclipse

eclipse, maven, maven-3, tomcat

Solution

You can activate the `maven profile` at the `Eclipse` by using the following step: -

- `Right click` at your project and select `properties` .

- At the `Properties windows` select `Maven`.

- At the `right hand panel` you will see `Active Maven Profiles` text box.

- Please enter your `profile name`, e.g. `development` or `production`.

I hope this may help.

Problem

If I have 2 maven profiles for a WAR application like this: ``` mvn clean install -Pdevelopment mvn clean install -Pproduction ``` and I import it in Eclipse to run in Tomcat, how to I tell Tomcat to use one profile or the other?

Original source