Wednesday, July 10, 2013

Maven switching Multi-Environment

Practical usecase scenario is : If we are working for multiple software vendor, we might need to
switch maven environment setting to customer's configuration settings and vice versa.
This can be done by
1. Maven cli with -s, --settings <args>
    mvn -s customerXXXMvnSetting.xml
2. with git.
    Initialize git repo in maven setting directory and create branch for different customers for example
    git checkout -b customerXXXMvnSetting


No comments:

Post a Comment