Reputation: 16716
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
Reputation: 9069
You can activate the maven profile
at the Eclipse
by using the following step: -
Right click
at your project and select properties
.Properties windows
select Maven
.right hand panel
you will see Active Maven Profiles
text box.profile name
, e.g. development
or production
.I hope this may help.
Upvotes: 47