Added Time agnostic Onset and Abated classes
[policy/models.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4    Copyright (C) 2018 Ericsson. All rights reserved.
5    Copyright (C) 2019 Nordix Foundation.
6    Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19
20   SPDX-License-Identifier: Apache-2.0
21   ============LICENSE_END=========================================================
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.policy.parent</groupId>
28         <artifactId>integration</artifactId>
29         <version>3.1.1-SNAPSHOT</version>
30         <relativePath />
31     </parent>
32
33     <groupId>org.onap.policy.models</groupId>
34     <artifactId>policy-models</artifactId>
35     <version>2.2.1-SNAPSHOT</version>
36
37     <packaging>pom</packaging>
38     <name>policy-models</name>
39     <description>This repo holds model code agnostic to PDP engines</description>
40
41     <properties>
42         <derby.version>10.13.1.1</derby.version>
43         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
44
45         <!-- sonar/jacoco overrides -->
46         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
47         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
48         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
49         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
50
51         <policy.common.version>1.6.2-SNAPSHOT</policy.common.version>
52     </properties>
53
54     <modules>
55         <module>models-base</module>
56         <module>models-dao</module>
57         <module>models-tosca</module>
58         <module>models-pap</module>
59         <module>models-pdp</module>
60         <module>models-errors</module>
61         <module>models-decisions</module>
62         <module>models-provider</module>
63         <module>models-examples</module>
64         <module>models-interactions</module>
65         <module>models-sim</module>
66     </modules>
67
68     <distributionManagement>
69         <site>
70             <id>ecomp-site</id>
71             <url>dav:${nexusproxy}${sitePath}</url>
72         </site>
73     </distributionManagement>
74
75     <dependencies>
76         <dependency>
77             <groupId>org.onap.policy.common</groupId>
78             <artifactId>utils</artifactId>
79         </dependency>
80
81         <dependency>
82             <groupId>org.slf4j</groupId>
83             <artifactId>slf4j-api</artifactId>
84         </dependency>
85
86         <dependency>
87             <groupId>ch.qos.logback</groupId>
88             <artifactId>logback-core</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>ch.qos.logback</groupId>
92             <artifactId>logback-classic</artifactId>
93         </dependency>
94
95         <dependency>
96             <groupId>org.projectlombok</groupId>
97             <artifactId>lombok</artifactId>
98             <scope>provided</scope>
99         </dependency>
100
101         <dependency>
102             <groupId>com.google.code.gson</groupId>
103             <artifactId>gson</artifactId>
104         </dependency>
105
106         <dependency>
107             <groupId>org.yaml</groupId>
108             <artifactId>snakeyaml</artifactId>
109         </dependency>
110
111         <dependency>
112             <groupId>javax.ws.rs</groupId>
113             <artifactId>javax.ws.rs-api</artifactId>
114             <version>${javax.ws.rs-api.version}</version>
115         </dependency>
116
117         <dependency>
118             <groupId>org.mariadb.jdbc</groupId>
119             <artifactId>mariadb-java-client</artifactId>
120         </dependency>
121
122         <dependency>
123             <groupId>org.eclipse.persistence</groupId>
124             <artifactId>eclipselink</artifactId>
125         </dependency>
126
127         <dependency>
128             <groupId>junit</groupId>
129             <artifactId>junit</artifactId>
130             <scope>test</scope>
131         </dependency>
132
133         <dependency>
134             <groupId>org.assertj</groupId>
135             <artifactId>assertj-core</artifactId>
136             <scope>test</scope>
137         </dependency>
138
139         <dependency>
140             <groupId>org.onap.policy.common</groupId>
141             <artifactId>utils-test</artifactId>
142             <version>${policy.common.version}</version>
143             <scope>test</scope>
144         </dependency>
145         <dependency>
146             <groupId>com.openpojo</groupId>
147             <artifactId>openpojo</artifactId>
148             <scope>test</scope>
149         </dependency>
150
151         <dependency>
152             <groupId>org.glassfish.jersey.inject</groupId>
153             <artifactId>jersey-hk2</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>org.eclipse.jetty</groupId>
157             <artifactId>jetty-server</artifactId>
158         </dependency>
159         <dependency>
160             <groupId>org.eclipse.jetty</groupId>
161             <artifactId>jetty-security</artifactId>
162             <version>9.4.25.v20191220</version>
163         </dependency>
164         <dependency>
165             <groupId>org.eclipse.jetty</groupId>
166             <artifactId>jetty-servlet</artifactId>
167         </dependency>
168         <dependency>
169             <groupId>org.glassfish.jersey.containers</groupId>
170             <artifactId>jersey-container-servlet</artifactId>
171             <version>${version.jersey}</version>
172         </dependency>
173         <dependency>
174             <groupId>org.apache.httpcomponents</groupId>
175             <artifactId>httpclient</artifactId>
176         </dependency>
177         <dependency>
178             <groupId>io.swagger</groupId>
179             <artifactId>swagger-annotations</artifactId>
180             <version>${version.swagger}</version>
181         </dependency>
182         <dependency>
183             <groupId>commons-io</groupId>
184             <artifactId>commons-io</artifactId>
185             <version>2.6</version>
186         </dependency>
187         <dependency>
188             <groupId>org.apache.commons</groupId>
189             <artifactId>commons-collections4</artifactId>
190             <version>4.4</version>
191         </dependency>
192         <dependency>
193             <groupId>com.att.nsa</groupId>
194             <artifactId>cambriaClient</artifactId>
195         </dependency>
196         <dependency>
197             <groupId>org.glassfish</groupId>
198             <artifactId>javax.json</artifactId>
199             <version>${version.javax.json}</version>
200         </dependency>
201         <dependency>
202             <groupId>org.json</groupId>
203             <artifactId>json</artifactId>
204             <version>${version.json}</version>
205         </dependency>
206     </dependencies>
207
208     <dependencyManagement>
209         <dependencies>
210             <dependency>
211                 <groupId>org.onap.policy.common</groupId>
212                 <artifactId>utils</artifactId>
213                 <version>${policy.common.version}</version>
214             </dependency>
215         </dependencies>
216     </dependencyManagement>
217
218     <build>
219         <plugins>
220             <plugin>
221                 <groupId>org.jacoco</groupId>
222                 <artifactId>jacoco-maven-plugin</artifactId>
223                 <executions>
224                     <execution>
225                         <id>pre-unit-test</id>
226                         <goals>
227                             <goal>prepare-agent</goal>
228                         </goals>
229                         <configuration>
230                             <destFile>${sonar.jacoco.reportPath}</destFile>
231                             <append>true</append>
232                         </configuration>
233                     </execution>
234                     <execution>
235                         <id>post-unit-test</id>
236                         <phase>test</phase>
237                         <goals>
238                             <goal>report</goal>
239                         </goals>
240                         <configuration>
241                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
242                         </configuration>
243                     </execution>
244                 </executions>
245             </plugin>
246             <plugin>
247                 <artifactId>maven-checkstyle-plugin</artifactId>
248                 <executions>
249                     <execution>
250                         <id>onap-java-style</id>
251                         <goals>
252                             <goal>check</goal>
253                         </goals>
254                         <phase>process-sources</phase>
255                         <configuration>
256                             <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml 
257                                 with minor changes -->
258                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
259                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
260                             <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
261                             <includeResources>true</includeResources>
262                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
263                             <includeTestResources>true</includeTestResources>
264                             <excludes>
265                             </excludes>
266                             <consoleOutput>true</consoleOutput>
267                             <failOnViolation>true</failOnViolation>
268                             <violationSeverity>warning</violationSeverity>
269                         </configuration>
270                     </execution>
271                 </executions>
272                 <dependencies>
273                     <dependency>
274                         <groupId>org.onap.oparent</groupId>
275                         <artifactId>checkstyle</artifactId>
276                         <version>${oparent.version}</version>
277                         <scope>compile</scope>
278                     </dependency>
279                 </dependencies>
280             </plugin>
281         </plugins>
282         <pluginManagement>
283             <plugins>
284                 <plugin>
285                     <groupId>org.jacoco</groupId>
286                     <artifactId>jacoco-maven-plugin</artifactId>
287                     <version>${jacoco.version}</version>
288                     <configuration>
289                         <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
290                         <excludes>
291                             <exclude>**/gen/**</exclude>
292                             <exclude>**/generated-sources/**</exclude>
293                             <exclude>**/yang-gen/**</exclude>
294                             <exclude>**/pax/**</exclude>
295                         </excludes>
296                     </configuration>
297                     <executions>
298                         <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when 
299                             Maven the Surefire plugin is executed. -->
300                         <execution>
301                             <id>pre-unit-test</id>
302                             <goals>
303                                 <goal>prepare-agent</goal>
304                             </goals>
305                             <configuration>
306                                 <destFile>${sonar.jacoco.reportPath}</destFile>
307                             </configuration>
308                         </execution>
309                         <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
310                         <execution>
311                             <id>post-unit-test</id>
312                             <phase>test</phase>
313                             <goals>
314                                 <goal>report</goal>
315                             </goals>
316                             <configuration>
317                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
318                             </configuration>
319                         </execution>
320                     </executions>
321                 </plugin>
322                 <plugin>
323                     <groupId>org.eclipse.m2e</groupId>
324                     <artifactId>lifecycle-mapping</artifactId>
325                     <version>1.0.0</version>
326                     <configuration>
327                         <lifecycleMappingMetadata>
328                             <pluginExecutions>
329                                 <pluginExecution>
330                                     <pluginExecutionFilter>
331                                         <groupId>org.apache.maven.plugins</groupId>
332                                         <artifactId>maven-checkstyle-plugin</artifactId>
333                                         <versionRange>2.17,)</versionRange>
334                                         <goals>
335                                             <goal>check</goal>
336                                         </goals>
337                                     </pluginExecutionFilter>
338                                     <action>
339                                         <ignore />
340                                     </action>
341                                 </pluginExecution>
342                             </pluginExecutions>
343                         </lifecycleMappingMetadata>
344                     </configuration>
345                 </plugin>
346             </plugins>
347         </pluginManagement>
348     </build>
349 </project>