How can I assign a specific maven profile to an intellij run configuration?

If You have created maven profiles in your pom.xml, you should be able to see the profiles in right side of Intellij Idea

You can select this profile

If there will be multiple profile you can activate one by default

           <activation>
                <activeByDefault>true</activeByDefault>
            </activation>

Or for running specific profile we can select mvn install -Pbuild-profile

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)