Remove checkstyle warnings in policy/engine
[policy/engine.git] / LogParser / pom.xml
index b638faf..7ef977c 100644 (file)
@@ -3,7 +3,7 @@
   ============LICENSE_START=======================================================
   ONAP Policy Engine
   ================================================================================
-  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+  Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
   ================================================================================
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@
        <parent>
                <groupId>org.onap.policy.engine</groupId>
                <artifactId>PolicyEngineSuite</artifactId>
-               <version>1.1.0-SNAPSHOT</version>
+               <version>1.2.0-SNAPSHOT</version>
        </parent>
        <artifactId>LogParser</artifactId>
        
@@ -34,7 +34,6 @@
                <dependency>
             <groupId>com.h2database</groupId>
             <artifactId>h2</artifactId>
-            <version>1.4.193</version>
         </dependency>
                <dependency>
             <groupId>org.mariadb.jdbc</groupId>
@@ -44,7 +43,7 @@
                <dependency>
                        <groupId>org.onap.policy.common</groupId>
                        <artifactId>ONAP-Logging</artifactId>
-                       <version>${common-modules.version}</version>
+                       <version>${project.version}</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>org.powermock</groupId>
@@ -59,7 +58,7 @@
                <dependency>
                        <groupId>org.onap.policy.common</groupId>
                        <artifactId>integrity-monitor</artifactId>
-                       <version>${common-modules.version}</version>                    
+                       <version>${project.version}</version>                   
                        <exclusions>
                                <exclusion>
                                        <groupId>org.powermock</groupId>
                <dependency>
                        <groupId>org.apache.logging.log4j</groupId>
                        <artifactId>log4j-api</artifactId>
-                       <version>2.4</version>
+                       <version>2.8.2</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.logging.log4j</groupId>
                        <artifactId>log4j-core</artifactId>
-                       <version>2.4</version>
+                       <version>2.8.2</version>
                </dependency>
                <dependency>
                        <groupId>org.eclipse.persistence</groupId>
                    <groupId>org.mockito</groupId>
                    <artifactId>mockito-all</artifactId>
                    <version>1.10.19</version>
-               </dependency>       
+               </dependency> 
+               <dependency>
+                       <groupId>org.onap.policy.engine</groupId>
+                       <artifactId>PolicyEngineUtils</artifactId>
+                       <version>${project.version}</version>
+                       <exclusions>
+                               <exclusion>
+                                       <groupId>com.att.aft</groupId>
+                                       <artifactId>dme2</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.json</groupId>
+                                       <artifactId>json</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
+                                       <artifactId>dmaapClient</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.att.nsa</groupId>
+                                       <artifactId>cambriaClient</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.onap.aaf.cadi</groupId>
+                                       <artifactId>cadi-aaf</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+               <dependency>
+                       <groupId>org.powermock</groupId>
+                       <artifactId>powermock-module-junit4</artifactId>
+                       <version>1.7.3</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.powermock</groupId>
+                       <artifactId>powermock-api-mockito2</artifactId>
+                       <version>1.7.3</version>
+                       <scope>test</scope>
+               </dependency>
        </dependencies>
        <build>
                <plugins>
                                        </execution>
                                </executions>
                </plugin>
+               <plugin>
+                               <artifactId>maven-checkstyle-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>onap-java-style</id>
+                                               <goals>
+                                                       <goal>check</goal>
+                                               </goals>
+                                               <phase>process-sources</phase>
+                                               <configuration>
+                                                       <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
+                                                               with minor changes -->
+                                                       <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
+                                                       <!-- <sourceDirectory> is needed so that checkstyle ignores the generated 
+                                                               sources directory -->
+                                                       <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
+                                                       <includeResources>true</includeResources>
+                                                       <includeTestSourceDirectory>true</includeTestSourceDirectory>
+                                                       <includeTestResources>true</includeTestResources>
+                                                       <excludes>
+                                                       </excludes>
+                                                       <consoleOutput>true</consoleOutput>
+                                                       <failOnViolation>true</failOnViolation>
+                                                       <violationSeverity>warning</violationSeverity>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                               <dependencies>
+                                       <dependency>
+                                               <groupId>org.onap.oparent</groupId>
+                                               <artifactId>checkstyle</artifactId>
+                                               <version>0.1.1</version>
+                                               <scope>compile</scope>
+                                       </dependency>
+                               </dependencies>
+                       </plugin>
                </plugins>
        </build>
 </project>