diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2019-10-07 15:40:23 -0500 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2019-10-07 17:46:53 -0500 |
commit | 4fe4c5386f738ad49c967508b6f3f6fb9255605a (patch) | |
tree | d787134c4f80f326520c61dc2620b1ac427c5e1d /controlloop/packages/docker-controlloop/src | |
parent | 9ff23bb6091a765a90e7df3137d4e5f7f07a30f5 (diff) |
Allow override of maven settings at instantiation
Issue-ID: POLICY-2111
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib7ec8beab2947fc9fbf55734d0412f444a963fe8
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Diffstat (limited to 'controlloop/packages/docker-controlloop/src')
-rw-r--r-- | controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh b/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh index 8e968be50..eeeeeb069 100644 --- a/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh +++ b/controlloop/packages/docker-controlloop/src/main/resources/docker-entrypoint.sh @@ -17,6 +17,27 @@ # ######################################################################## +function maven { + if [[ ${DEBUG} == y ]]; then + echo "-- ${FUNCNAME[0]} --" + set -x + fi + + if [[ -f "${POLICY_INSTALL_INIT}"/settings.xml ]]; then + if ! cmp -s "${POLICY_INSTALL_INIT}"/settings.xml "${POLICY_HOME}"/etc/m2/settings.xml then + echo "overriding settings.xml" + cp -f "${POLICY_INSTALL_INIT}"/settings.xml "${POLICY_HOME}"/etc/m2 + fi + fi + + if [[ -f "${POLICY_INSTALL_INIT}"/standalone-settings.xml ]]; then + if ! cmp -s "${POLICY_INSTALL_INIT}"/standalone-settings.xml "${POLICY_HOME}"/etc/m2/standalone-settings.xml then + echo "overriding standalone-settings.xml" + cp -f "${POLICY_INSTALL_INIT}"/standalone-settings.xml "${POLICY_HOME}"/etc/m2 + fi + fi +} + function configurations { if [[ ${DEBUG} == y ]]; then echo "-- ${FUNCNAME[0]} --" @@ -205,6 +226,7 @@ function reload { fi configurations + maven features security properties |