Reputation: 13476
I am an Eclipse user who is trying out IntelliJ IDEA. When importing a maven project, in the wizard, I am asked to "Select profile". What aspects of the project is decided on this selection?
Upvotes: 5
Views: 4237
Reputation: 40438
I usually don't select any profiles when I import a maven project for the first time.
Once you have imported it, you can later come back and tick any profiles you want to enable / disable prior to executing a build step (like clean install
).
This seems the most straight forward approach to me.
Upvotes: 1
Reputation: 508
It lets you activate different profiles that are found in your pom.xml. The docs shown above give good information but not really how you would use a profile. For example, you may have a ''dev' profile for building in your dev environment or a ''production' profile for building when you are ready to deploy. Maven allows you to use a profile by using its 'P' flag after your build command, followed by the actual profile. Eg.
mvn clean install -Pdev
Hope this helps!
Upvotes: 3