blob: 58b05597649f887f2309e475720e9ed0698ec1da [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 ================================================================================
Pamela Dragosh54f5e122018-02-07 13:02:32 -05005 Copyright (C) 2017-2018 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
Pamela Dragoshfd307be2018-08-28 18:10:51 -040021<project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
24 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050025
Pamela Dragoshfd307be2018-08-28 18:10:51 -040026 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
29 <version>2.0.0-SNAPSHOT</version>
30 <relativePath />
31 </parent>
Guo Ruijing15be35a2017-08-03 11:32:09 +000032
Pamela Dragoshfd307be2018-08-28 18:10:51 -040033 <groupId>org.onap.policy.drools-pdp</groupId>
34 <artifactId>drools-pdp</artifactId>
35 <version>1.3.0-SNAPSHOT</version>
36 <packaging>pom</packaging>
37 <name>policy-drools-pdp</name>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050038
Pamela Dragoshfd307be2018-08-28 18:10:51 -040039 <description>The ONAP Policy Engine drools-based PDP Project</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050040
Pamela Dragoshfd307be2018-08-28 18:10:51 -040041 <properties>
42 <!-- Project common build settings -->
43 <project.source.version>1.8</project.source.version>
44 <project.target.version>1.8</project.target.version>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050045
Pamela Dragoshfd307be2018-08-28 18:10:51 -040046 <!-- Project path properties -->
47 <nexusproxy>https://nexus.onap.org</nexusproxy>
48 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
49 <releases.path>content/repositories/releases/</releases.path>
50 <snapshots.path>content/repositories/snapshots/</snapshots.path>
51 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050052
Pamela Dragoshfd307be2018-08-28 18:10:51 -040053 <!-- sonar/jacoco overrides -->
54 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
55 into one file shared across sub-modules -->
56 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
57 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
58 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -050059
Pamela Dragoshfd307be2018-08-28 18:10:51 -040060 <!-- Project common dependency versions -->
Pamela Dragoshfd307be2018-08-28 18:10:51 -040061 <jersey.version>2.25.1</jersey.version>
62 <jersey.swagger.version>1.5.18</jersey.swagger.version>
63 <jackson.version>2.9.5</jackson.version>
64 <http.client.version>4.5.5</http.client.version>
65 <http.core.version>4.4.4</http.core.version>
66 <logback.version>1.2.3</logback.version>
67 <junit.version>4.12</junit.version>
68 <eclipselink.version>2.7.0</eclipselink.version>
Jim Hahn0e6b16b2018-09-11 10:11:29 -040069 <hibernate.core.version>5.2.10.Final</hibernate.core.version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040070 <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
71 <commons.io.version>2.5</commons.io.version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040072 <xml.apis.version>1.4.01</xml.apis.version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040073 </properties>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050074
Pamela Dragoshfd307be2018-08-28 18:10:51 -040075 <modules>
76 <module>policy-utils</module>
77 <module>policy-core</module>
78 <module>policy-management</module>
79 <module>feature-healthcheck</module>
80 <module>feature-eelf</module>
Jim Hahna3fa1c62018-03-26 16:48:31 -040081 <module>feature-pooling-dmaap</module>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040082 <module>feature-session-persistence</module>
83 <module>feature-test-transaction</module>
84 <module>api-state-management</module>
85 <module>feature-state-management</module>
86 <module>api-active-standby-management</module>
87 <module>feature-active-standby-management</module>
88 <module>feature-simulators</module>
89 <module>feature-distributed-locking</module>
90 <module>packages</module>
91 </modules>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050092
Pamela Dragoshfd307be2018-08-28 18:10:51 -040093 <distributionManagement>
94 <repository>
95 <id>ecomp-releases</id>
96 <name>ONAP Release Repository</name>
97 <url>${nexusproxy}/${releases.path}</url>
98 </repository>
99 <snapshotRepository>
100 <id>ecomp-snapshots</id>
101 <name>ONAP Snapshot Repository</name>
102 <url>${nexusproxy}/${snapshots.path}</url>
103 </snapshotRepository>
104 <site>
105 <id>ecomp-site</id>
106 <url>dav:${nexusproxy}${sitePath}</url>
107 </site>
108 </distributionManagement>
Pamela Dragosh2f7c70d2017-02-15 16:09:00 -0500109
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400110 <dependencyManagement>
111 <dependencies>
112 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400113 <groupId>javax.ws.rs</groupId>
114 <artifactId>javax.ws.rs-api</artifactId>
115 <version>2.0.1</version>
116 </dependency>
117 <dependency>
118 <groupId>org.glassfish.hk2.external</groupId>
119 <artifactId>javax.inject</artifactId>
120 <version>2.4.0-b31</version>
121 </dependency>
122 <dependency>
123 <groupId>com.fasterxml.jackson.jaxrs</groupId>
124 <artifactId>jackson-jaxrs-base</artifactId>
125 <version>${jackson.version}</version>
126 </dependency>
127 <dependency>
128 <groupId>com.fasterxml.jackson.jaxrs</groupId>
129 <artifactId>jackson-jaxrs-json-provider</artifactId>
130 <version>${jackson.version}</version>
131 </dependency>
132 <dependency>
133 <groupId>com.fasterxml.jackson.dataformat</groupId>
134 <artifactId>jackson-dataformat-xml</artifactId>
135 <version>${jackson.version}</version>
136 </dependency>
137 <dependency>
138 <groupId>com.fasterxml.jackson.dataformat</groupId>
139 <artifactId>jackson-dataformat-yaml</artifactId>
140 <version>${jackson.version}</version>
141 </dependency>
142 <dependency>
143 <groupId>com.fasterxml.jackson.datatype</groupId>
144 <artifactId>jackson-datatype-joda</artifactId>
145 <version>${jackson.version}</version>
146 </dependency>
147 <dependency>
148 <groupId>org.glassfish.jersey.containers</groupId>
149 <artifactId>jersey-common</artifactId>
150 <version>${jersey.version}</version>
151 </dependency>
152 <dependency>
153 <groupId>org.glassfish.jersey.containers</groupId>
154 <artifactId>jersey-container-servlet-core</artifactId>
155 <version>${jersey.version}</version>
156 </dependency>
157 <dependency>
158 <groupId>io.swagger</groupId>
159 <artifactId>swagger-jersey2-jaxrs</artifactId>
160 <version>${jersey.swagger.version}</version>
161 </dependency>
162 <dependency>
163 <groupId>org.apache.httpcomponents</groupId>
164 <artifactId>httpclient</artifactId>
165 <version>${http.client.version}</version>
166 </dependency>
167 <dependency>
168 <groupId>org.apache.httpcomponents</groupId>
169 <artifactId>httpcore</artifactId>
170 <version>${http.core.version}</version>
171 </dependency>
172 <dependency>
173 <groupId>ch.qos.logback</groupId>
174 <artifactId>logback-classic</artifactId>
175 <version>${logback.version}</version>
176 </dependency>
177 <dependency>
178 <groupId>junit</groupId>
179 <artifactId>junit</artifactId>
180 <version>${junit.version}</version>
181 </dependency>
182 <dependency>
183 <groupId>org.eclipse.persistence</groupId>
184 <artifactId>eclipselink</artifactId>
185 <version>${eclipselink.version}</version>
186 </dependency>
187 <dependency>
188 <groupId>org.eclipse.persistence</groupId>
189 <artifactId>org.eclipse.persistence.jpa</artifactId>
190 <version>${eclipselink.version}</version>
191 </dependency>
192 <dependency>
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400193 <groupId>org.hibernate</groupId>
194 <artifactId>hibernate-core</artifactId>
195 <version>${hibernate.core.version}</version>
196 </dependency>
197 <dependency>
198 <groupId>org.hibernate.common</groupId>
199 <artifactId>hibernate-commons-annotations</artifactId>
200 <version>${hibernate.commons.annotations.version}</version>
201 </dependency>
202 <dependency>
203 <groupId>commons-io</groupId>
204 <artifactId>commons-io</artifactId>
205 <version>${commons.io.version}</version>
206 </dependency>
207 <dependency>
208 <groupId>xml-apis</groupId>
209 <artifactId>xml-apis</artifactId>
210 <version>${xml.apis.version}</version>
211 </dependency>
212 </dependencies>
213 </dependencyManagement>
Pamela Dragoshbd6c4372018-02-16 10:30:56 -0500214
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400215 <build>
216 <plugins>
217 <plugin>
218 <groupId>org.jacoco</groupId>
219 <artifactId>jacoco-maven-plugin</artifactId>
220 <executions>
221 <execution>
222 <id>pre-unit-test</id>
223 <goals>
224 <goal>prepare-agent</goal>
225 </goals>
226 <configuration>
227 <destFile>${sonar.jacoco.reportPath}</destFile>
228 <append>true</append>
229 </configuration>
230 </execution>
231 <execution>
232 <id>post-unit-test</id>
233 <phase>test</phase>
234 <goals>
235 <goal>report</goal>
236 </goals>
237 <configuration>
238 <dataFile>${sonar.jacoco.reportPath}</dataFile>
239 </configuration>
240 </execution>
241 </executions>
242 </plugin>
243 <plugin>
244 <groupId>org.sonatype.plugins</groupId>
245 <artifactId>nexus-staging-maven-plugin</artifactId>
246 <extensions>true</extensions>
247 <configuration>
248 <nexusUrl>${nexusproxy}</nexusUrl>
249 <stagingProfileId>176c31dfe190a</stagingProfileId>
250 <serverId>ecomp-staging</serverId>
251 </configuration>
252 </plugin>
253 <plugin>
254 <groupId>org.apache.maven.plugins</groupId>
255 <artifactId>maven-deploy-plugin</artifactId>
256 <configuration>
257 <skip />
258 </configuration>
259 </plugin>
260 <plugin>
261 <groupId>org.apache.maven.plugins</groupId>
262 <artifactId>maven-compiler-plugin</artifactId>
263 <configuration>
264 <encoding>${project.encoding}</encoding>
265 <source>${project.source.version}</source>
266 <target>${project.target.version}</target>
267 </configuration>
268 </plugin>
269 <plugin>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-resources-plugin</artifactId>
272 <configuration>
273 <encoding>${project.encoding}</encoding>
274 </configuration>
275 </plugin>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500276
Pamela Dragoshfd307be2018-08-28 18:10:51 -0400277 <plugin>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-site-plugin</artifactId>
280 <dependencies>
281 <dependency>
282 <groupId>org.apache.maven.wagon</groupId>
283 <artifactId>wagon-webdav-jackrabbit</artifactId>
284 <version>2.10</version>
285 </dependency>
286 </dependencies>
287 </plugin>
288 </plugins>
289 <pluginManagement>
290 <plugins>
291 <plugin>
292 <groupId>org.jacoco</groupId>
293 <artifactId>jacoco-maven-plugin</artifactId>
294 <version>${jacoco.version}</version>
295 <configuration>
296 <!-- Note: This exclusion list should match <sonar.exclusions> property
297 above -->
298 <excludes>
299 <exclude>**/gen/**</exclude>
300 <exclude>**/generated-sources/**</exclude>
301 <exclude>**/yang-gen/**</exclude>
302 <exclude>**/pax/**</exclude>
303 </excludes>
304 </configuration>
305 <executions>
306 <!-- Prepares the property pointing to the JaCoCo runtime agent which
307 is passed as VM argument when Maven the Surefire plugin is executed. -->
308 <execution>
309 <id>pre-unit-test</id>
310 <goals>
311 <goal>prepare-agent</goal>
312 </goals>
313 <configuration>
314 <destFile>${sonar.jacoco.reportPath}</destFile>
315 </configuration>
316 </execution>
317 <!-- Ensures that the code coverage report for unit tests is created
318 after unit tests have been run. -->
319 <execution>
320 <id>post-unit-test</id>
321 <phase>test</phase>
322 <goals>
323 <goal>report</goal>
324 </goals>
325 <configuration>
326 <dataFile>${sonar.jacoco.reportPath}</dataFile>
327 </configuration>
328 </execution>
329 </executions>
330 </plugin>
331 <plugin>
332 <groupId>org.eclipse.m2e</groupId>
333 <artifactId>lifecycle-mapping</artifactId>
334 <version>1.0.0</version>
335 <configuration>
336 <lifecycleMappingMetadata>
337 <pluginExecutions>
338 <pluginExecution>
339 <pluginExecutionFilter>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-checkstyle-plugin</artifactId>
342 <versionRange>2.17,)</versionRange>
343 <goals>
344 <goal>check</goal>
345 </goals>
346 </pluginExecutionFilter>
347 <action>
348 <ignore />
349 </action>
350 </pluginExecution>
351 </pluginExecutions>
352 </lifecycleMappingMetadata>
353 </configuration>
354 </plugin>
355 </plugins>
356 </pluginManagement>
357 </build>
358 <reporting>
359 <plugins>
360 <plugin>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-javadoc-plugin</artifactId>
363 <version>2.10.4</version>
364 <configuration>
365 <failOnError>false</failOnError>
366 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
367 <docletArtifact>
368 <groupId>org.umlgraph</groupId>
369 <artifactId>umlgraph</artifactId>
370 <version>5.6</version>
371 </docletArtifact>
372 <additionalparam>-views</additionalparam>
373 <useStandardDocletOptions>true</useStandardDocletOptions>
374 </configuration>
375 </plugin>
376 </plugins>
377 </reporting>
Pamela Dragoshb67f4172017-04-10 10:24:23 -0400378
Pamela Dragosh0e16acf2017-02-14 19:45:48 -0500379</project>