f9b9bbef1b52a87f0b6adb02d66f60657ff4a41b
[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"
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>
25
26     <parent>
27         <groupId>org.onap.policy.parent</groupId>
28         <artifactId>integration</artifactId>
29         <version>2.0.0-SNAPSHOT</version>
30         <relativePath />
31     </parent>
32
33     <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>
38
39     <description>The ONAP Policy Engine drools-based PDP Project</description>
40
41     <properties>
42         <!-- Project common build settings -->
43         <project.source.version>1.8</project.source.version>
44         <project.target.version>1.8</project.target.version>
45
46         <!-- 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>
52
53         <!-- 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>
59
60         <!-- Project common dependency versions -->
61         <dmaap.version>1.1.3</dmaap.version>
62         <cambria.version>1.2.1-oss</cambria.version>
63         <jersey.version>2.25.1</jersey.version>
64         <jersey.swagger.version>1.5.18</jersey.swagger.version>
65         <jackson.version>2.9.5</jackson.version>
66         <http.client.version>4.5.5</http.client.version>
67         <http.core.version>4.4.4</http.core.version>
68         <logback.version>1.2.3</logback.version>
69         <junit.version>4.12</junit.version>
70         <eclipselink.version>2.7.0</eclipselink.version>
71         <mariadb.jdbc.version>2.1.0</mariadb.jdbc.version>
72         <hibernate.core.version>5.2.10.Final</hibernate.core.version>
73         <hibernate.commons.annotations.version>5.0.1.Final</hibernate.commons.annotations.version>
74         <commons.io.version>2.5</commons.io.version>
75         <guava.version>23.0</guava.version>
76         <xml.apis.version>1.4.01</xml.apis.version>
77         <jetty.version>9.3.24.v20180605</jetty.version>
78     </properties>
79
80     <modules>
81         <module>policy-utils</module>
82         <module>policy-core</module>
83         <module>policy-management</module>
84         <module>feature-healthcheck</module>
85         <module>feature-eelf</module>
86         <module>feature-pooling-dmaap</module>
87         <module>feature-session-persistence</module>
88         <module>feature-test-transaction</module>
89         <module>api-state-management</module>
90         <module>feature-state-management</module>
91         <module>api-active-standby-management</module>
92         <module>feature-active-standby-management</module>
93         <module>feature-simulators</module>
94         <module>feature-distributed-locking</module>
95         <module>packages</module>
96     </modules>
97
98     <distributionManagement>
99         <repository>
100             <id>ecomp-releases</id>
101             <name>ONAP Release Repository</name>
102             <url>${nexusproxy}/${releases.path}</url>
103         </repository>
104         <snapshotRepository>
105             <id>ecomp-snapshots</id>
106             <name>ONAP Snapshot Repository</name>
107             <url>${nexusproxy}/${snapshots.path}</url>
108         </snapshotRepository>
109         <site>
110             <id>ecomp-site</id>
111             <url>dav:${nexusproxy}${sitePath}</url>
112         </site>
113     </distributionManagement>
114
115     <dependencyManagement>
116         <dependencies>
117             <dependency>
118                 <groupId>com.google.guava</groupId>
119                 <artifactId>guava</artifactId>
120                 <version>${guava.version}</version>
121             </dependency>
122             <dependency>
123                 <groupId>javax.ws.rs</groupId>
124                 <artifactId>javax.ws.rs-api</artifactId>
125                 <version>2.0.1</version>
126             </dependency>
127             <dependency>
128                 <groupId>org.glassfish.hk2.external</groupId>
129                 <artifactId>javax.inject</artifactId>
130                 <version>2.4.0-b31</version>
131             </dependency>
132             <dependency>
133                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
134                 <artifactId>jackson-jaxrs-base</artifactId>
135                 <version>${jackson.version}</version>
136             </dependency>
137             <dependency>
138                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
139                 <artifactId>jackson-jaxrs-json-provider</artifactId>
140                 <version>${jackson.version}</version>
141             </dependency>
142             <dependency>
143                 <groupId>com.fasterxml.jackson.dataformat</groupId>
144                 <artifactId>jackson-dataformat-xml</artifactId>
145                 <version>${jackson.version}</version>
146             </dependency>
147             <dependency>
148                 <groupId>com.fasterxml.jackson.dataformat</groupId>
149                 <artifactId>jackson-dataformat-yaml</artifactId>
150                 <version>${jackson.version}</version>
151             </dependency>
152             <dependency>
153                 <groupId>com.fasterxml.jackson.datatype</groupId>
154                 <artifactId>jackson-datatype-joda</artifactId>
155                 <version>${jackson.version}</version>
156             </dependency>
157             <dependency>
158                 <groupId>org.glassfish.jersey.containers</groupId>
159                 <artifactId>jersey-common</artifactId>
160                 <version>${jersey.version}</version>
161             </dependency>
162             <dependency>
163                 <groupId>org.glassfish.jersey.containers</groupId>
164                 <artifactId>jersey-container-servlet-core</artifactId>
165                 <version>${jersey.version}</version>
166             </dependency>
167             <dependency>
168                 <groupId>io.swagger</groupId>
169                 <artifactId>swagger-jersey2-jaxrs</artifactId>
170                 <version>${jersey.swagger.version}</version>
171             </dependency>
172             <dependency>
173                 <groupId>org.apache.httpcomponents</groupId>
174                 <artifactId>httpclient</artifactId>
175                 <version>${http.client.version}</version>
176             </dependency>
177             <dependency>
178                 <groupId>org.apache.httpcomponents</groupId>
179                 <artifactId>httpcore</artifactId>
180                 <version>${http.core.version}</version>
181             </dependency>
182             <dependency>
183                 <groupId>ch.qos.logback</groupId>
184                 <artifactId>logback-classic</artifactId>
185                 <version>${logback.version}</version>
186             </dependency>
187             <dependency>
188                 <groupId>junit</groupId>
189                 <artifactId>junit</artifactId>
190                 <version>${junit.version}</version>
191             </dependency>
192             <dependency>
193                 <groupId>org.eclipse.persistence</groupId>
194                 <artifactId>eclipselink</artifactId>
195                 <version>${eclipselink.version}</version>
196             </dependency>
197             <dependency>
198                 <groupId>org.eclipse.persistence</groupId>
199                 <artifactId>org.eclipse.persistence.jpa</artifactId>
200                 <version>${eclipselink.version}</version>
201             </dependency>
202             <dependency>
203                 <groupId>org.mariadb.jdbc</groupId>
204                 <artifactId>mariadb-java-client</artifactId>
205                 <version>${mariadb.jdbc.version}</version>
206             </dependency>
207             <dependency>
208                 <groupId>org.hibernate</groupId>
209                 <artifactId>hibernate-core</artifactId>
210                 <version>${hibernate.core.version}</version>
211             </dependency>
212             <dependency>
213                 <groupId>org.hibernate.common</groupId>
214                 <artifactId>hibernate-commons-annotations</artifactId>
215                 <version>${hibernate.commons.annotations.version}</version>
216             </dependency>
217             <dependency>
218                 <groupId>commons-io</groupId>
219                 <artifactId>commons-io</artifactId>
220                 <version>${commons.io.version}</version>
221             </dependency>
222             <dependency>
223                 <groupId>xml-apis</groupId>
224                 <artifactId>xml-apis</artifactId>
225                 <version>${xml.apis.version}</version>
226             </dependency>
227         </dependencies>
228     </dependencyManagement>
229
230     <build>
231         <plugins>
232             <plugin>
233                 <groupId>org.jacoco</groupId>
234                 <artifactId>jacoco-maven-plugin</artifactId>
235                 <executions>
236                     <execution>
237                         <id>pre-unit-test</id>
238                         <goals>
239                             <goal>prepare-agent</goal>
240                         </goals>
241                         <configuration>
242                             <destFile>${sonar.jacoco.reportPath}</destFile>
243                             <append>true</append>
244                         </configuration>
245                     </execution>
246                     <execution>
247                         <id>post-unit-test</id>
248                         <phase>test</phase>
249                         <goals>
250                             <goal>report</goal>
251                         </goals>
252                         <configuration>
253                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
254                         </configuration>
255                     </execution>
256                 </executions>
257             </plugin>
258             <plugin>
259                 <groupId>org.sonatype.plugins</groupId>
260                 <artifactId>nexus-staging-maven-plugin</artifactId>
261                 <extensions>true</extensions>
262                 <configuration>
263                     <nexusUrl>${nexusproxy}</nexusUrl>
264                     <stagingProfileId>176c31dfe190a</stagingProfileId>
265                     <serverId>ecomp-staging</serverId>
266                 </configuration>
267             </plugin>
268             <plugin>
269                 <groupId>org.apache.maven.plugins</groupId>
270                 <artifactId>maven-deploy-plugin</artifactId>
271                 <configuration>
272                     <skip />
273                 </configuration>
274             </plugin>
275             <plugin>
276                 <groupId>org.apache.maven.plugins</groupId>
277                 <artifactId>maven-compiler-plugin</artifactId>
278                 <configuration>
279                     <encoding>${project.encoding}</encoding>
280                     <source>${project.source.version}</source>
281                     <target>${project.target.version}</target>
282                 </configuration>
283             </plugin>
284             <plugin>
285                 <groupId>org.apache.maven.plugins</groupId>
286                 <artifactId>maven-resources-plugin</artifactId>
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>