Myprofile my-repo2 your custom repo. If you specify repositories in profiles you must remember to activate that particular profile! As you can see above we do this by registering a profile to be active in the activeProfiles element. You could also activate this profile on the command like by executing the following command. Maven Profile Best Practices. One way to activate a profile is to simply launch Maven with a -P flag followed by the. Allow you to have multiple builds with a. Multiple profile execution in maven. Hi, I have 2 profiles which are deactivated by default but at run time I need to execute both of them, I have tried with -P. Building For Different Environments with Maven 2. You have multiple. To activate this profile execute mvn -Ptest install and Maven will execute the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2018
Categories |