blob: 9b10713681b8d2db95ed35a97645a211ecfbf3a5 [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.
Chenfei Gao237dd482019-02-22 20:10:11 -05006 Copyright (C) 2019 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=========================================================
Hengyeb150aa82019-03-25 14:32:21 +000022--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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 +010023 <modelVersion>4.0.0</modelVersion>
24 <parent>
25 <groupId>org.onap.policy.parent</groupId>
26 <artifactId>integration</artifactId>
liamfallonaa317c72019-02-05 13:41:59 +000027 <version>2.1.0-SNAPSHOT</version>
Hengyeb150aa82019-03-25 14:32:21 +000028 <relativePath/>
eikrwaq67037d02018-05-23 17:17:58 +010029 </parent>
30
31 <groupId>org.onap.policy.models</groupId>
32 <artifactId>policy-models</artifactId>
Chenfei Gao9ddbc872019-02-26 15:59:56 -050033 <version>2.0.0-SNAPSHOT</version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040034
eikrwaq67037d02018-05-23 17:17:58 +010035 <packaging>pom</packaging>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -040036 <name>policy-models</name>
liamfallonaa317c72019-02-05 13:41:59 +000037 <description>This repo holds model code agnostic to PDP engines</description>
eikrwaq67037d02018-05-23 17:17:58 +010038
Pamela Dragoshf973f582018-09-25 10:06:07 -040039 <properties>
liamfallonb694be12019-03-05 09:35:16 +000040 <derby.version>10.13.1.1</derby.version>
liamfallon4c28d2c2019-03-14 10:01:58 +000041 <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
liamfallonb694be12019-03-05 09:35:16 +000042 <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
43
Pamela Dragoshf973f582018-09-25 10:06:07 -040044 <!-- sonar/jacoco overrides -->
45 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
46 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
47 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
48 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
49 </properties>
50
51 <modules>
liamfallonf240fda2019-02-26 13:57:39 +000052 <module>models-base</module>
53 <module>models-dao</module>
liamfallonb694be12019-03-05 09:35:16 +000054 <module>models-tosca</module>
ramverma59483882019-03-12 22:15:38 +000055 <module>models-pap</module>
Jim Hahna4b62b82019-03-21 09:54:30 -040056 <module>models-pdp</module>
Pamela Dragosh99837f42019-03-21 09:58:52 -040057 <module>models-errors</module>
Pamela Dragosh2d4d2992019-03-16 17:17:37 -040058 <module>models-decisions</module>
liamfallon4c28d2c2019-03-14 10:01:58 +000059 <module>models-provider</module>
liamfallon9727c322019-03-19 16:29:56 +000060 <module>models-examples</module>
Hengyeb150aa82019-03-25 14:32:21 +000061 <module>models-interactions</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040062 </modules>
63
eikrwaq67037d02018-05-23 17:17:58 +010064 <distributionManagement>
65 <site>
66 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040067 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010068 </site>
69 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040070
liamfallonb694be12019-03-05 09:35:16 +000071 <dependencies>
72 <dependency>
73 <groupId>org.onap.policy.common</groupId>
74 <artifactId>utils</artifactId>
75 </dependency>
76
77 <dependency>
78 <groupId>org.slf4j</groupId>
79 <artifactId>slf4j-api</artifactId>
80 </dependency>
81
82 <dependency>
liamfallon9727c322019-03-19 16:29:56 +000083 <groupId>ch.qos.logback</groupId>
84 <artifactId>logback-core</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>ch.qos.logback</groupId>
88 <artifactId>logback-classic</artifactId>
89 </dependency>
90
91 <dependency>
liamfallonb694be12019-03-05 09:35:16 +000092 <groupId>org.projectlombok</groupId>
93 <artifactId>lombok</artifactId>
94 <scope>provided</scope>
95 </dependency>
96
97 <dependency>
98 <groupId>com.google.code.gson</groupId>
99 <artifactId>gson</artifactId>
100 </dependency>
101
102 <dependency>
liamfallon8fdf84c2019-03-15 12:36:38 +0000103 <groupId>org.yaml</groupId>
104 <artifactId>snakeyaml</artifactId>
Jim Hahnd66116b2019-03-15 13:00:54 -0400105 <version>1.18</version>
liamfallon8fdf84c2019-03-15 12:36:38 +0000106 </dependency>
107
108 <dependency>
liamfallon4c28d2c2019-03-14 10:01:58 +0000109 <groupId>javax.ws.rs</groupId>
110 <artifactId>javax.ws.rs-api</artifactId>
111 <version>${javax.ws.rs-api.version}</version>
112 </dependency>
113
114 <dependency>
liamfallon24400f72019-04-10 11:34:06 +0000115 <groupId>org.mariadb.jdbc</groupId>
116 <artifactId>mariadb-java-client</artifactId>
117 </dependency>
118
119 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000120 <groupId>junit</groupId>
121 <artifactId>junit</artifactId>
122 <scope>test</scope>
123 </dependency>
124
125 <dependency>
Pamela Dragosh99837f42019-03-21 09:58:52 -0400126 <groupId>org.assertj</groupId>
127 <artifactId>assertj-core</artifactId>
128 <scope>test</scope>
129 </dependency>
130
131 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000132 <groupId>org.eclipse.persistence</groupId>
133 <artifactId>eclipselink</artifactId>
134 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000135 </dependencies>
136
liamfallonf240fda2019-02-26 13:57:39 +0000137 <dependencyManagement>
138 <dependencies>
139 <dependency>
140 <groupId>org.onap.policy.common</groupId>
141 <artifactId>utils</artifactId>
142 <version>${policy.common.version}</version>
143 </dependency>
144 </dependencies>
145 </dependencyManagement>
146
Pamela Dragoshf973f582018-09-25 10:06:07 -0400147 <build>
148 <plugins>
149 <plugin>
150 <groupId>org.jacoco</groupId>
151 <artifactId>jacoco-maven-plugin</artifactId>
152 <executions>
153 <execution>
154 <id>pre-unit-test</id>
155 <goals>
156 <goal>prepare-agent</goal>
157 </goals>
158 <configuration>
159 <destFile>${sonar.jacoco.reportPath}</destFile>
160 <append>true</append>
161 </configuration>
162 </execution>
163 <execution>
164 <id>post-unit-test</id>
165 <phase>test</phase>
166 <goals>
167 <goal>report</goal>
168 </goals>
169 <configuration>
170 <dataFile>${sonar.jacoco.reportPath}</dataFile>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 <plugin>
176 <artifactId>maven-checkstyle-plugin</artifactId>
177 <executions>
178 <execution>
179 <id>onap-java-style</id>
180 <goals>
181 <goal>check</goal>
182 </goals>
183 <phase>process-sources</phase>
184 <configuration>
185 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
186 with minor changes -->
187 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
188 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
189 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
190 <includeResources>true</includeResources>
191 <includeTestSourceDirectory>true</includeTestSourceDirectory>
192 <includeTestResources>true</includeTestResources>
193 <excludes>
194 </excludes>
195 <consoleOutput>true</consoleOutput>
196 <failOnViolation>true</failOnViolation>
197 <violationSeverity>warning</violationSeverity>
198 </configuration>
199 </execution>
200 </executions>
201 <dependencies>
202 <dependency>
203 <groupId>org.onap.oparent</groupId>
204 <artifactId>checkstyle</artifactId>
205 <version>${oparent.version}</version>
206 <scope>compile</scope>
207 </dependency>
208 </dependencies>
209 </plugin>
210 </plugins>
211 <pluginManagement>
212 <plugins>
213 <plugin>
214 <groupId>org.jacoco</groupId>
215 <artifactId>jacoco-maven-plugin</artifactId>
216 <version>${jacoco.version}</version>
217 <configuration>
218 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
219 <excludes>
220 <exclude>**/gen/**</exclude>
221 <exclude>**/generated-sources/**</exclude>
222 <exclude>**/yang-gen/**</exclude>
223 <exclude>**/pax/**</exclude>
224 </excludes>
225 </configuration>
226 <executions>
227 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
228 Maven the Surefire plugin is executed. -->
229 <execution>
230 <id>pre-unit-test</id>
231 <goals>
232 <goal>prepare-agent</goal>
233 </goals>
234 <configuration>
235 <destFile>${sonar.jacoco.reportPath}</destFile>
236 </configuration>
237 </execution>
238 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
239 <execution>
240 <id>post-unit-test</id>
241 <phase>test</phase>
242 <goals>
243 <goal>report</goal>
244 </goals>
245 <configuration>
246 <dataFile>${sonar.jacoco.reportPath}</dataFile>
247 </configuration>
248 </execution>
249 </executions>
250 </plugin>
251 <plugin>
252 <groupId>org.eclipse.m2e</groupId>
253 <artifactId>lifecycle-mapping</artifactId>
254 <version>1.0.0</version>
255 <configuration>
256 <lifecycleMappingMetadata>
257 <pluginExecutions>
258 <pluginExecution>
259 <pluginExecutionFilter>
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-checkstyle-plugin</artifactId>
262 <versionRange>2.17,)</versionRange>
263 <goals>
264 <goal>check</goal>
265 </goals>
266 </pluginExecutionFilter>
267 <action>
Hengyeb150aa82019-03-25 14:32:21 +0000268 <ignore/>
Pamela Dragoshf973f582018-09-25 10:06:07 -0400269 </action>
270 </pluginExecution>
271 </pluginExecutions>
272 </lifecycleMappingMetadata>
273 </configuration>
274 </plugin>
275 </plugins>
276 </pluginManagement>
277 </build>
Pamela Dragoshada55be2019-04-05 21:07:07 -0400278</project>