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