How to use Maven build profiles ?

Working with Maven build profiles are quite easy. Switch between different available profiles can be made with a simple command line parameter -P:

mvn clean install -P localhostProfile