diff --git a/modules/analytics/distribution/src/assembly/dist.xml b/modules/analytics/distribution/src/assembly/dist.xml
index b6df98d2..ad717a0e 100644
--- a/modules/analytics/distribution/src/assembly/dist.xml
+++ b/modules/analytics/distribution/src/assembly/dist.xml
@@ -32,6 +32,7 @@
**/*.lock
**/.data
**/.settings
+ features/**
diff --git a/modules/broker/distribution/src/main/assembly/dist.xml b/modules/broker/distribution/src/main/assembly/dist.xml
index b1d667c6..19c42f09 100644
--- a/modules/broker/distribution/src/main/assembly/dist.xml
+++ b/modules/broker/distribution/src/main/assembly/dist.xml
@@ -30,6 +30,7 @@
**/*.lock
**/.data
**/.settings
+ features/**
diff --git a/modules/core/p2-profile-gen/pom.xml b/modules/core/p2-profile-gen/pom.xml
index 6c3d0558..0e9eb687 100644
--- a/modules/core/p2-profile-gen/pom.xml
+++ b/modules/core/p2-profile-gen/pom.xml
@@ -660,22 +660,6 @@
file:${basedir}/target/p2-repo
-
- p2-profile-generation-mqtt-gateway-profile
- package
-
- materialize-product
-
-
- ${basedir}/carbon.product
- file:${basedir}/target/p2-repo
- file:${basedir}/target/p2-repo
-
- file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
-
- mqtt-gateway
-
-
p2-profile-generation-http-gateway-profile
package