Upgrade hibernator and netty
[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"
21         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22         <modelVersion>4.0.0</modelVersion>
23         <parent>
24                 <groupId>org.onap.oparent</groupId>
25                 <artifactId>oparent</artifactId>
26                 <version>1.1.0</version>
27                 <relativePath/>
28         </parent>
29         <groupId>org.onap.policy.engine</groupId>
30         <artifactId>PolicyEngineSuite</artifactId>
31         <version>1.2.1-SNAPSHOT</version>
32         <packaging>pom</packaging>
33         <name>policy-engine</name>
34         <description>The ONAP Policy Engine main pom</description>
35         <properties>
36                 <!-- Project common build settings -->
37                 <project.source.version>1.8</project.source.version>
38                 <project.target.version>1.8</project.target.version>
39                 <project.encoding>UTF-8</project.encoding>
40                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41                 <!-- Project path properties -->
42                 <nexusproxy>https://nexus.onap.org</nexusproxy>
43                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
44                 <releases.path>content/repositories/releases/</releases.path>
45                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
46                 <staging.path>content/repositories/staging/</staging.path>
47
48                 <!-- sonar/jacoco overrides -->
49                 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
50                         into one file shared across sub-modules -->
51                 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
52                 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
53                 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
54
55                 <!-- Shared between policy/* project repositories - same version -->
56                 <h2.version>1.4.186</h2.version>
57
58                 <!-- Shared between policy/* project repositories - different version -->
59
60                 <!-- Project common dependency versions -->
61                 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
62                 <dmaap.version>1.1.3</dmaap.version>
63                 <httpclient.version>4.5.5</httpclient.version>
64                 <jackson.version>2.9.4</jackson.version>
65                 <commons.fileupload.version>1.3.3</commons.fileupload.version>
66         </properties>
67         <modules>
68                 <module>PolicyEngineUtils</module>
69                 <module>ONAP-XACML</module>
70                 <module>ONAP-REST</module>
71                 <module>PolicyEngineAPI</module>
72                 <module>ONAP-PDP</module>
73                 <module>ONAP-PDP-REST</module>
74                 <module>ONAP-PAP-REST</module>
75                 <module>LogParser</module>
76                 <module>PolicyEngineClient</module>
77                 <module>BRMSGateway</module>
78                 <module>POLICY-SDK-APP</module>
79                 <module>ONAP-SDK-APP</module>
80                 <module>packages</module>
81         </modules>
82         <distributionManagement>
83                 <repository>
84                         <id>ecomp-releases</id>
85                         <name>ONAP Release Repository</name>
86                         <url>${nexusproxy}/${releases.path}</url>
87                 </repository>
88                 <snapshotRepository>
89                         <id>ecomp-snapshots</id>
90                         <name>ONAP Snapshot Repository</name>
91                         <url>${nexusproxy}/${snapshots.path}</url>
92                 </snapshotRepository>
93                 <site>
94                         <id>ecomp-site</id>
95                         <url>dav:${nexusproxy}${sitePath}</url>
96                 </site>
97         </distributionManagement>
98         <reporting>
99           <plugins>
100             <plugin>
101               <groupId>org.apache.maven.plugins</groupId>
102               <artifactId>maven-javadoc-plugin</artifactId>
103               <version>2.10.4</version>
104               <configuration>
105                 <failOnError>false</failOnError>
106                 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
107                 <docletArtifact>
108                   <groupId>org.umlgraph</groupId>
109                   <artifactId>umlgraph</artifactId>
110                   <version>5.6</version>
111                 </docletArtifact>
112                 <additionalparam>-views</additionalparam>
113                 <useStandardDocletOptions>true</useStandardDocletOptions>
114               </configuration>
115             </plugin>
116           </plugins>
117         </reporting>
118         <dependencyManagement>
119                 <dependencies>
120                         <dependency>
121                                 <groupId>com.h2database</groupId>
122                                 <artifactId>h2</artifactId>
123                                 <version>${h2.version}</version>
124                                 <scope>test</scope>
125                         </dependency>
126                 </dependencies>
127         </dependencyManagement>
128         <dependencies>
129                 <dependency>
130                         <groupId>javax.servlet</groupId>
131                         <artifactId>javax.servlet-api</artifactId>
132                         <version>3.1.0</version>
133                 </dependency>
134                 <dependency>
135                         <!-- org.w3c.dom dependencies -->
136                         <groupId>xml-apis</groupId>
137                         <artifactId>xml-apis</artifactId>
138                         <version>1.3.03</version>
139                 </dependency>
140                 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
141                 <dependency>
142                     <groupId>com.fasterxml.jackson.core</groupId>
143                     <artifactId>jackson-databind</artifactId>
144                         <version>${jackson.version}</version>
145                 </dependency>
146                 <dependency>
147                         <groupId>junit</groupId>
148                         <artifactId>junit</artifactId>
149                         <version>4.12</version>
150                         <scope>test</scope>
151                 </dependency>
152                 <dependency>
153                         <groupId>org.springframework</groupId>
154                         <artifactId>spring-mock</artifactId>
155                         <version>2.0.8</version>
156                         <scope>test</scope>
157                 </dependency>
158                 <dependency>
159                         <groupId>com.mockrunner</groupId>
160                         <artifactId>mockrunner</artifactId>
161                         <version>0.3.1</version>
162                         <scope>test</scope>
163                 </dependency>
164                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
165                 <dependency>
166                 <groupId>org.powermock</groupId>
167                 <artifactId>powermock-api-mockito</artifactId>
168                 <version>1.7.3</version>
169                 <scope>test</scope>
170                 </dependency>
171                 <dependency>
172             <groupId>org.powermock</groupId>
173             <artifactId>powermock-module-junit4</artifactId>
174             <version>1.7.3</version>
175             <scope>test</scope>
176         </dependency>
177                 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
178                 <dependency>
179                     <groupId>org.mockito</groupId>
180                     <artifactId>mockito-all</artifactId>
181                     <version>1.10.19</version>
182                     <scope>test</scope>
183                 </dependency>
184                 <dependency>
185                     <groupId>org.easymock</groupId>
186                     <artifactId>easymock</artifactId>
187                     <version>3.1</version>
188                     <scope>test</scope>
189                 </dependency>   
190         </dependencies>
191         <build>
192                 <plugins>
193                         <plugin>
194                                 <groupId>org.jacoco</groupId>
195                                 <artifactId>jacoco-maven-plugin</artifactId>
196                                 <executions>
197                                         <execution>
198                                                 <id>pre-unit-test</id>
199                                                 <goals>
200                                                         <goal>prepare-agent</goal>
201                                                 </goals>
202                                                 <configuration>
203                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
204                                                         <append>true</append>
205                                                 </configuration>
206                                         </execution>
207                                         <execution>
208                                                 <id>post-unit-test</id>
209                                                 <phase>test</phase>
210                                                 <goals>
211                                                         <goal>report</goal>
212                                                 </goals>
213                                                 <configuration>
214                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
215                                                 </configuration>
216                                         </execution>
217                                 </executions>
218                         </plugin>
219                         <plugin>
220                                 <groupId>org.sonatype.plugins</groupId>
221                                 <artifactId>nexus-staging-maven-plugin</artifactId>
222                                 <extensions>true</extensions>
223                                 <configuration>
224                                         <nexusUrl>${nexusproxy}</nexusUrl>
225                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
226                                         <serverId>ecomp-staging</serverId>
227                                 </configuration>
228                         </plugin>
229                         <plugin>
230                                 <groupId>org.apache.maven.plugins</groupId>
231                                 <artifactId>maven-deploy-plugin</artifactId>
232                                 <configuration>
233                                         <skip />
234                                 </configuration>
235                         </plugin>
236                         <plugin>
237                                 <groupId>org.apache.maven.plugins</groupId>
238                                 <artifactId>maven-surefire-plugin</artifactId>
239                         </plugin>
240                         <plugin>
241                                 <groupId>org.apache.maven.plugins</groupId>
242                                 <artifactId>maven-clean-plugin</artifactId>
243                                 <version>2.4.1</version>
244                         </plugin>
245                         <plugin>
246                                 <groupId>org.apache.maven.plugins</groupId>
247                                 <artifactId>maven-compiler-plugin</artifactId>
248                                 <version>3.0</version>
249                                 <configuration>
250                                         <encoding>${project.encoding}</encoding>
251                                         <source>${project.source.version}</source>
252                                         <target>${project.target.version}</target>
253                                 </configuration>
254                         </plugin>
255                         <plugin>
256                                 <groupId>org.apache.maven.plugins</groupId>
257                                 <artifactId>maven-resources-plugin</artifactId>
258                                 <version>2.6</version>
259                                 <configuration>
260                                         <encoding>${project.encoding}</encoding>
261                                 </configuration>
262                         </plugin>
263                         <plugin>
264                                 <groupId>org.apache.maven.plugins</groupId>
265                                 <artifactId>maven-war-plugin</artifactId>
266                                 <version>2.3</version>
267                                 <configuration>
268                                         <failOnMissingWebXml>false</failOnMissingWebXml>
269                                 </configuration>
270                         </plugin>
271                         <!-- The Jetty plugin allows us to easily test the development build by
272                                 running jetty:run on the command line. -->
273                         <plugin>
274                                 <groupId>org.eclipse.jetty</groupId>
275                                 <artifactId>jetty-maven-plugin</artifactId>
276                                 <version>${jetty.plugin.version}</version>
277                                 <configuration>
278                                         <scanIntervalSeconds>2</scanIntervalSeconds>
279                                 </configuration>
280                         </plugin>
281                         <plugin>
282                                 <groupId>com.fortify.ps.maven.plugin</groupId>
283                                 <artifactId>sca-maven-plugin</artifactId>
284                                 <version>4.20</version>
285                         </plugin>
286                         <plugin>
287                           <groupId>org.apache.maven.plugins</groupId>
288                           <artifactId>maven-site-plugin</artifactId>
289                           <dependencies>
290                             <dependency>
291                               <groupId>org.apache.maven.wagon</groupId>
292                               <artifactId>wagon-webdav-jackrabbit</artifactId>
293                               <version>2.10</version>
294                             </dependency>
295                           </dependencies>
296                         </plugin>
297                 </plugins>
298         <pluginManagement>
299             <plugins>
300                                 <plugin>
301                                         <groupId>org.jacoco</groupId>
302                                         <artifactId>jacoco-maven-plugin</artifactId>
303                                         <version>${jacoco.version}</version>
304                                         <configuration>
305                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
306                                                         above -->
307                                                 <excludes>
308                                                         <exclude>**/gen/**</exclude>
309                                                         <exclude>**/generated-sources/**</exclude>
310                                                         <exclude>**/yang-gen/**</exclude>
311                                                         <exclude>**/pax/**</exclude>
312                                                 </excludes>
313                                         </configuration>
314                                         <executions>
315                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
316                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
317                                                 <execution>
318                                                         <id>pre-unit-test</id>
319                                                         <goals>
320                                                                 <goal>prepare-agent</goal>
321                                                         </goals>
322                                                         <configuration>
323                                                                 <destFile>${sonar.jacoco.reportPath}</destFile>
324                                                         </configuration>
325                                                 </execution>
326                                                 <!-- Ensures that the code coverage report for unit tests is created 
327                                                         after unit tests have been run. -->
328                                                 <execution>
329                                                         <id>post-unit-test</id>
330                                                         <phase>test</phase>
331                                                         <goals>
332                                                                 <goal>report</goal>
333                                                         </goals>
334                                                         <configuration>
335                                                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
336                                                         </configuration>
337                                                 </execution>
338                                         </executions>
339                                 </plugin>
340                 <plugin>
341                     <groupId>org.eclipse.m2e</groupId>
342                     <artifactId>lifecycle-mapping</artifactId>
343                     <version>1.0.0</version>
344                     <configuration>
345                         <lifecycleMappingMetadata>
346                             <pluginExecutions>
347                                 <pluginExecution>
348                                     <pluginExecutionFilter>
349                                         <groupId>org.apache.maven.plugins</groupId>
350                                         <artifactId>maven-checkstyle-plugin</artifactId>
351                                         <versionRange>2.17,)</versionRange>
352                                         <goals>
353                                             <goal>check</goal>
354                                         </goals>
355                                     </pluginExecutionFilter>
356                                     <action>
357                                         <ignore />
358                                     </action>
359                                 </pluginExecution>
360                             </pluginExecutions>
361                         </lifecycleMappingMetadata>
362                     </configuration>
363                 </plugin>
364             </plugins>
365         </pluginManagement>
366         </build>
367 </project>