Importing Maven Projects into IntelliJ IDEA
3 answers
It allows you to activate the various profiles found in your pom.xml. The documents shown above provide good information, but not exactly how you will use the profile. For example, you might have a "dev" profile to build in your dev environment, or a "production" profile to build when you're ready to deploy. Maven allows you to use a profile using the "P" flag after the build command and then the actual profile. For example.
mvn clean install -Pdev
Hope this helps!
+2
source to share