Force dependency upgrade and exclusions
[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>0.1.1</version>
29                 <relativePath />
30         </parent>
31
32         <groupId>org.onap.policy.drools-pdp</groupId>
33         <artifactId>drools-pdp</artifactId>
34         <version>1.2.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.0.0</dmaap.version>
61                 <cambria.version>0.0.1</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.4</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         </properties>
77
78         <modules>
79                 <module>policy-utils</module>
80                 <module>policy-core</module>
81                 <module>policy-endpoints</module>
82                 <module>policy-management</module>
83                 <module>feature-healthcheck</module>
84                 <module>feature-eelf</module>
85                 <module>feature-session-persistence</module>
86                 <module>feature-test-transaction</module>
87                 <module>api-state-management</module>
88                 <module>feature-state-management</module>
89                 <module>api-active-standby-management</module>
90                 <module>feature-active-standby-management</module>
91                 <module>feature-simulators</module>
92                 <module>packages</module>
93         </modules>
94
95         <distributionManagement>
96                 <repository>
97                         <id>ecomp-releases</id>
98                         <name>ONAP Release Repository</name>
99                         <url>${nexusproxy}/${releases.path}</url>
100                 </repository>
101                 <snapshotRepository>
102                         <id>ecomp-snapshots</id>
103                         <name>ONAP Snapshot Repository</name>
104                         <url>${nexusproxy}/${snapshots.path}</url>
105                 </snapshotRepository>
106                 <site>
107                         <id>ecomp-site</id>
108                         <url>dav:${nexusproxy}${sitePath}</url>
109                 </site>
110         </distributionManagement>
111
112         <repositories>
113                 <!-- LF repositories -->
114                 <repository>
115                         <id>ecomp-releases</id>
116                         <name>Release Repository</name>
117                         <url>${nexusproxy}/content/repositories/releases/</url>
118                 </repository>
119                 <repository>
120                         <id>ecomp-staging</id>
121                         <name>Staging Repository</name>
122                         <url>${nexusproxy}/content/repositories/staging/</url>
123                 </repository>
124                 <repository>
125                         <id>ecomp-snapshots</id>
126                         <name>Snapshots Repository</name>
127                         <url>${nexusproxy}/content/repositories/snapshots/</url>
128                 </repository>
129                 <repository>
130                         <id>ecomp-public</id>
131                         <name>Public Repository</name>
132                         <url>${nexusproxy}/content/repositories/public/</url>
133                 </repository>
134                 <!-- LF repositories END -->
135         </repositories>
136
137         <dependencyManagement>
138                 <dependencies>
139                         <dependency>
140                                 <groupId>com.google.guava</groupId>
141                                 <artifactId>guava</artifactId>
142                                 <version>${guava.version}</version>
143                         </dependency>
144                         <dependency>
145                                 <groupId>javax.ws.rs</groupId>
146                                 <artifactId>javax.ws.rs-api</artifactId>
147                                 <version>2.0.1</version>
148                         </dependency>
149                         <dependency>
150                                 <groupId>org.glassfish.hk2.external</groupId>
151                                 <artifactId>javax.inject</artifactId>
152                                 <version>2.4.0-b31</version>
153                         </dependency>
154                         <dependency>
155                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
156                                 <artifactId>jackson-jaxrs-base</artifactId>
157                                 <version>${jackson.version}</version>
158                         </dependency>
159                         <dependency>
160                                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
161                                 <artifactId>jackson-jaxrs-json-provider</artifactId>
162                                 <version>${jackson.version}</version>
163                         </dependency>
164                         <dependency>
165                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
166                                 <artifactId>jackson-dataformat-xml</artifactId>
167                                 <version>${jackson.version}</version>
168                         </dependency>
169                         <dependency>
170                                 <groupId>com.fasterxml.jackson.dataformat</groupId>
171                                 <artifactId>jackson-dataformat-yaml</artifactId>
172                                 <version>${jackson.version}</version>
173                         </dependency>
174                         <dependency>
175                                 <groupId>com.fasterxml.jackson.datatype</groupId>
176                                 <artifactId>jackson-datatype-joda</artifactId>
177                                 <version>${jackson.version}</version>
178                         </dependency>
179                         <dependency>
180                                 <groupId>org.glassfish.jersey.containers</groupId>
181                                 <artifactId>jersey-common</artifactId>
182                                 <version>${jersey.version}</version>
183                         </dependency>
184                         <dependency>
185                                 <groupId>org.glassfish.jersey.containers</groupId>
186                                 <artifactId>jersey-container-servlet-core</artifactId>
187                                 <version>${jersey.version}</version>
188                         </dependency>
189                         <dependency>
190                                 <groupId>io.swagger</groupId>
191                                 <artifactId>swagger-jersey2-jaxrs</artifactId>
192                                 <version>${jersey.swagger.version}</version>
193                         </dependency>
194                         <dependency>
195                                 <groupId>org.apache.httpcomponents</groupId>
196                                 <artifactId>httpclient</artifactId>
197                                 <version>${http.client.version}</version>
198                         </dependency>
199                         <dependency>
200                                 <groupId>org.apache.httpcomponents</groupId>
201                                 <artifactId>httpcore</artifactId>
202                                 <version>${http.core.version}</version>
203                         </dependency>
204                         <dependency>
205                                 <groupId>ch.qos.logback</groupId>
206                                 <artifactId>logback-classic</artifactId>
207                                 <version>${logback.version}</version>
208                         </dependency>
209                         <dependency>
210                                 <groupId>junit</groupId>
211                                 <artifactId>junit</artifactId>
212                                 <version>${junit.version}</version>
213                         </dependency>
214                         <dependency>
215                                 <groupId>org.eclipse.persistence</groupId>
216                                 <artifactId>eclipselink</artifactId>
217                                 <version>${eclipselink.version}</version>
218                         </dependency>
219                         <dependency>
220                                 <groupId>org.eclipse.persistence</groupId>
221                                 <artifactId>org.eclipse.persistence.jpa</artifactId>
222                                 <version>${eclipselink.version}</version>
223                         </dependency>
224                         <dependency>
225                                 <groupId>org.mariadb.jdbc</groupId>
226                                 <artifactId>mariadb-java-client</artifactId>
227                                 <version>${mariadb.jdbc.version}</version>
228                         </dependency>
229                         <dependency>
230                                 <groupId>org.hibernate</groupId>
231                                 <artifactId>hibernate-core</artifactId>
232                                 <version>${hibernate.core.version}</version>
233                         </dependency>
234                         <dependency>
235                                 <groupId>org.hibernate.common</groupId>
236                                 <artifactId>hibernate-commons-annotations</artifactId>
237                                 <version>${hibernate.commons.annotations.version}</version>
238                         </dependency>
239                         <dependency>
240                                 <groupId>commons-io</groupId>
241                                 <artifactId>commons-io</artifactId>
242                                 <version>${commons.io.version}</version>
243                         </dependency>
244                         <dependency>
245                                 <groupId>xml-apis</groupId>
246                                 <artifactId>xml-apis</artifactId>
247                                 <version>${xml.apis.version}</version>
248                         </dependency>
249                 </dependencies>
250         </dependencyManagement>
251
252         <build>
253                 <plugins>
254                         <plugin>
255                                 <groupId>org.jacoco</groupId>
256                                 <artifactId>jacoco-maven-plugin</artifactId>
257                                 <executions>
258                                         <execution>
259                                                 <id>pre-unit-test</id>
260                                                 <goals>
261                                                         <goal>prepare-agent</goal>
262                                                 </goals>
263                                                 <configuration>
264                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
265                                                         <append>true</append>
266                                                 </configuration>
267                                         </execution>
268                                         <execution>
269                                                 <id>post-unit-test</id>
270                                                 <phase>test</phase>
271                                                 <goals>
272                                                         <goal>report</goal>
273                                                 </goals>
274                                                 <configuration>
275                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
276                                                 </configuration>
277                                         </execution>
278                                 </executions>
279                         </plugin>
280                         <plugin>
281                                 <groupId>org.sonatype.plugins</groupId>
282                                 <artifactId>nexus-staging-maven-plugin</artifactId>
283                                 <extensions>true</extensions>
284                                 <configuration>
285                                         <nexusUrl>${nexusproxy}</nexusUrl>
286                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
287                                         <serverId>ecomp-staging</serverId>
288                                 </configuration>
289                         </plugin>
290                         <plugin>
291                                 <groupId>org.apache.maven.plugins</groupId>
292                                 <artifactId>maven-deploy-plugin</artifactId>
293                                 <configuration>
294                                         <skip />
295                                 </configuration>
296                         </plugin>
297                         <plugin>
298                                 <groupId>org.apache.maven.plugins</groupId>
299                                 <artifactId>maven-compiler-plugin</artifactId>
300                                 <version>3.0</version>
301                                 <configuration>
302                                         <encoding>${project.encoding}</encoding>
303                                         <source>${project.source.version}</source>
304                                         <target>${project.target.version}</target>
305                                 </configuration>
306                         </plugin>
307                         <plugin>
308                                 <groupId>org.apache.maven.plugins</groupId>
309                                 <artifactId>maven-resources-plugin</artifactId>
310                                 <version>2.6</version>
311                                 <configuration>
312                                         <encoding>${project.encoding}</encoding>
313                                 </configuration>
314                         </plugin>
315
316                         <plugin>
317                                 <groupId>org.apache.maven.plugins</groupId>
318                                 <artifactId>maven-site-plugin</artifactId>
319                                 <dependencies>
320                                         <dependency>
321                                                 <groupId>org.apache.maven.wagon</groupId>
322                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
323                                                 <version>2.10</version>
324                                         </dependency>
325                                 </dependencies>
326                         </plugin>
327                 </plugins>
328                 <pluginManagement>
329                         <plugins>
330                                 <plugin>
331                                         <groupId>org.jacoco</groupId>
332                                         <artifactId>jacoco-maven-plugin</artifactId>
333                                         <version>${jacoco.version}</version>
334                                         <configuration>
335                                                 <!-- Note: This exclusion list should match <sonar.exclusions> property 
336                                                         above -->
337                                                 <excludes>
338                                                         <exclude>**/gen/**</exclude>
339                                                         <exclude>**/generated-sources/**</exclude>
340                                                         <exclude>**/yang-gen/**</exclude>
341                                                         <exclude>**/pax/**</exclude>
342                                                 </excludes>
343                                         </configuration>
344                                         <executions>
345                                                 <!-- Prepares the property pointing to the JaCoCo runtime agent which 
346                                                         is passed as VM argument when Maven the Surefire plugin is executed. -->
347                                                 <execution>
348                                                         <id>pre-unit-test</id>
349                                                         <goals>
350                                                                 <goal>prepare-agent</goal>
351                                                         </goals>
352                                                         <configuration>
353                                                                 <destFile>${sonar.jacoco.reportPath}</destFile>
354                                                         </configuration>
355                                                 </execution>
356                                                 <!-- Ensures that the code coverage report for unit tests is created 
357                                                         after unit tests have been run. -->
358                                                 <execution>
359                                                         <id>post-unit-test</id>
360                                                         <phase>test</phase>
361                                                         <goals>
362                                                                 <goal>report</goal>
363                                                         </goals>
364                                                         <configuration>
365                                                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
366                                                         </configuration>
367                                                 </execution>
368                                         </executions>
369                                 </plugin>
370                                 <plugin>
371                                         <groupId>org.eclipse.m2e</groupId>
372                                         <artifactId>lifecycle-mapping</artifactId>
373                                         <version>1.0.0</version>
374                                         <configuration>
375                                                 <lifecycleMappingMetadata>
376                                                         <pluginExecutions>
377                                                                 <pluginExecution>
378                                                                         <pluginExecutionFilter>
379                                                                                 <groupId>org.apache.maven.plugins</groupId>
380                                                                                 <artifactId>maven-checkstyle-plugin</artifactId>
381                                                                                 <versionRange>2.17,)</versionRange>
382                                                                                 <goals>
383                                                                                         <goal>check</goal>
384                                                                                 </goals>
385                                                                         </pluginExecutionFilter>
386                                                                         <action>
387                                                                                 <ignore />
388                                                                         </action>
389                                                                 </pluginExecution>
390                                                         </pluginExecutions>
391                                                 </lifecycleMappingMetadata>
392                                         </configuration>
393                                 </plugin>
394                         </plugins>
395                 </pluginManagement>
396         </build>
397         <reporting>
398                 <plugins>
399                         <plugin>
400                                 <groupId>org.apache.maven.plugins</groupId>
401                                 <artifactId>maven-javadoc-plugin</artifactId>
402                                 <version>2.10.4</version>
403                                 <configuration>
404                                         <failOnError>false</failOnError>
405                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
406                                         <docletArtifact>
407                                                 <groupId>org.umlgraph</groupId>
408                                                 <artifactId>umlgraph</artifactId>
409                                                 <version>5.6</version>
410                                         </docletArtifact>
411                                         <additionalparam>-views</additionalparam>
412                                         <useStandardDocletOptions>true</useStandardDocletOptions>
413                                 </configuration>
414                         </plugin>
415                 </plugins>
416         </reporting>
417
418 </project>