policy/engine jdk11 upgrades
[policy/engine.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
6   Modifications Copyright (C) 2019 Nordix Foundation.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.parent</groupId>
26         <artifactId>integration</artifactId>
27         <version>3.1.1-SNAPSHOT</version>
28         <relativePath />
29     </parent>
30     <groupId>org.onap.policy.engine</groupId>
31     <artifactId>PolicyEngineSuite</artifactId>
32     <version>1.6.0-SNAPSHOT</version>
33     <packaging>pom</packaging>
34     <name>policy-engine</name>
35     <description>The ONAP Policy Engine main pom</description>
36     <properties>
37         <!-- Project common build settings -->
38         <project.encoding>UTF-8</project.encoding>
39         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40         <!-- Project path properties -->
41         <nexusproxy>https://nexus.onap.org</nexusproxy>
42         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
43         <releases.path>content/repositories/releases/</releases.path>
44         <snapshots.path>content/repositories/snapshots/</snapshots.path>
45         <staging.path>content/repositories/staging/</staging.path>
46
47         <!-- sonar/jacoco overrides -->
48         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
49             into one file shared across sub-modules -->
50         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
51         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
52         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
53
54         <!-- Project common dependency versions -->
55         <springframework.version>4.3.24.RELEASE</springframework.version>
56         <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
57         <jackson.version>2.9.4</jackson.version>
58         <commons.fileupload.version>1.3.3</commons.fileupload.version>
59         <commons.compress.version>1.18</commons.compress.version>
60         <elasticsearch.version>6.8.2</elasticsearch.version>
61         <version.policy.common>1.6.2-SNAPSHOT</version.policy.common>
62         <version.policy.models>2.2.1-SNAPSHOT</version.policy.models>
63     </properties>
64     <modules>
65         <module>PolicyEngineUtils</module>
66         <module>ONAP-XACML</module>
67         <module>ONAP-REST</module>
68         <module>PolicyEngineAPI</module>
69         <module>ONAP-PDP</module>
70         <module>ONAP-PDP-REST</module>
71         <module>ONAP-PAP-REST</module>
72         <module>LogParser</module>
73         <module>PolicyEngineClient</module>
74         <module>BRMSGateway</module>
75         <module>POLICY-SDK-APP</module>
76         <module>ONAP-SDK-APP</module>
77         <module>packages</module>
78         <module>TestSuite</module>
79     </modules>
80     <reporting>
81         <plugins>
82             <plugin>
83                 <groupId>org.apache.maven.plugins</groupId>
84                 <artifactId>maven-javadoc-plugin</artifactId>
85                 <version>2.10.4</version>
86                 <configuration>
87                     <failOnError>false</failOnError>
88                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
89                     <docletArtifact>
90                         <groupId>org.umlgraph</groupId>
91                         <artifactId>umlgraph</artifactId>
92                         <version>5.6</version>
93                     </docletArtifact>
94                     <additionalparam>-views</additionalparam>
95                     <useStandardDocletOptions>true</useStandardDocletOptions>
96                 </configuration>
97             </plugin>
98         </plugins>
99     </reporting>
100     <dependencies>
101         <dependency>
102             <groupId>org.projectlombok</groupId>
103             <artifactId>lombok</artifactId>
104             <scope>provided</scope>
105         </dependency>
106         <dependency>
107             <groupId>javax.servlet</groupId>
108             <artifactId>javax.servlet-api</artifactId>
109         </dependency>
110         <dependency>
111             <!-- org.w3c.dom dependencies -->
112             <groupId>xml-apis</groupId>
113             <artifactId>xml-apis</artifactId>
114             <version>1.4.01</version>
115         </dependency>
116         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
117         <dependency>
118             <groupId>com.fasterxml.jackson.core</groupId>
119             <artifactId>jackson-databind</artifactId>
120             <version>${jackson.version}</version>
121         </dependency>
122         <dependency>
123             <groupId>junit</groupId>
124             <artifactId>junit</artifactId>
125             <scope>test</scope>
126         </dependency>
127         <dependency>
128             <groupId>org.assertj</groupId>
129             <artifactId>assertj-core</artifactId>
130             <scope>test</scope>
131         </dependency>
132         <dependency>
133             <groupId>org.springframework</groupId>
134             <artifactId>spring-mock</artifactId>
135             <version>2.0.8</version>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>com.mockrunner</groupId>
140             <artifactId>mockrunner</artifactId>
141             <version>0.3.1</version>
142             <scope>test</scope>
143         </dependency>
144         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
145         <dependency>
146             <groupId>org.powermock</groupId>
147             <artifactId>powermock-api-mockito2</artifactId>
148             <scope>test</scope>
149         </dependency>
150         <dependency>
151             <groupId>org.powermock</groupId>
152             <artifactId>powermock-module-junit4</artifactId>
153             <scope>test</scope>
154         </dependency>
155         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
156         <dependency>
157             <groupId>org.mockito</groupId>
158             <artifactId>mockito-all</artifactId>
159             <scope>test</scope>
160         </dependency>
161         <dependency>
162             <groupId>org.easymock</groupId>
163             <artifactId>easymock</artifactId>
164             <version>4.1</version>
165             <scope>test</scope>
166         </dependency>
167         <dependency>
168             <groupId>org.glassfish.jersey.inject</groupId>
169             <artifactId>jersey-hk2</artifactId>
170             <scope>test</scope>
171         </dependency>
172     </dependencies>
173     <build>
174         <plugins>
175             <plugin>
176                 <groupId>org.jacoco</groupId>
177                 <artifactId>jacoco-maven-plugin</artifactId>
178                 <executions>
179                     <execution>
180                         <id>pre-unit-test</id>
181                         <goals>
182                             <goal>prepare-agent</goal>
183                         </goals>
184                         <configuration>
185                             <destFile>${sonar.jacoco.reportPath}</destFile>
186                             <append>true</append>
187                         </configuration>
188                     </execution>
189                     <execution>
190                         <id>post-unit-test</id>
191                         <phase>test</phase>
192                         <goals>
193                             <goal>report</goal>
194                         </goals>
195                         <configuration>
196                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
197                         </configuration>
198                     </execution>
199                 </executions>
200             </plugin>
201             <plugin>
202                 <groupId>org.apache.maven.plugins</groupId>
203                 <artifactId>maven-deploy-plugin</artifactId>
204                 <configuration>
205                     <skip />
206                 </configuration>
207             </plugin>
208             <plugin>
209                 <groupId>org.apache.maven.plugins</groupId>
210                 <artifactId>maven-surefire-plugin</artifactId>
211             </plugin>
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-clean-plugin</artifactId>
215                 <version>2.4.1</version>
216             </plugin>
217             <plugin>
218                 <groupId>org.apache.maven.plugins</groupId>
219                 <artifactId>maven-compiler-plugin</artifactId>
220                 <configuration>
221                     <encoding>${project.encoding}</encoding>
222                     <release>${java.version}</release>
223                 </configuration>
224             </plugin>
225             <plugin>
226                 <groupId>org.apache.maven.plugins</groupId>
227                 <artifactId>maven-resources-plugin</artifactId>
228                 <configuration>
229                     <encoding>${project.encoding}</encoding>
230                 </configuration>
231             </plugin>
232             <plugin>
233                 <groupId>org.apache.maven.plugins</groupId>
234                 <artifactId>maven-war-plugin</artifactId>
235                 <configuration>
236                     <failOnMissingWebXml>false</failOnMissingWebXml>
237                 </configuration>
238             </plugin>
239             <!-- The Jetty plugin allows us to easily test the development build by
240                 running jetty:run on the command line. -->
241             <plugin>
242                 <groupId>org.eclipse.jetty</groupId>
243                 <artifactId>jetty-maven-plugin</artifactId>
244                 <version>${jetty.plugin.version}</version>
245                 <configuration>
246                     <scanIntervalSeconds>2</scanIntervalSeconds>
247                 </configuration>
248             </plugin>
249             <plugin>
250                 <groupId>com.fortify.ps.maven.plugin</groupId>
251                 <artifactId>sca-maven-plugin</artifactId>
252                 <version>4.20</version>
253             </plugin>
254             <plugin>
255                 <groupId>org.apache.maven.plugins</groupId>
256                 <artifactId>maven-site-plugin</artifactId>
257                 <dependencies>
258                     <dependency>
259                         <groupId>org.apache.maven.wagon</groupId>
260                         <artifactId>wagon-webdav-jackrabbit</artifactId>
261                         <version>2.10</version>
262                     </dependency>
263                 </dependencies>
264             </plugin>
265         </plugins>
266         <pluginManagement>
267             <plugins>
268                 <plugin>
269                     <groupId>org.jacoco</groupId>
270                     <artifactId>jacoco-maven-plugin</artifactId>
271                     <version>${jacoco.version}</version>
272                     <configuration>
273                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
274                              above -->
275                         <excludes>
276                             <exclude>**/gen/**</exclude>
277                             <exclude>**/generated-sources/**</exclude>
278                             <exclude>**/yang-gen/**</exclude>
279                             <exclude>**/pax/**</exclude>
280                         </excludes>
281                     </configuration>
282                     <executions>
283                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
284                              is passed as VM argument when Maven the Surefire plugin is executed. -->
285                         <execution>
286                             <id>pre-unit-test</id>
287                             <goals>
288                                 <goal>prepare-agent</goal>
289                             </goals>
290                             <configuration>
291                                 <destFile>${sonar.jacoco.reportPath}</destFile>
292                             </configuration>
293                         </execution>
294                         <!-- Ensures that the code coverage report for unit tests is created 
295                             after unit tests have been run. -->
296                         <execution>
297                             <id>post-unit-test</id>
298                             <phase>test</phase>
299                             <goals>
300                                 <goal>report</goal>
301                             </goals>
302                             <configuration>
303                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
304                             </configuration>
305                         </execution>
306                     </executions>
307                 </plugin>
308                 <plugin>
309                     <groupId>org.eclipse.m2e</groupId>
310                     <artifactId>lifecycle-mapping</artifactId>
311                     <version>1.0.0</version>
312                     <configuration>
313                         <lifecycleMappingMetadata>
314                             <pluginExecutions>
315                                 <pluginExecution>
316                                     <pluginExecutionFilter>
317                                         <groupId>org.apache.maven.plugins</groupId>
318                                         <artifactId>maven-checkstyle-plugin</artifactId>
319                                         <versionRange>2.17,)</versionRange>
320                                         <goals>
321                                             <goal>check</goal>
322                                         </goals>
323                                     </pluginExecutionFilter>
324                                     <action>
325                                         <ignore />
326                                     </action>
327                                 </pluginExecution>
328                             </pluginExecutions>
329                         </lifecycleMappingMetadata>
330                     </configuration>
331                 </plugin>
332             </plugins>
333         </pluginManagement>
334     </build>
335 </project>