Sync plugin versions for build-conf

- apply checkstyle to self

Change-Id: Ib2b429bfbef0a273fe949f312875e8906d2b0310
diff --git a/tools/build/conf/pom.xml b/tools/build/conf/pom.xml
index fa09c99..aa60ecf 100644
--- a/tools/build/conf/pom.xml
+++ b/tools/build/conf/pom.xml
@@ -47,14 +47,48 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <!-- TODO: update once following issue is fixed. -->
-                <!-- https://jira.codehaus.org/browse/MCOMPILER-205 -->
-                <version>2.5.1</version>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
+                    <version>3.7.0</version>
+                    <configuration>
+                        <source>1.8</source>
+                        <target>1.8</target>
+                        <compilerArgs>
+                            <compilerArg>-Xpkginfo:always</compilerArg>
+                        </compilerArgs>
+                    </configuration>
             </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <version>3.0.0</version>
+                <dependencies>
+                    <dependency>
+                        <groupId>com.puppycrawl.tools</groupId>
+                        <artifactId>checkstyle</artifactId>
+                        <version>8.10</version>
+                    </dependency>
+                </dependencies>
+                <configuration>
+                    <configLocation>${project.build.outputDirectory}/onos/checkstyle-mvn.xml</configLocation>
+                    <suppressionsLocation>${project.build.outputDirectory}/onos/suppressions.xml
+                    </suppressionsLocation>
+                    <headerLocation>${project.build.outputDirectory}/onos/onos-java.header</headerLocation>
+                    <failsOnError>false</failsOnError>
+                    <logViolationsToConsole>true</logViolationsToConsole>
+                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
+                    <includeResources>false</includeResources>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>validate-checkstyle</id>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
         </plugins>
     </build>