Sorry I didn't mentioned this earlier but when I deploy my project below are few errors I get :-
INFO ClasspathKieProject - Found kmodule: jar:file:/C:/Users/Sumit%20Dhaniya/.m2/repository/com/demo/FirstDemo/1.0/FirstDemo-1.0.jar!/META-INF/kmodule.xml
ERROR ClasspathKieProject - Unable to load pom.properties from/C:/Users/Sumit Dhaniya/.m2/repository/com/demo/FirstDemo/1.0/FirstDemo-1.0.jar as jarPath cannot be found
/Users/Sumit Dhaniya/.m2/repository/com/demo/FirstDemo/1.0/FirstDemo-1.0.jar
ERROR ClasspathKieProject - Unable to load pom.properties from/C:/Users/Sumit Dhaniya/.m2/repository/com/demo/FirstDemo/1.0/FirstDemo-1.0.jar
\Users\Sumit Dhaniya\.m2\repository\com\demo\FirstDemo\1.0\FirstDemo-1.0.jar (The system cannot find the path specified)
ERROR ClasspathKieProject - Unable to build index of kmodule.xml url=jar:file:/C:/Users/Sumit%20Dhaniya/.m2/repository/com/demo/FirstDemo/1.0/FirstDemo-1.0.jar!/META-INF/kmodule.xml
Below is the conf. I did for drools in my conf. file :-
<kie:kmodule id="kmodule1">
<kie:kbase name="defaultKieBase" default="true"
eventProcessingMode="cloud" equalsBehavior="identity"
declarativeAgenda="disabled" scope="javax.enterprise.context.ApplicationScoped"
packages="com.sophic.drool">
<kie:ksession name="defaultKieSession" type="stateful"
default="true" clockType="realtime"
scope="javax.enterprise.context.ApplicationScoped" />
<kie:ksession name="defaultStatelessKieSession" type="stateless"
default="true" clockType="realtime"
scope="javax.enterprise.context.ApplicationScoped" />
</kie:kbase>
</kie:kmodule>
<bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor" />