Can't Tell
Can't Tell

Reputation: 13476

Importing Maven Projects in IntelliJ IDEA

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

Answers (3)

vikingsteve
vikingsteve

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

Martin McKeaveney
Martin McKeaveney

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

Lombric
Lombric

Reputation: 838

It affects the way projects are imported

See doc : profiles

Upvotes: 0

Related Questions