Change default maven path in brmsgw container 29/85229/3
authorjhh <jorge.hernandez-herrero@att.com>
Fri, 12 Apr 2019 17:33:22 +0000 (12:33 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 15 Apr 2019 02:23:44 +0000 (21:23 -0500)
remove section that assumes that there is only one dependency
version in the brmsgw.   There are 2 (models and drools-applications)
as this has changed in dublin.

Change-Id: Ib9c14d79b0a8c00f78c0dff84deb978ae5fcb6c8
Issue-ID: POLICY-1611
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
kubernetes/policy/charts/brmsgw/resources/config/pe/brmsgw-tweaks.sh
kubernetes/policy/charts/brmsgw/resources/config/pe/brmsgw.conf

index 5c3a2a1..d7b27a0 100644 (file)
@@ -39,14 +39,3 @@ for CONFIG in ${PROPS_RUNTIME} ${PROPS_INSTALL}; do
                sed -i -e "s/brms.dependency.version=.*/brms.dependency.version=${version}/g" "${CONFIG}"
        fi
 done
-
-DEPS_JSON_RUNTIME="${POLICY_HOME}/servers/brmsgw/dependency.json"
-DEPS_JSON_INSTALL="${POLICY_HOME}/install/servers/brmsgw/dependency.json"
-
-for DEP in ${DEPS_JSON_RUNTIME} ${DEPS_JSON_INSTALL}; do
-       if [ ! -f "${DEP}" ]; then
-               echo "warning: configuration does not exist: ${DEP}"
-       else
-               sed -i -e "s/\"version\":.*-SNAPSHOT\"/\"version\": \"${version}\"/g" "${DEP}"
-       fi
-done
index b074d48..3952a4c 100644 (file)
@@ -26,7 +26,7 @@ PDP_HTTP_PASSWORD=alpha123
 PDP_PAP_PDP_HTTP_USER_ID=testpap
 PDP_PAP_PDP_HTTP_PASSWORD=alpha123
 
-M2_HOME=/usr/share/maven
+M2_HOME=/usr/share/java/maven-3
 snapshotRepositoryID=policy-nexus-snapshots
 snapshotRepositoryName=Snapshots
 snapshotRepositoryURL=http://{{ .Values.global.nexus.nameOverride }}:{{.Values.config.nexusPort}}/nexus/content/repositories/snapshots
@@ -64,4 +64,4 @@ BRMS_UEB_API_SECRET=
 
 #Dependency.json file version
 BRMS_DEPENDENCY_VERSION=1.3.1
-
+BRMS_MODELS_DEPENDENCY_VERSION=2.0.0-SNAPSHOT