Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selecting Maven Profiles in Intellij 14

I'm using intellij 14 and have the maven projects window open.

Why are there 2 different kinds of checkboxes? If you select the checkbox once, it will leave a white check. If you select it again, it will change the checkbox to gray. Whats the difference?

I also want to know how to tell a specific module (not the entire project) to use a particular maven profile that is only available to that module.

I have been unable to find this information on intellij's site. Thanks!

like image 821
Jflywheel Avatar asked Dec 14 '22 09:12

Jflywheel


1 Answers

There are three possible states for a profile:

  1. Disabled:

    Disabled

  2. Active:

    Active

  3. Active by Default:

    enter image description here

The last one is activated by setting something like this in your pom.xml

<profile>
    <id>dev</id>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
</profile>
like image 197
acanby Avatar answered Dec 17 '22 00:12

acanby