1 <project> 2 ... 3 <profiles> 4 <profile> 5 <id>development</id> 6 <activation> 7 <activeByDefault>true</activeByDefault> 8 </activation> 9 <build> 10 <filters> 11 <filter>profile-development.properties</filter> 12 </filters> 13 </build> 14 </profile> 15 <profile> 16 <id>production</id> 17 <build> 18 <filters> 19 <filter>profile-production.properties</filter> 20 </filters> 21 </build> 22 </profile> 23 </profiles> 24 </project>
$mvn clean install -Pdevelopment