diff --git a/modules/samples/oauth2/custom-grant/pom.xml b/modules/samples/oauth2/custom-grant/pom.xml
index e6f2cf65dcf..33d31b366c5 100644
--- a/modules/samples/oauth2/custom-grant/pom.xml
+++ b/modules/samples/oauth2/custom-grant/pom.xml
@@ -48,6 +48,10 @@
org.wso2.carbon
org.wso2.carbon.user.core
+
+ org.wso2.carbon.identity
+ org.wso2.carbon.identity.application.authentication.framework
+
diff --git a/modules/samples/sso/sso-agent-sample/pom.xml b/modules/samples/sso/sso-agent-sample/pom.xml
index 03659901715..d7918ad1a8a 100644
--- a/modules/samples/sso/sso-agent-sample/pom.xml
+++ b/modules/samples/sso/sso-agent-sample/pom.xml
@@ -61,6 +61,10 @@
commons-collections
commons-collections
+
+ javax.servlet
+ servlet-api
+
diff --git a/modules/samples/user-mgt/remote-user-mgt/pom.xml b/modules/samples/user-mgt/remote-user-mgt/pom.xml
index 5b5c05ad4b8..18c1a1c83d5 100644
--- a/modules/samples/user-mgt/remote-user-mgt/pom.xml
+++ b/modules/samples/user-mgt/remote-user-mgt/pom.xml
@@ -30,6 +30,10 @@
org.wso2.carbon
org.wso2.carbon.authenticator.stub
+
+ org.wso2.carbon
+ org.wso2.carbon.user.core
+
diff --git a/pom.xml b/pom.xml
index 3abde65d7c4..52a1e9d3014 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1063,6 +1063,11 @@
org.wso2.carbon.identity.workflow.mgt
${carbon.identity.version}
+
+ org.wso2.carbon.identity
+ org.wso2.carbon.identity.application.authentication.framework
+ ${carbon.identity.version}
+