Upgrade jetty to 9.3.24 security
[policy/drools-pdp.git] / pom.xml
1 <!-- 
2   ============LICENSE_START======================================================= 
3   ONAP Policy Engine - Drools PDP 
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
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
25         <parent>
26                 <groupId>org.onap.oparent</groupId>
27                 <artifactId>oparent</artifactId>
28                 <version>1.1.0</version>
29                 <relativePath />
30         </parent>
31
32         <groupId>org.onap.policy.drools-pdp</groupId>
33         <artifactId>drools-pdp</artifactId>
34         <version>1.3.0-SNAPSHOT</version>
35         <packaging>pom</packaging>
36         <name>policy-drools-pdp</name>
37
38         <description>The ONAP Policy Engine drools-based PDP Project</description>
39
40         <properties>
41                 <!-- Project common build settings -->
42                 <project.source.version>1.8</project.source.version>
43                 <project.target.version>1.8</project.target.version>
44
45                 <!-- Project path properties -->
46                 <nexusproxy>https://nexus.onap.org</nexusproxy>
47                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48                 <releases.path>content/repositories/releases/</releases.path>
49                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50                 <staging.path>content/repositories/staging/</staging.path>
51
52                 <!-- sonar/jacoco overrides -->
53                 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
54                         into one file shared across sub-modules -->
55                 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
56                 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57                 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
58
59                 <!-- Project common dependency versions -->
60                 <dmaap.version>1.1.3</dmaap.version>
61                 <cambria.version>1.2.1-oss</cambria.version>
62                 <jersey.version>2.25.1</jersey.version>
63                 <jersey.swagger.version>1.5.18</jersey.swagger.version>
64                 <jackson.version>2.9.5</jackson.version>
65                 <http.client.version>4.5.5</http.client.version>
66                 <http.core.version>4.4.4</http.core.version>
67                 <logback.version>1.2.3</logback.version>
68                 <junit.version>4.12</junit.version>
69                 <eclipselink.version>2.7.0</eclipselink.version>
70                 <mariadb.jdbc.version>2.1.0</mariadb.jdbc.version>
71                 <hibernate.core.version>5.2.10.Final</hibernate.core.version>
72                 <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
73                 <commons.io.version>2.5</commons.io.version>
74                 <guava.version>23.0</guava.version>
75                 <xml.apis.version>1.4.01</xml.apis.version>
76                 <jetty.version>9.3.24.v20180605</jetty.version>
77         </properties>
78
79         <modules>
80                 <module>policy-utils</module>
81                 <module>policy-core</module>
82                 <module>policy-endpoints</module>
83                 <module>policy-management</module>
84                 <module>feature-healthcheck</module>
85                 <module>feature-eelf</module>
86         <module>feature-pooling-dmaap</module>
87                 <module>feature-session-persistence</module>
88                 <module>feature-test-transaction</module>
89                 <module>api-state-management</module>
90                 <module>feature-state-management</module>
91                 <module>api-active-standby-management</module>
92                 <module>feature-active-standby-management</module>
93                 <module>feature-simulators</module>
94                 <module>feature-distributed-locking</module>
95                 <module>packages</module>
96         </modules>
97
98         <distributionManagement>
99                 <repository>
100                         <id>ecomp-releases</id>
101                         <name>ONAP Release Repository</name>
102                         <url>${nexusproxy}/${releases.path}</url>
103                 </repository>
104                 <snapshotRepository>
105                         <id>ecomp-snapshots</id>
106                         <name>ONAP Snapshot Repository</name>
107                         <url>${nexusproxy}/${snapshots.path}</url>
108                 </snapshotRepository>
109                 <site>
110                         <id>ecomp-site</id>
111                         <url>dav:${nexusproxy}${sitePath}</url>
112                 </site>
113         </distributionManagement>
114
115         <dependencyManagement>
116                 <dependencies>
117                         <dependency>
118                                 <groupId>com.google.guava</groupId>
119                                 <artifactId>guava</artifactId>
120                                 <version>${guava.version}</version>
121                         </dependency>
122                         <dependency>
123                                 <groupId>javax.ws.rs</groupId>
124                                 <artifactId>javax.ws.rs-api</artifactId>
125                                 <version>2.0.1</version>
126                         </dependency>
127                         <dependency>
128                                 <groupId>org.glassfish.hk2.external</groupId>
129                                 <artifactId>javax.inject</artifactId>
130                                 <version>2.4.0-b31</version>
131                         </dependency>
132                         <dependency>
133                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
134                                 <artifactId>jackson-jaxrs-base</artifactId>
135                                 <version>${jackson.version}</version>
136                         </dependency>
137                         <dependency>
138                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
139                                 <artifactId>jackson-jaxrs-json-provider</artifactId>
140                                 <version>${jackson.version}</version>
141                         </dependency>
142                         <dependency>
143                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
144                                 <artifactId>jackson-dataformat-xml</artifactId>
145                                 <version>${jackson.version}</version>
146                         </dependency>
147                         <dependency>
148                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
149                                 <artifactId>jackson-dataformat-yaml</artifactId>
150                                 <version>${jackson.version}</version>
151                         </dependency>
152                         <dependency>
153                                 <groupId>com.fasterxml.jackson.datatype</groupId>
154                                 <artifactId>jackson-datatype-joda</artifactId>
155                                 <version>${jackson.version}</version>
156                         </dependency>
157                         <dependency>
158                                 <groupId>org.glassfish.jersey.containers</groupId>
159                                 <artifactId>jersey-common</artifactId>
160                                 <version>${jersey.version}</version>
161                         </dependency>
162                         <dependency>
163                                 <groupId>org.glassfish.jersey.containers</groupId>
164                                 <artifactId>jersey-container-servlet-core</artifactId>
165                                 <version>${jersey.version}</version>
166                         </dependency>
167                         <dependency>
168                                 <groupId>io.swagger</groupId>
169                                 <artifactId>swagger-jersey2-jaxrs</artifactId>
170                                 <version>${jersey.swagger.version}</version>
171                         </dependency>
172                         <dependency>
173                                 <groupId>org.apache.httpcomponents</groupId>
174                                 <artifactId>httpclient</artifactId>
175                                 <version>${http.client.version}</version>
176                         </dependency>
177                         <dependency>
178                                 <groupId>org.apache.httpcomponents</groupId>
179                                 <artifactId>httpcore</artifactId>
180                                 <version>${http.core.version}</version>
181                         </dependency>
182                         <dependency>
183                                 <groupId>ch.qos.logback</groupId>
184                                 <artifactId>logback-classic</artifactId>
185                                 <version>${logback.version}</version>
186                         </dependency>
187                         <dependency>
188                                 <groupId>junit</groupId>
189                                 <artifactId>junit</artifactId>
190                                 <version>${junit.version}</version>
191                         </dependency>
192                         <dependency>
193                                 <groupId>org.eclipse.persistence</groupId>
194                                 <artifactId>eclipselink</artifactId>
195                                 <version>${eclipselink.version}</version>
196                         </dependency>
197                         <dependency>
198                                 <groupId>org.eclipse.persistence</groupId>
199                                 <artifactId>org.eclipse.persistence.jpa</artifactId>
200                                 <version>${eclipselink.version}</version>
201                         </dependency>
202                         <dependency>
203                                 <groupId>org.mariadb.jdbc</groupId>
204                                 <artifactId>mariadb-java-client</artifactId>
205                                 <version>${mariadb.jdbc.version}</version>
206                         </dependency>
207                         <dependency>
208                                 <groupId>org.hibernate</groupId>
209                                 <artifactId>hibernate-core</artifactId>
210                                 <version>${hibernate.core.version}</version>
211                         </dependency>
212                         <dependency>
213                                 <groupId>org.hibernate.common</groupId>
214                                 <artifactId>hibernate-commons-annotations</artifactId>
215                                 <version>${hibernate.commons.annotations.version}</version>
216                         </dependency>
217                         <dependency>
218                                 <groupId>commons-io</groupId>
219                                 <artifactId>commons-io</artifactId>
220                                 <version>${commons.io.version}</version>
221                         </dependency>
222                         <dependency>
223                                 <groupId>xml-apis</groupId>
224                                 <artifactId>xml-apis</artifactId>
225                                 <version>${xml.apis.version}</version>
226                         </dependency>
227                 </dependencies>
228         </dependencyManagement>
229
230         <build>
231                 <plugins>
232                         <plugin>
233                                 <groupId>org.jacoco</groupId>
234                                 <artifactId>jacoco-maven-plugin</artifactId>
235                                 <executions>
236                                         <execution>
237                                                 <id>pre-unit-test</id>
238                                                 <goals>
239                                                         <goal>prepare-agent</goal>
240                                                 </goals>
241                                                 <configuration>
242                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
243                                                         <append>true</append>
244                                                 </configuration>
245                                         </execution>
246                                         <execution>
247                                                 <id>post-unit-test</id>
248                                                 <phase>test</phase>
249                                                 <goals>
250                                                         <goal>report</goal>
251                                                 </goals>
252                                                 <configuration>
253                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
254                                                 </configuration>
255                                         </execution>
256                                 </executions>
257                         </plugin>
258                         <plugin>
259                                 <groupId>org.sonatype.plugins</groupId>
260                                 <artifactId>nexus-staging-maven-plugin</artifactId>
261                                 <extensions>true</extensions>
262                                 <configuration>
263                                         <nexusUrl>${nexusproxy}</nexusUrl>
264                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
265                                         <serverId>ecomp-staging</serverId>
266                                 </configuration>
267                         </plugin>
268                         <plugin>
269                                 <groupId>org.apache.maven.plugins</groupId>
270                                 <artifactId>maven-deploy-plugin</artifactId>
271                                 <configuration>
272                                         <skip />
273                                 </configuration>
274                         </plugin>
275                         <plugin>
276                                 <groupId>org.apache.maven.plugins</groupId>
277                                 <artifactId>maven-compiler-plugin</artifactId>
278                                 <version>3.0</version>
279                                 <configuration>
280                                         <encoding>${project.encoding}</encoding>
281                                         <source>${project.source.version}</source>
282                                         <target>${project.target.version}</target>
283                                 </configuration>
284                         </plugin>
285                         <plugin>
286                                 <groupId>org.apache.maven.plugins</groupId>
287                                 <artifactId>maven-resources-plugin</artifactId>
288                                 <version>2.6</version>
289                                 <configuration>
290                                         <encoding>${project.encoding}</encoding>
291                                 </configuration>
292                         </plugin>
293
294                         <plugin>
295                                 <groupId>org.apache.maven.plugins</groupId>
296                                 <artifactId>maven-site-plugin</artifactId>
297                                 <dependencies>
298                                         <dependency>
299                                                 <groupId>org.apache.maven.wagon</groupId>
300                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
301                                                 <version>2.10</version>
302                                         </dependency>
303                                 </dependencies>
304                         </plugin>
305                 </plugins>
306                 <pluginManagement>
307                         <plugins>
308                                 <plugin>
309                                         <groupId>org.jacoco</groupId>
310                                         <artifactId>jacoco-maven-plugin</artifactId>
311                                         <version>${jacoco.version}</version>
312                                         <configuration>
313                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
314                                                         above -->
315                                                 <excludes>
316                                                         <exclude>**/gen/**</exclude>
317                                                         <exclude>**/generated-sources/**</exclude>
318                                                         <exclude>**/yang-gen/**</exclude>
319                                                         <exclude>**/pax/**</exclude>
320                                                 </excludes>
321                                         </configuration>
322                                         <executions>
323                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
324                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
325                                                 <execution>
326                                                         <id>pre-unit-test</id>
327                                                         <goals>
328                                                                 <goal>prepare-agent</goal>
329                                                         </goals>
330                                                         <configuration>
331                                                                 <destFile>${sonar.jacoco.reportPath}</destFile>
332                                                         </configuration>
333                                                 </execution>
334                                                 <!-- Ensures that the code coverage report for unit tests is created 
335                                                         after unit tests have been run. -->
336                                                 <execution>
337                                                         <id>post-unit-test</id>
338                                                         <phase>test</phase>
339                                                         <goals>
340                                                                 <goal>report</goal>
341                                                         </goals>
342                                                         <configuration>
343                                                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
344                                                         </configuration>
345                                                 </execution>
346                                         </executions>
347                                 </plugin>
348                                 <plugin>
349                                         <groupId>org.eclipse.m2e</groupId>
350                                         <artifactId>lifecycle-mapping</artifactId>
351                                         <version>1.0.0</version>
352                                         <configuration>
353                                                 <lifecycleMappingMetadata>
354                                                         <pluginExecutions>
355                                                                 <pluginExecution>
356                                                                         <pluginExecutionFilter>
357                                                                                 <groupId>org.apache.maven.plugins</groupId>
358                                                                                 <artifactId>maven-checkstyle-plugin</artifactId>
359                                                                                 <versionRange>2.17,)</versionRange>
360                                                                                 <goals>
361                                                                                         <goal>check</goal>
362                                                                                 </goals>
363                                                                         </pluginExecutionFilter>
364                                                                         <action>
365                                                                                 <ignore />
366                                                                         </action>
367                                                                 </pluginExecution>
368                                                         </pluginExecutions>
369                                                 </lifecycleMappingMetadata>
370                                         </configuration>
371                                 </plugin>
372                         </plugins>
373                 </pluginManagement>
374         </build>
375         <reporting>
376                 <plugins>
377                         <plugin>
378                                 <groupId>org.apache.maven.plugins</groupId>
379                                 <artifactId>maven-javadoc-plugin</artifactId>
380                                 <version>2.10.4</version>
381                                 <configuration>
382                                         <failOnError>false</failOnError>
383                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
384                                         <docletArtifact>
385                                                 <groupId>org.umlgraph</groupId>
386                                                 <artifactId>umlgraph</artifactId>
387                                                 <version>5.6</version>
388                                         </docletArtifact>
389                                         <additionalparam>-views</additionalparam>
390                                         <useStandardDocletOptions>true</useStandardDocletOptions>
391                                 </configuration>
392                         </plugin>
393                 </plugins>
394         </reporting>
395
396 </project>