Fix new sonar issues in drools-pdp
[policy/drools-pdp.git] / policy-core / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP Policy Engine - Drools PDP
5   ================================================================================
6   Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
7   Modifications Copyright (C) 2019 Bell Canada.
8   ================================================================================
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12   
13        http://www.apache.org/licenses/LICENSE-2.0
14   
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20   ============LICENSE_END=========================================================
21   -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <artifactId>policy-core</artifactId>
27     <parent>
28         <groupId>org.onap.policy.drools-pdp</groupId>
29         <artifactId>drools-pdp</artifactId>
30         <version>1.6.0-SNAPSHOT</version>
31     </parent>
32
33     <properties>
34         <protobuf.version>3.6.1</protobuf.version>
35     </properties>
36
37     <dependencies>
38     <!--
39     Issue: 1 of 2
40     These 3 dependencies are trying to upgrade security fixes
41     identified. If they are removed or manipulated then please
42     fix the 2nd change as noted below. 
43     -->
44         <dependency>
45             <groupId>org.codehaus.plexus</groupId>
46             <artifactId>plexus-utils</artifactId>
47             <version>3.0.24</version>
48         </dependency>
49         <dependency>
50             <groupId>com.thoughtworks.xstream</groupId>
51             <artifactId>xstream</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>com.google.guava</groupId>
55             <artifactId>guava</artifactId>
56         </dependency>
57
58         <dependency>
59             <groupId>com.google.protobuf</groupId>
60             <artifactId>protobuf-java</artifactId>
61             <version>${protobuf.version}</version>
62         </dependency>
63
64         <dependency>
65             <groupId>org.kie</groupId>
66             <artifactId>kie-api</artifactId>
67             <version>6.5.0.Final</version>
68         </dependency>
69         <dependency>
70             <groupId>org.kie</groupId>
71             <artifactId>kie-ci</artifactId>
72             <version>6.5.0.Final</version>
73       <!--
74       Issue: 2 of 2
75       Excluding these 2 dependencies in order to force upgrade security fixes
76       identified. As declared above. Any changes here should be reflected above
77       and vice versa.
78       -->
79             <exclusions>
80                 <exclusion>
81                     <groupId>org.codehaus.plexus</groupId>
82                     <artifactId>plexus-utils</artifactId>
83                 </exclusion>
84                 <exclusion>
85                     <groupId>com.thoughtworks.xstream</groupId>
86                     <artifactId>xstream</artifactId>
87                 </exclusion>
88                 <exclusion>
89                     <groupId>com.google.guava</groupId>
90                     <artifactId>guava</artifactId>
91                 </exclusion>
92                 <exclusion>
93                     <groupId>com.google.protobuf</groupId>
94                     <artifactId>protobuf-java</artifactId>
95                 </exclusion>
96             </exclusions>
97         </dependency>
98         <dependency>
99             <groupId>org.drools</groupId>
100             <artifactId>drools-core</artifactId>
101             <version>6.5.0.Final</version>
102         </dependency>
103         <dependency>
104             <groupId>org.drools</groupId>
105             <artifactId>drools-persistence-jpa</artifactId>
106             <version>6.5.0.Final</version>
107             <exclusions>
108                 <exclusion>
109                     <groupId>com.google.protobuf</groupId>
110                     <artifactId>protobuf-java</artifactId>
111                 </exclusion>
112             </exclusions>
113         </dependency>
114         <dependency>
115             <groupId>org.onap.policy.common</groupId>
116             <artifactId>capabilities</artifactId>
117             <version>${policy.common.version}</version>
118         </dependency>
119         <dependency>
120             <groupId>org.onap.policy.common</groupId>
121             <artifactId>utils</artifactId>
122             <version>${policy.common.version}</version>
123         </dependency>
124         <dependency>
125             <groupId>org.onap.policy.drools-pdp</groupId>
126             <artifactId>policy-utils</artifactId>
127             <version>${project.version}</version>
128         </dependency>
129         <dependency>
130             <groupId>org.projectlombok</groupId>
131             <artifactId>lombok</artifactId>
132             <scope>provided</scope>
133         </dependency>
134         <dependency>
135             <groupId>junit</groupId>
136             <artifactId>junit</artifactId>
137             <scope>test</scope>
138         </dependency>
139         <dependency>
140             <groupId>org.powermock</groupId>
141             <artifactId>powermock-api-mockito</artifactId>
142             <scope>test</scope>
143         </dependency>
144         <dependency>
145             <groupId>org.assertj</groupId>
146             <artifactId>assertj-core</artifactId>
147             <scope>test</scope>
148         </dependency>
149         <dependency>
150             <groupId>org.onap.policy.common</groupId>
151             <artifactId>utils-test</artifactId>
152             <version>${policy.common.version}</version>
153             <scope>test</scope>
154         </dependency>
155     </dependencies>
156     <build>
157         <plugins>
158             <plugin>
159                 <artifactId>maven-checkstyle-plugin</artifactId>
160                 <executions>
161                     <execution>
162                         <id>onap-java-style</id>
163                         <goals>
164                             <goal>check</goal>
165                         </goals>
166                         <phase>process-sources</phase>
167                         <configuration>
168                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
169                                 with minor changes -->
170                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
171                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
172                             <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
173                             <includeResources>true</includeResources>
174                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
175                             <includeTestResources>true</includeTestResources>
176                             <excludes>
177                             </excludes>
178                             <consoleOutput>true</consoleOutput>
179                             <failsOnViolation>true</failsOnViolation>
180                             <violationSeverity>warning</violationSeverity>
181                         </configuration>
182                     </execution>
183                 </executions>
184                 <dependencies>
185                     <dependency>
186                         <groupId>org.onap.oparent</groupId>
187                         <artifactId>checkstyle</artifactId>
188                         <version>${oparent.version}</version>
189                         <scope>compile</scope>
190                     </dependency>
191                 </dependencies>
192             </plugin>
193         </plugins>
194     </build>
195 </project>