Upgrade elasticsearch to 6.4.1
[policy/engine.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP Policy Engine
4   ================================================================================
5   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19   -->
20 <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">
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.policy.parent</groupId>
24         <artifactId>integration</artifactId>
25         <version>2.1.0-SNAPSHOT</version>
26         <relativePath />
27     </parent>
28     <groupId>org.onap.policy.engine</groupId>
29     <artifactId>PolicyEngineSuite</artifactId>
30     <version>1.4.0-SNAPSHOT</version>
31     <packaging>pom</packaging>
32     <name>policy-engine</name>
33     <description>The ONAP Policy Engine main pom</description>
34     <properties>
35         <!-- Project common build settings -->
36         <project.source.version>1.8</project.source.version>
37         <project.target.version>1.8</project.target.version>
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.18.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.4.1</elasticsearch.version>
61         <version.policy.common>1.4.0-SNAPSHOT</version.policy.common>
62         <version.policy.drools-application>1.4.0-SNAPSHOT</version.policy.drools-application>
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>javax.servlet</groupId>
103             <artifactId>javax.servlet-api</artifactId>
104         </dependency>
105         <dependency>
106             <!-- org.w3c.dom dependencies -->
107             <groupId>xml-apis</groupId>
108             <artifactId>xml-apis</artifactId>
109             <version>1.3.03</version>
110         </dependency>
111         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
112         <dependency>
113             <groupId>com.fasterxml.jackson.core</groupId>
114             <artifactId>jackson-databind</artifactId>
115             <version>${jackson.version}</version>
116         </dependency>
117         <dependency>
118             <groupId>junit</groupId>
119             <artifactId>junit</artifactId>
120             <scope>test</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.springframework</groupId>
124             <artifactId>spring-mock</artifactId>
125             <version>2.0.8</version>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>com.mockrunner</groupId>
130             <artifactId>mockrunner</artifactId>
131             <version>0.3.1</version>
132             <scope>test</scope>
133         </dependency>
134         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
135         <dependency>
136             <groupId>org.powermock</groupId>
137             <artifactId>powermock-api-mockito</artifactId>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>org.powermock</groupId>
142             <artifactId>powermock-module-junit4</artifactId>
143             <scope>test</scope>
144         </dependency>
145         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
146         <dependency>
147             <groupId>org.mockito</groupId>
148             <artifactId>mockito-all</artifactId>
149             <scope>test</scope>
150         </dependency>
151         <dependency>
152             <groupId>org.easymock</groupId>
153             <artifactId>easymock</artifactId>
154             <version>3.1</version>
155             <scope>test</scope>
156         </dependency>
157     </dependencies>
158     <build>
159         <plugins>
160             <plugin>
161                 <groupId>org.jacoco</groupId>
162                 <artifactId>jacoco-maven-plugin</artifactId>
163                 <executions>
164                     <execution>
165                         <id>pre-unit-test</id>
166                         <goals>
167                             <goal>prepare-agent</goal>
168                         </goals>
169                         <configuration>
170                             <destFile>${sonar.jacoco.reportPath}</destFile>
171                             <append>true</append>
172                         </configuration>
173                     </execution>
174                     <execution>
175                         <id>post-unit-test</id>
176                         <phase>test</phase>
177                         <goals>
178                             <goal>report</goal>
179                         </goals>
180                         <configuration>
181                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
182                         </configuration>
183                     </execution>
184                 </executions>
185             </plugin>
186             <plugin>
187                 <groupId>org.sonatype.plugins</groupId>
188                 <artifactId>nexus-staging-maven-plugin</artifactId>
189                 <extensions>true</extensions>
190                 <configuration>
191                     <nexusUrl>${nexusproxy}</nexusUrl>
192                     <stagingProfileId>176c31dfe190a</stagingProfileId>
193                     <serverId>ecomp-staging</serverId>
194                 </configuration>
195             </plugin>
196             <plugin>
197                 <groupId>org.apache.maven.plugins</groupId>
198                 <artifactId>maven-deploy-plugin</artifactId>
199                 <configuration>
200                     <skip />
201                 </configuration>
202             </plugin>
203             <plugin>
204                 <groupId>org.apache.maven.plugins</groupId>
205                 <artifactId>maven-surefire-plugin</artifactId>
206             </plugin>
207             <plugin>
208                 <groupId>org.apache.maven.plugins</groupId>
209                 <artifactId>maven-clean-plugin</artifactId>
210                 <version>2.4.1</version>
211             </plugin>
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-compiler-plugin</artifactId>
215                 <configuration>
216                     <encoding>${project.encoding}</encoding>
217                     <source>${project.source.version}</source>
218                     <target>${project.target.version}</target>
219                 </configuration>
220             </plugin>
221             <plugin>
222                 <groupId>org.apache.maven.plugins</groupId>
223                 <artifactId>maven-resources-plugin</artifactId>
224                 <configuration>
225                     <encoding>${project.encoding}</encoding>
226                 </configuration>
227             </plugin>
228             <plugin>
229                 <groupId>org.apache.maven.plugins</groupId>
230                 <artifactId>maven-war-plugin</artifactId>
231                 <configuration>
232                     <failOnMissingWebXml>false</failOnMissingWebXml>
233                 </configuration>
234             </plugin>
235             <!-- The Jetty plugin allows us to easily test the development build by
236                 running jetty:run on the command line. -->
237             <plugin>
238                 <groupId>org.eclipse.jetty</groupId>
239                 <artifactId>jetty-maven-plugin</artifactId>
240                 <version>${jetty.plugin.version}</version>
241                 <configuration>
242                     <scanIntervalSeconds>2</scanIntervalSeconds>
243                 </configuration>
244             </plugin>
245             <plugin>
246                 <groupId>com.fortify.ps.maven.plugin</groupId>
247                 <artifactId>sca-maven-plugin</artifactId>
248                 <version>4.20</version>
249             </plugin>
250             <plugin>
251                 <groupId>org.apache.maven.plugins</groupId>
252                 <artifactId>maven-site-plugin</artifactId>
253                 <dependencies>
254                     <dependency>
255                         <groupId>org.apache.maven.wagon</groupId>
256                         <artifactId>wagon-webdav-jackrabbit</artifactId>
257                         <version>2.10</version>
258                     </dependency>
259                 </dependencies>
260             </plugin>
261         </plugins>
262         <pluginManagement>
263             <plugins>
264                 <plugin>
265                     <groupId>org.jacoco</groupId>
266                     <artifactId>jacoco-maven-plugin</artifactId>
267                     <version>${jacoco.version}</version>
268                     <configuration>
269                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
270                              above -->
271                         <excludes>
272                             <exclude>**/gen/**</exclude>
273                             <exclude>**/generated-sources/**</exclude>
274                             <exclude>**/yang-gen/**</exclude>
275                             <exclude>**/pax/**</exclude>
276                         </excludes>
277                     </configuration>
278                     <executions>
279                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
280                              is passed as VM argument when Maven the Surefire plugin is executed. -->
281                         <execution>
282                             <id>pre-unit-test</id>
283                             <goals>
284                                 <goal>prepare-agent</goal>
285                             </goals>
286                             <configuration>
287                                 <destFile>${sonar.jacoco.reportPath}</destFile>
288                             </configuration>
289                         </execution>
290                         <!-- Ensures that the code coverage report for unit tests is created 
291                             after unit tests have been run. -->
292                         <execution>
293                             <id>post-unit-test</id>
294                             <phase>test</phase>
295                             <goals>
296                                 <goal>report</goal>
297                             </goals>
298                             <configuration>
299                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
300                             </configuration>
301                         </execution>
302                     </executions>
303                 </plugin>
304                 <plugin>
305                     <groupId>org.eclipse.m2e</groupId>
306                     <artifactId>lifecycle-mapping</artifactId>
307                     <version>1.0.0</version>
308                     <configuration>
309                         <lifecycleMappingMetadata>
310                             <pluginExecutions>
311                                 <pluginExecution>
312                                     <pluginExecutionFilter>
313                                         <groupId>org.apache.maven.plugins</groupId>
314                                         <artifactId>maven-checkstyle-plugin</artifactId>
315                                         <versionRange>2.17,)</versionRange>
316                                         <goals>
317                                             <goal>check</goal>
318                                         </goals>
319                                     </pluginExecutionFilter>
320                                     <action>
321                                         <ignore />
322                                     </action>
323                                 </pluginExecution>
324                             </pluginExecutions>
325                         </lifecycleMappingMetadata>
326                     </configuration>
327                 </plugin>
328             </plugins>
329         </pluginManagement>
330     </build>
331 </project>