diff --git a/mock-plugin/pom.xml b/mock-plugin/pom.xml
index a9fdb91..1948985 100644
--- a/mock-plugin/pom.xml
+++ b/mock-plugin/pom.xml
@@ -381,6 +381,7 @@
org.apache.maven.plugins
maven-compiler-plugin
+ true
${maven.compiler.source}
${maven.compiler.target}
diff --git a/mosip-identity-plugin/pom.xml b/mosip-identity-plugin/pom.xml
index 15d9f23..6f48c0d 100644
--- a/mosip-identity-plugin/pom.xml
+++ b/mosip-identity-plugin/pom.xml
@@ -511,6 +511,7 @@
org.apache.maven.plugins
maven-compiler-plugin
+ true
${maven.compiler.source}
${maven.compiler.target}