Bump drools-pdp to version 1.5.0
[policy/drools-pdp.git] / pom.xml
1 <!-- 
2   ============LICENSE_START======================================================= 
3   ONAP Policy Engine - Drools PDP 
4   ================================================================================
5   Copyright (C) 2017-2019 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>3.0.0-SNAPSHOT</version>
28         <relativePath />
29     </parent>
30
31     <groupId>org.onap.policy.drools-pdp</groupId>
32     <artifactId>drools-pdp</artifactId>
33     <version>1.5.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         <json.path.version>2.4.0</json.path.version>
61         <hibernate.core.version>5.2.10.Final</hibernate.core.version>
62         <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
63         <commons.io.version>2.5</commons.io.version>
64         <xml.apis.version>1.4.01</xml.apis.version>
65         <policy.common.version>1.5.0-SNAPSHOT</policy.common.version>
66         <policy.models.version>2.1.0-SNAPSHOT</policy.models.version>
67     </properties>
68
69     <modules>
70         <module>policy-utils</module>
71         <module>policy-core</module>
72         <module>policy-management</module>
73         <module>feature-healthcheck</module>
74         <module>feature-eelf</module>
75         <module>feature-pooling-dmaap</module>
76         <module>feature-session-persistence</module>
77         <module>feature-test-transaction</module>
78         <module>api-state-management</module>
79         <module>feature-state-management</module>
80         <module>api-active-standby-management</module>
81         <module>feature-active-standby-management</module>
82         <module>feature-simulators</module>
83         <module>feature-distributed-locking</module>
84         <module>feature-controller-logging</module>
85         <module>feature-mdc-filters</module>
86         <module>feature-lifecycle</module>
87         <module>packages</module>
88     </modules>
89
90     <dependencyManagement>
91         <dependencies>
92             <dependency>
93                 <groupId>javax.ws.rs</groupId>
94                 <artifactId>javax.ws.rs-api</artifactId>
95                 <version>2.0.1</version>
96             </dependency>
97             <dependency>
98                 <groupId>org.glassfish.hk2.external</groupId>
99                 <artifactId>javax.inject</artifactId>
100                 <version>2.4.0-b31</version>
101             </dependency>
102             <dependency>
103                 <groupId>com.jayway.jsonpath</groupId>
104                 <artifactId>json-path</artifactId>
105                 <version>${json.path.version}</version>
106             </dependency>
107             <dependency>
108                 <groupId>org.glassfish.jersey.containers</groupId>
109                 <artifactId>jersey-common</artifactId>
110                 <version>${jersey.version}</version>
111             </dependency>
112             <dependency>
113                 <groupId>org.glassfish.jersey.containers</groupId>
114                 <artifactId>jersey-container-servlet-core</artifactId>
115                 <version>${jersey.version}</version>
116             </dependency>
117             <dependency>
118                 <groupId>org.hibernate</groupId>
119                 <artifactId>hibernate-core</artifactId>
120                 <version>${hibernate.core.version}</version>
121             </dependency>
122             <dependency>
123                 <groupId>org.hibernate.common</groupId>
124                 <artifactId>hibernate-commons-annotations</artifactId>
125                 <version>${hibernate.commons.annotations.version}</version>
126             </dependency>
127             <dependency>
128                 <groupId>commons-io</groupId>
129                 <artifactId>commons-io</artifactId>
130                 <version>${commons.io.version}</version>
131             </dependency>
132             <dependency>
133                 <groupId>xml-apis</groupId>
134                 <artifactId>xml-apis</artifactId>
135                 <version>${xml.apis.version}</version>
136             </dependency>
137         </dependencies>
138     </dependencyManagement>
139
140     <build>
141         <plugins>
142             <plugin>
143                 <groupId>org.jacoco</groupId>
144                 <artifactId>jacoco-maven-plugin</artifactId>
145                 <executions>
146                     <execution>
147                         <id>pre-unit-test</id>
148                         <goals>
149                             <goal>prepare-agent</goal>
150                         </goals>
151                         <configuration>
152                             <destFile>${sonar.jacoco.reportPath}</destFile>
153                             <append>true</append>
154                         </configuration>
155                     </execution>
156                     <execution>
157                         <id>post-unit-test</id>
158                         <phase>test</phase>
159                         <goals>
160                             <goal>report</goal>
161                         </goals>
162                         <configuration>
163                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
164                         </configuration>
165                     </execution>
166                 </executions>
167             </plugin>
168                 <plugin>
169                     <artifactId>maven-checkstyle-plugin</artifactId>
170                     <executions>
171                         <execution>
172                             <id>onap-java-style</id>
173                             <goals>
174                                 <goal>check</goal>
175                             </goals>
176                             <phase>process-sources</phase>
177                             <configuration>
178                                 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
179                                     with minor changes -->
180                                 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
181                                 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
182                                 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
183                                 <includeResources>true</includeResources>
184                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
185                                 <includeTestResources>true</includeTestResources>
186                                 <excludes>
187                                 </excludes>
188                                 <!-- suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation -->
189                                 <consoleOutput>true</consoleOutput>
190                                 <failsOnViolation>true</failsOnViolation>
191                                 <violationSeverity>warning</violationSeverity>
192                             </configuration>
193                         </execution>
194                     </executions>
195                     <dependencies>
196                         <dependency>
197                             <groupId>org.onap.oparent</groupId>
198                             <artifactId>checkstyle</artifactId>
199                             <version>${oparent.version}</version>
200                             <scope>compile</scope>
201                         </dependency>
202                     </dependencies>
203                 </plugin>
204             <plugin>
205                 <groupId>org.sonatype.plugins</groupId>
206                 <artifactId>nexus-staging-maven-plugin</artifactId>
207                 <extensions>true</extensions>
208                 <configuration>
209                     <nexusUrl>${nexusproxy}</nexusUrl>
210                     <stagingProfileId>176c31dfe190a</stagingProfileId>
211                     <serverId>ecomp-staging</serverId>
212                 </configuration>
213             </plugin>
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-deploy-plugin</artifactId>
217                 <configuration>
218                     <skip />
219                 </configuration>
220             </plugin>
221             <plugin>
222                 <groupId>org.apache.maven.plugins</groupId>
223                 <artifactId>maven-compiler-plugin</artifactId>
224                 <configuration>
225                     <encoding>${project.encoding}</encoding>
226                     <source>${project.source.version}</source>
227                     <target>${project.target.version}</target>
228                 </configuration>
229             </plugin>
230             <plugin>
231                 <groupId>org.apache.maven.plugins</groupId>
232                 <artifactId>maven-resources-plugin</artifactId>
233                 <configuration>
234                     <encoding>${project.encoding}</encoding>
235                 </configuration>
236             </plugin>
237
238             <plugin>
239                 <groupId>org.apache.maven.plugins</groupId>
240                 <artifactId>maven-site-plugin</artifactId>
241                 <dependencies>
242                     <dependency>
243                         <groupId>org.apache.maven.wagon</groupId>
244                         <artifactId>wagon-webdav-jackrabbit</artifactId>
245                         <version>2.10</version>
246                     </dependency>
247                 </dependencies>
248             </plugin>
249         </plugins>
250         <pluginManagement>
251             <plugins>
252                 <plugin>
253                     <groupId>org.jacoco</groupId>
254                     <artifactId>jacoco-maven-plugin</artifactId>
255                     <version>${jacoco.version}</version>
256                     <configuration>
257                         <!-- Note: This exclusion list should match <sonar.exclusions> property 
258                              above -->
259                         <excludes>
260                             <exclude>**/gen/**</exclude>
261                             <exclude>**/generated-sources/**</exclude>
262                             <exclude>**/yang-gen/**</exclude>
263                             <exclude>**/pax/**</exclude>
264                         </excludes>
265                     </configuration>
266                     <executions>
267                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
268                              is passed as VM argument when Maven the Surefire plugin is executed. -->
269                         <execution>
270                             <id>pre-unit-test</id>
271                             <goals>
272                                 <goal>prepare-agent</goal>
273                             </goals>
274                             <configuration>
275                                 <destFile>${sonar.jacoco.reportPath}</destFile>
276                             </configuration>
277                         </execution>
278                         <!-- Ensures that the code coverage report for unit tests is created 
279                              after unit tests have been run. -->
280                         <execution>
281                             <id>post-unit-test</id>
282                             <phase>test</phase>
283                             <goals>
284                                 <goal>report</goal>
285                             </goals>
286                             <configuration>
287                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
288                             </configuration>
289                         </execution>
290                     </executions>
291                 </plugin>
292                 <plugin>
293                     <groupId>org.eclipse.m2e</groupId>
294                     <artifactId>lifecycle-mapping</artifactId>
295                     <version>1.0.0</version>
296                     <configuration>
297                         <lifecycleMappingMetadata>
298                             <pluginExecutions>
299                                 <pluginExecution>
300                                     <pluginExecutionFilter>
301                                         <groupId>org.apache.maven.plugins</groupId>
302                                         <artifactId>maven-checkstyle-plugin</artifactId>
303                                         <versionRange>2.17,)</versionRange>
304                                         <goals>
305                                             <goal>check</goal>
306                                         </goals>
307                                     </pluginExecutionFilter>
308                                     <action>
309                                         <ignore />
310                                     </action>
311                                 </pluginExecution>
312                             </pluginExecutions>
313                         </lifecycleMappingMetadata>
314                     </configuration>
315                 </plugin>
316             </plugins>
317         </pluginManagement>
318     </build>
319     <reporting>
320         <plugins>
321             <plugin>
322                 <groupId>org.apache.maven.plugins</groupId>
323                 <artifactId>maven-javadoc-plugin</artifactId>
324                 <version>2.10.4</version>
325                 <configuration>
326                     <failOnError>false</failOnError>
327                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
328                     <docletArtifact>
329                         <groupId>org.umlgraph</groupId>
330                         <artifactId>umlgraph</artifactId>
331                         <version>5.6</version>
332                     </docletArtifact>
333                     <additionalparam>-views</additionalparam>
334                     <useStandardDocletOptions>true</useStandardDocletOptions>
335                 </configuration>
336             </plugin>
337         </plugins>
338     </reporting>
339
340 </project>