Default build profile for Maven

Viewed 62477

I have added profiling to my Maven project.

        <profile>
            <id>da</id>                
        </profile>
        <profile>
            <id>live</id>
        </profile>
        <profile>
            <id>dev</id>
        </profile>

When I give the command mvn clean install without specifying the build profile. I need the dev profile to be build by default.

How can I achieve this?

2 Answers

You can also activate specific profile by running

mvn clean install -Pprod  

or

mvn clean install -Pdev
Related