Fix sonar and checkstyle issues in distribution

* Fixing all check style issues.
* Fixing all sonar issues.
* Adding maven check style plugin to fail at warning level.

Change-Id: I791b8feef39a3a0c3e1e250efea7b6e78208bf07
Issue-ID: POLICY-1035
Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
diff --git a/forwarding/pom.xml b/forwarding/pom.xml
index 830f372..4335a04 100644
--- a/forwarding/pom.xml
+++ b/forwarding/pom.xml
@@ -40,12 +40,12 @@
         <dependency>
             <groupId>org.onap.policy.common</groupId>
             <artifactId>common-parameters</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
+            <version>${policy.common.version}</version>
         </dependency>
         <dependency>
             <groupId>org.onap.policy.common</groupId>
             <artifactId>ONAP-Logging</artifactId>
-            <version>1.3.0-SNAPSHOT</version>
+            <version>${policy.common.version}</version>
         </dependency>
     </dependencies>
 </project>