blob: cd3a0f13d55c940d7137c6f253ee43de11ac3a35 [file] [log] [blame]
Pamela Dragoshbd6c4372018-02-16 10:30:56 -05001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine - Drools PDP
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05004 ================================================================================
Jim Hahn2b13a1c2019-02-18 11:59:42 -05005 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05006 ================================================================================
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
Temoc Rodriguez82ba9222017-08-17 08:24:55 -070010
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050011 http://www.apache.org/licenses/LICENSE-2.0
Temoc Rodriguez82ba9222017-08-17 08:24:55 -070012
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050013 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.
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050018 ============LICENSE_END=========================================================
19-->
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050020
liamfallon99200202018-10-31 16:00:08 +000021<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">
Pamela Dragoshfd307be2018-08-28 18:10:51 -040022 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050023
Pamela Dragoshfd307be2018-08-28 18:10:51 -040024 <parent>
25 <groupId>org.onap.policy.parent</groupId>
26 <artifactId>integration</artifactId>
Pamela Dragoshc9c0ad52019-06-20 16:13:22 -040027 <version>3.0.0</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040028 <relativePath />
29 </parent>
Guo Ruijing15be35a2017-08-03 11:32:09 +000030
Pamela Dragoshfd307be2018-08-28 18:10:51 -040031 <groupId>org.onap.policy.drools-pdp</groupId>
32 <artifactId>drools-pdp</artifactId>
Pamela Dragosh55d77dd2019-06-28 13:49:05 -040033 <version>1.5.1-SNAPSHOT</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040034 <packaging>pom</packaging>
35 <name>policy-drools-pdp</name>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050036
Pamela Dragoshfd307be2018-08-28 18:10:51 -040037 <description>The ONAP Policy Engine drools-based PDP Project</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050038
Pamela Dragoshfd307be2018-08-28 18:10:51 -040039 <properties>
40 <!-- Project common build settings -->
41 <project.source.version>1.8</project.source.version>
42 <project.target.version>1.8</project.target.version>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050043
Pamela Dragoshfd307be2018-08-28 18:10:51 -040044 <!-- 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>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050050
Pamela Dragoshfd307be2018-08-28 18:10:51 -040051 <!-- 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>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050057
Pamela Dragoshfd307be2018-08-28 18:10:51 -040058 <!-- Project common dependency versions -->
Pamela Dragoshfd307be2018-08-28 18:10:51 -040059 <jersey.version>2.25.1</jersey.version>
Daniel Cruzfa2a5a42019-02-14 00:42:45 -060060 <json.path.version>2.4.0</json.path.version>
Jim Hahn0e6b16b2018-09-11 10:11:29 -040061 <hibernate.core.version>5.2.10.Final</hibernate.core.version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040062 <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
63 <commons.io.version>2.5</commons.io.version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040064 <xml.apis.version>1.4.01</xml.apis.version>
Pamela Dragoshf1d4f752019-07-02 14:13:51 -040065 <policy.common.version>1.5.1-SNAPSHOT</policy.common.version>
66 <policy.models.version>2.1.1-SNAPSHOT</policy.models.version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040067 </properties>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050068
Pamela Dragoshfd307be2018-08-28 18:10:51 -040069 <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>
Jim Hahna3fa1c62018-03-26 16:48:31 -040075 <module>feature-pooling-dmaap</module>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040076 <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>
Daniel Cruz62e42812019-02-22 11:31:17 -060084 <module>feature-controller-logging</module>
Daniel Cruz89d34412019-03-22 08:33:29 -050085 <module>feature-mdc-filters</module>
Jorge Hernandez964b1272019-03-28 01:12:10 -050086 <module>feature-lifecycle</module>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040087 <module>packages</module>
88 </modules>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050089
Pamela Dragoshfd307be2018-08-28 18:10:51 -040090 <dependencyManagement>
91 <dependencies>
92 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040093 <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>
Daniel Cruzfa2a5a42019-02-14 00:42:45 -0600103 <groupId>com.jayway.jsonpath</groupId>
104 <artifactId>json-path</artifactId>
105 <version>${json.path.version}</version>
106 </dependency>
107 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400108 <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>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400118 <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>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500139
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400140 <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>
Pamela Dragosha0e0c782018-09-28 04:58:26 -0400168 <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>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400204 <plugin>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-deploy-plugin</artifactId>
207 <configuration>
208 <skip />
209 </configuration>
210 </plugin>
211 <plugin>
212 <groupId>org.apache.maven.plugins</groupId>
213 <artifactId>maven-compiler-plugin</artifactId>
214 <configuration>
215 <encoding>${project.encoding}</encoding>
216 <source>${project.source.version}</source>
217 <target>${project.target.version}</target>
218 </configuration>
219 </plugin>
220 <plugin>
221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-resources-plugin</artifactId>
223 <configuration>
224 <encoding>${project.encoding}</encoding>
225 </configuration>
226 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500227
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-site-plugin</artifactId>
231 <dependencies>
232 <dependency>
233 <groupId>org.apache.maven.wagon</groupId>
234 <artifactId>wagon-webdav-jackrabbit</artifactId>
235 <version>2.10</version>
236 </dependency>
237 </dependencies>
238 </plugin>
239 </plugins>
240 <pluginManagement>
241 <plugins>
242 <plugin>
243 <groupId>org.jacoco</groupId>
244 <artifactId>jacoco-maven-plugin</artifactId>
245 <version>${jacoco.version}</version>
246 <configuration>
247 <!-- Note: This exclusion list should match <sonar.exclusions> property
248 above -->
249 <excludes>
250 <exclude>**/gen/**</exclude>
251 <exclude>**/generated-sources/**</exclude>
252 <exclude>**/yang-gen/**</exclude>
253 <exclude>**/pax/**</exclude>
254 </excludes>
255 </configuration>
256 <executions>
257 <!-- Prepares the property pointing to the JaCoCo runtime agent which
258 is passed as VM argument when Maven the Surefire plugin is executed. -->
259 <execution>
260 <id>pre-unit-test</id>
261 <goals>
262 <goal>prepare-agent</goal>
263 </goals>
264 <configuration>
265 <destFile>${sonar.jacoco.reportPath}</destFile>
266 </configuration>
267 </execution>
268 <!-- Ensures that the code coverage report for unit tests is created
269 after unit tests have been run. -->
270 <execution>
271 <id>post-unit-test</id>
272 <phase>test</phase>
273 <goals>
274 <goal>report</goal>
275 </goals>
276 <configuration>
277 <dataFile>${sonar.jacoco.reportPath}</dataFile>
278 </configuration>
279 </execution>
280 </executions>
281 </plugin>
282 <plugin>
283 <groupId>org.eclipse.m2e</groupId>
284 <artifactId>lifecycle-mapping</artifactId>
285 <version>1.0.0</version>
286 <configuration>
287 <lifecycleMappingMetadata>
288 <pluginExecutions>
289 <pluginExecution>
290 <pluginExecutionFilter>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-checkstyle-plugin</artifactId>
293 <versionRange>2.17,)</versionRange>
294 <goals>
295 <goal>check</goal>
296 </goals>
297 </pluginExecutionFilter>
298 <action>
299 <ignore />
300 </action>
301 </pluginExecution>
302 </pluginExecutions>
303 </lifecycleMappingMetadata>
304 </configuration>
305 </plugin>
306 </plugins>
307 </pluginManagement>
308 </build>
309 <reporting>
310 <plugins>
311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-javadoc-plugin</artifactId>
314 <version>2.10.4</version>
315 <configuration>
316 <failOnError>false</failOnError>
317 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
318 <docletArtifact>
319 <groupId>org.umlgraph</groupId>
320 <artifactId>umlgraph</artifactId>
321 <version>5.6</version>
322 </docletArtifact>
323 <additionalparam>-views</additionalparam>
324 <useStandardDocletOptions>true</useStandardDocletOptions>
325 </configuration>
326 </plugin>
327 </plugins>
328 </reporting>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400329
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500330</project>