cahen
cahen

Reputation: 16716

Maven Profiles and Tomcat in Eclipse

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?

Upvotes: 20

Views: 26304

Answers (1)

Charlee Chitsuk
Charlee Chitsuk

Reputation: 9069

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

  1. Right click at your project and select properties .
  2. At the Properties windows select Maven.
  3. At the right hand panel you will see Active Maven Profiles text box.
  4. Please enter your profile name, e.g. development or production.

I hope this may help.

Upvotes: 47

Related Questions