diff --git a/product/modules/distribution/pom.xml b/product/modules/distribution/pom.xml
index c1320559229..c7ac210bf7c 100644
--- a/product/modules/distribution/pom.xml
+++ b/product/modules/distribution/pom.xml
@@ -98,6 +98,40 @@
maven-antrun-plugin
+
+
+ create-device-mgt-schema
+ package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
create-idp-mgt-schema
diff --git a/product/modules/distribution/src/assembly/bin.xml b/product/modules/distribution/src/assembly/bin.xml
index 98e5d19a837..0209ac3aa4e 100644
--- a/product/modules/distribution/src/assembly/bin.xml
+++ b/product/modules/distribution/src/assembly/bin.xml
@@ -208,10 +208,10 @@
-
+
- src/repository/dbscripts/
- wso2cdm-${project.version}/dbscripts
+ ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm
+ wso2cdm-${project.version}/dbscripts/cdm
*/**
@@ -443,12 +443,22 @@
${pom.artifactId}-${pom.version}/repository/database
WSO2AM_DB.h2.db
644
+
+
+
+ ${pom.artifactId}-${pom.version}/repository/database
+ WSO2DM_DB.h2.db
+ 644
+
+