diff options
author | Victor Morales <victor.morales@intel.com> | 2017-08-08 15:51:52 -0500 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-08-08 15:54:14 -0500 |
commit | 2909e2e278b37a752c4f3501276166d6f2c18785 (patch) | |
tree | 4620a6d6dc7963f2c6a53cb30911c53be519212c /bootstrap/vagrant-onap/lib/_onap_functions | |
parent | ece790c24e7b22b2adc53cae9d1fa168f00ba97a (diff) |
Add oparent option
It was implement the option to use the maven settings configuration
file from OParent project
Change-Id: Ic7f6c618c2ac707e882ea371985f5d6f77c3605b
Signed-off-by: Victor Morales <victor.morales@intel.com>
Diffstat (limited to 'bootstrap/vagrant-onap/lib/_onap_functions')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/_onap_functions | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bootstrap/vagrant-onap/lib/_onap_functions b/bootstrap/vagrant-onap/lib/_onap_functions index 0d421552f..2c349d2c2 100755 --- a/bootstrap/vagrant-onap/lib/_onap_functions +++ b/bootstrap/vagrant-onap/lib/_onap_functions @@ -67,7 +67,14 @@ function _configure_maven { fi if [ ! -f $mvn_conf_file ]; then - cp /var/onap/files/settings.template $mvn_conf_file + if [[ "$enable_oparent" == "True" ]]; then + clone_repo oparent + cp $git_src_folder/oparent/settings.xml $mvn_conf_file + sed -i "s|<\/profiles>|<\/profiles>\n%PROXIES_START% <proxies>\n%PROXIES% %HTTP_PROXY%\n%PROXIES% %HTTPS_PROXY%\n%PROXIES_END% <\/proxies>|g" $mvn_conf_file + else + cp /var/onap/files/settings.xml $mvn_conf_file + fi + sed -e " s|%PROXIES_START%|$proxies_start|g; s|%PROXIES%|$proxies|g; |