blob: dfe5613a6bc7e46d323e6d57623f360def104205 [file] [log] [blame]
Hengyeb150aa82019-03-25 14:32:21 +00001<?xml version="1.0" encoding="UTF-8"?>
eikrwaq67037d02018-05-23 17:17:58 +01002<!--
3 ============LICENSE_START=======================================================
4 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallonaa317c72019-02-05 13:41:59 +00005 Copyright (C) 2019 Nordix Foundation.
HOCKLAc5475f12020-01-10 12:16:00 -06006 Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
eikrwaq67037d02018-05-23 17:17:58 +01007 ================================================================================
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=========================================================
ramvermab359a4b2019-06-27 11:11:24 +000022-->
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">
eikrwaq67037d02018-05-23 17:17:58 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.policy.parent</groupId>
28 <artifactId>integration</artifactId>
HOCKLA754f9a02019-12-21 12:11:33 -060029 <version>3.1.1-SNAPSHOT</version>
ramvermab359a4b2019-06-27 11:11:24 +000030 <relativePath />
eikrwaq67037d02018-05-23 17:17:58 +010031 </parent>
32
33 <groupId>org.onap.policy.models</groupId>
34 <artifactId>policy-models</artifactId>
HOCKLAc5475f12020-01-10 12:16:00 -060035 <version>2.2.1-SNAPSHOT</version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040036
eikrwaq67037d02018-05-23 17:17:58 +010037 <packaging>pom</packaging>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -040038 <name>policy-models</name>
liamfallonaa317c72019-02-05 13:41:59 +000039 <description>This repo holds model code agnostic to PDP engines</description>
eikrwaq67037d02018-05-23 17:17:58 +010040
Pamela Dragoshf973f582018-09-25 10:06:07 -040041 <properties>
liamfallonb694be12019-03-05 09:35:16 +000042 <derby.version>10.13.1.1</derby.version>
HOCKLA754f9a02019-12-21 12:11:33 -060043 <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
liamfallonb694be12019-03-05 09:35:16 +000044
Pamela Dragoshf973f582018-09-25 10:06:07 -040045 <!-- 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>
Pamela Dragosh814101d2019-05-29 07:44:50 -040050
HOCKLA754f9a02019-12-21 12:11:33 -060051 <policy.common.version>1.6.2-SNAPSHOT</policy.common.version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040052 </properties>
53
54 <modules>
liamfallonf240fda2019-02-26 13:57:39 +000055 <module>models-base</module>
56 <module>models-dao</module>
liamfallonb694be12019-03-05 09:35:16 +000057 <module>models-tosca</module>
ramverma59483882019-03-12 22:15:38 +000058 <module>models-pap</module>
Jim Hahna4b62b82019-03-21 09:54:30 -040059 <module>models-pdp</module>
Pamela Dragosh99837f42019-03-21 09:58:52 -040060 <module>models-errors</module>
Pamela Dragosh2d4d2992019-03-16 17:17:37 -040061 <module>models-decisions</module>
liamfallon4c28d2c2019-03-14 10:01:58 +000062 <module>models-provider</module>
liamfallon9727c322019-03-19 16:29:56 +000063 <module>models-examples</module>
Hengyeb150aa82019-03-25 14:32:21 +000064 <module>models-interactions</module>
liamfallon90092032019-04-17 13:58:26 +000065 <module>models-sim</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040066 </modules>
67
eikrwaq67037d02018-05-23 17:17:58 +010068 <distributionManagement>
69 <site>
70 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040071 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010072 </site>
73 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040074
liamfallonb694be12019-03-05 09:35:16 +000075 <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>
liamfallon9727c322019-03-19 16:29:56 +000087 <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>
liamfallonb694be12019-03-05 09:35:16 +000096 <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>
liamfallon8fdf84c2019-03-15 12:36:38 +0000107 <groupId>org.yaml</groupId>
108 <artifactId>snakeyaml</artifactId>
liamfallon8fdf84c2019-03-15 12:36:38 +0000109 </dependency>
110
111 <dependency>
liamfallon4c28d2c2019-03-14 10:01:58 +0000112 <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>
liamfallon24400f72019-04-10 11:34:06 +0000118 <groupId>org.mariadb.jdbc</groupId>
119 <artifactId>mariadb-java-client</artifactId>
120 </dependency>
121
122 <dependency>
liamfallon18555712019-11-01 11:24:26 +0000123 <groupId>org.eclipse.persistence</groupId>
124 <artifactId>eclipselink</artifactId>
125 </dependency>
126
127 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000128 <groupId>junit</groupId>
129 <artifactId>junit</artifactId>
130 <scope>test</scope>
131 </dependency>
132
133 <dependency>
Pamela Dragosh99837f42019-03-21 09:58:52 -0400134 <groupId>org.assertj</groupId>
135 <artifactId>assertj-core</artifactId>
136 <scope>test</scope>
137 </dependency>
138
139 <dependency>
ramvermab359a4b2019-06-27 11:11:24 +0000140 <groupId>org.onap.policy.common</groupId>
141 <artifactId>utils-test</artifactId>
142 <version>${policy.common.version}</version>
143 <scope>test</scope>
144 </dependency>
HOCKLA754f9a02019-12-21 12:11:33 -0600145 <dependency>
146 <groupId>com.openpojo</groupId>
147 <artifactId>openpojo</artifactId>
148 <scope>test</scope>
149 </dependency>
liamfallon18555712019-11-01 11:24:26 +0000150
151 <dependency>
152 <groupId>org.glassfish.jersey.inject</groupId>
153 <artifactId>jersey-hk2</artifactId>
154 </dependency>
HOCKLA754f9a02019-12-21 12:11:33 -0600155 <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>
liamfallonb694be12019-03-05 09:35:16 +0000206 </dependencies>
207
liamfallonf240fda2019-02-26 13:57:39 +0000208 <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
Pamela Dragoshf973f582018-09-25 10:06:07 -0400218 <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 -->
HOCKLA754f9a02019-12-21 12:11:33 -0600260 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
Pamela Dragoshf973f582018-09-25 10:06:07 -0400261 <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>
ramvermab359a4b2019-06-27 11:11:24 +0000339 <ignore />
Pamela Dragoshf973f582018-09-25 10:06:07 -0400340 </action>
341 </pluginExecution>
342 </pluginExecutions>
343 </lifecycleMappingMetadata>
344 </configuration>
345 </plugin>
346 </plugins>
347 </pluginManagement>
348 </build>
Pamela Dragoshada55be2019-04-05 21:07:07 -0400349</project>