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