diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml
index 07090c41..9b7a5745 100644
--- a/modules/distribution/pom.xml
+++ b/modules/distribution/pom.xml
@@ -760,109 +760,6 @@
-
-
- replace-web-xmls-in-war-files
- prepare-package
-
- run
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/distribution/src/analytics/bin/load-spark-env-vars.sh b/modules/distribution/src/analytics/bin/load-spark-env-vars.sh
index 15a40f4c..e9c6274c 100755
--- a/modules/distribution/src/analytics/bin/load-spark-env-vars.sh
+++ b/modules/distribution/src/analytics/bin/load-spark-env-vars.sh
@@ -5,6 +5,12 @@ echo 'Loading spark environment variables '
export CARBON_SPARK_HOME=$CARBON_HOME
export _SPARK_ASSEMBLY=$CARBON_SPARK_HOME/../components/plugins/spark-core_2.10_*.wso2*.jar
export SPARK_SCALA_VERSION=2.10
+export CARBON_CONFIG_DIR_PATH=$CARBON_HOME/conf
+export CARBON_INTERNAL_LIB_DIR_PATH=$CARBON_HOME/../lib
+export CARBON_EXTERNAL_LIB_DIR_PATH=$CARBON_HOME/../../lib
+export CARBON_DROPINS_DIR_PATH=$CARBON_HOME/../../dropins
+export COMPONENTS_REPO=$CARBON_HOME/../components/plugins
+export CARBON_DATA_DIR_PATH=$CARBON_HOME/repository/data
# *** jars will be added to the spark classpath in the code itself. check DAS-105
# export SPARK_CLASSPATH=`java -cp $CARBON_SPARK_HOME/repository/components/plugins/org.wso2.carbon.analytics.spark.utils*.jar org.wso2.carbon.analytics.spark.utils.ComputeClasspath $CARBON_HOME`
# export SPARK_CLASSPATH=$SPARK_CLASSPATH:$(echo $CARBON_SPARK_HOME/repository/components/lib/*.jar | tr ' ' ':')
diff --git a/modules/distribution/src/analytics/bin/wso2server.sh b/modules/distribution/src/analytics/bin/wso2server.sh
index 5681a3ba..22376557 100755
--- a/modules/distribution/src/analytics/bin/wso2server.sh
+++ b/modules/distribution/src/analytics/bin/wso2server.sh
@@ -315,6 +315,13 @@ CARBON_CLASSPATH="$CARBON_CLASSPATH":"$CARBON_HOME/../components/plugins/"
#To monitor a Carbon server in remote JMX mode on linux host machines, set the below system property.
# -Djava.rmi.server.hostname="your.IP.goes.here"
+export CARBON_CONFIG_DIR_PATH="$CARBON_HOME/conf"
+export CARBON_INTERNAL_LIB_DIR_PATH="$CARBON_HOME/../lib"
+export CARBON_EXTERNAL_LIB_DIR_PATH="$CARBON_HOME/../../lib"
+export CARBON_DROPINS_DIR_PATH="$CARBON_HOME/../../dropins"
+export COMPONENTS_REPO="$CARBON_HOME/../components/plugins"
+export CARBON_DATA_DIR_PATH="$CARBON_HOME/repository/data"
+
while [ "$status" = "$START_EXIT_STATUS" ]
do
$JAVACMD \
@@ -340,6 +347,7 @@ do
-Dcarbon.extensions.dir.path="$CARBON_HOME/../../extensions" \
-Dcarbon.dropins.dir.path="$CARBON_HOME/../../dropins" \
-Dcarbon.external.lib.dir.path="$CARBON_HOME/../../lib" \
+ -Dcarbon.data.dir.path="$CARBON_HOME/repository/data" \
-Dcarbon.patches.dir.path="$CARBON_HOME/../../patches" \
-Dcarbon.servicepacks.dir.path="$CARBON_HOME/../../servicepacks" \
-Dcarbon.internal.lib.dir.path="$CARBON_HOME/../lib" \
diff --git a/modules/distribution/src/analytics/conf/input-adapter-change.xml b/modules/distribution/src/analytics/conf/input-adapter-change.xml
index b1f0161f..e18884d5 100644
--- a/modules/distribution/src/analytics/conf/input-adapter-change.xml
+++ b/modules/distribution/src/analytics/conf/input-adapter-change.xml
@@ -24,7 +24,7 @@
20000
10000
60
- https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.11/register
+ https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.12/register
tcp://${mqtt.broker.host}:${mqtt.broker.port}
admin
admin
diff --git a/modules/distribution/src/analytics/conf/output-adapter-change.xml b/modules/distribution/src/analytics/conf/output-adapter-change.xml
index b1d69837..07e305f0 100644
--- a/modules/distribution/src/analytics/conf/output-adapter-change.xml
+++ b/modules/distribution/src/analytics/conf/output-adapter-change.xml
@@ -9,7 +9,7 @@
20000
10000
60
- https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.11/register
+ https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.12/register
https://${iot.gateway.host}:${iot.gateway.https.port}/token
tcp://${mqtt.broker.host}:${mqtt.broker.port}
admin
@@ -23,7 +23,7 @@
20000
10000
60
- https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.11/register
+ https://${iot.keymanager.host}:${iot.keymanager.https.port}/client-registration/v0.12/register
https://${iot.gateway.host}:${iot.gateway.https.port}/token
tcp://${mqtt.broker.host}:${mqtt.broker.port}
admin
diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml
index aa1062fb..e1acdd5a 100755
--- a/modules/distribution/src/assembly/bin.xml
+++ b/modules/distribution/src/assembly/bin.xml
@@ -386,6 +386,11 @@
644
+
+
+ ../cxf-filters/target/cxfFilters/jar
+ ${pom.artifactId}-${pom.version}/wso2/lib/runtimes/cxf
+
@@ -397,13 +402,6 @@
-
-
- ../cxf-filters/target/cxfFilters/jar
- ${pom.artifactId}-${pom.version}/wso2/lib/runtimes/cxf
-
-
-
@@ -1659,42 +1657,6 @@
755
-
-
-
-
-
-
-
-
-
-
-
- ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
-
- 755
-
-
-
-
- ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
-
- 755
-
-
-
-
- ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
-
- 755
-
-
-
-
- ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
-
- 755
-