22
May
executing maven profile from command line
Step 1: Define pom.xml with
eg. Profile with default activation
————————————
maven profiles with activation properties:
——————————————-
Example pom.xml:
——————–
Compiling from command prompt:
——————————
mvn -Denv=STG clean install ==> will execute STG profile
mvn clean install ==> will execute activeByDefault profile
0 comments