How to activate maven profile inside eclipse
Normally maven is use for project dependency management and lifecycle, so there are several developers working on it. Each has its own development environment either in windows, linux or mac. To do this we create several profiles for each developer in pom.xml.
<profiles> <profile> <id>windows</id> <properties> <jboss.home>C:/manaty/jboss-4.2.3.GA</jboss.home> </properties> </profile> <profile> <id>linux</id> <properties> <jboss.home>/home/project/jboss-4.2.3.GA</jboss.home> </properties> </profile> </profiles>And then invoke mvn with the -P argument. Example:
mvn install -Pwindows mvn install -PlinuxHow could we do the same inside eclipse. There are 2 ways: 1.) Right click on the project->click properties->select maven menu
How to activate maven profile inside eclipse Reviewed by Edward Legaspi on Monday, November 07, 2011 Rating: