blob: a743bfbab2d365ead3e2f501df0da34b0b564eff [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>
Pamela Dragoshf469cc72019-05-01 07:07:23 -040027 <version>2.1.0</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>
liamfallonc328f102019-05-15 19:57:09 +000033 <version>2.0.1-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>
Pamela Dragoshf469cc72019-05-01 07:07:23 -040042 <policy.common.version>1.4.0</policy.common.version>
liamfallonb694be12019-03-05 09:35:16 +000043
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>
liamfallon90092032019-04-17 13:58:26 +000062 <module>models-sim</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040063 </modules>
64
eikrwaq67037d02018-05-23 17:17:58 +010065 <distributionManagement>
66 <site>
67 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040068 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010069 </site>
70 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040071
liamfallonb694be12019-03-05 09:35:16 +000072 <dependencies>
73 <dependency>
74 <groupId>org.onap.policy.common</groupId>
75 <artifactId>utils</artifactId>
76 </dependency>
77
78 <dependency>
79 <groupId>org.slf4j</groupId>
80 <artifactId>slf4j-api</artifactId>
81 </dependency>
82
83 <dependency>
liamfallon9727c322019-03-19 16:29:56 +000084 <groupId>ch.qos.logback</groupId>
85 <artifactId>logback-core</artifactId>
86 </dependency>
87 <dependency>
88 <groupId>ch.qos.logback</groupId>
89 <artifactId>logback-classic</artifactId>
90 </dependency>
91
92 <dependency>
liamfallonb694be12019-03-05 09:35:16 +000093 <groupId>org.projectlombok</groupId>
94 <artifactId>lombok</artifactId>
95 <scope>provided</scope>
96 </dependency>
97
98 <dependency>
99 <groupId>com.google.code.gson</groupId>
100 <artifactId>gson</artifactId>
101 </dependency>
102
103 <dependency>
liamfallon8fdf84c2019-03-15 12:36:38 +0000104 <groupId>org.yaml</groupId>
105 <artifactId>snakeyaml</artifactId>
Jim Hahnd66116b2019-03-15 13:00:54 -0400106 <version>1.18</version>
liamfallon8fdf84c2019-03-15 12:36:38 +0000107 </dependency>
108
109 <dependency>
liamfallon4c28d2c2019-03-14 10:01:58 +0000110 <groupId>javax.ws.rs</groupId>
111 <artifactId>javax.ws.rs-api</artifactId>
112 <version>${javax.ws.rs-api.version}</version>
113 </dependency>
114
115 <dependency>
liamfallon24400f72019-04-10 11:34:06 +0000116 <groupId>org.mariadb.jdbc</groupId>
117 <artifactId>mariadb-java-client</artifactId>
118 </dependency>
119
120 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000121 <groupId>junit</groupId>
122 <artifactId>junit</artifactId>
123 <scope>test</scope>
124 </dependency>
125
126 <dependency>
Pamela Dragosh99837f42019-03-21 09:58:52 -0400127 <groupId>org.assertj</groupId>
128 <artifactId>assertj-core</artifactId>
129 <scope>test</scope>
130 </dependency>
131
132 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000133 <groupId>org.eclipse.persistence</groupId>
134 <artifactId>eclipselink</artifactId>
135 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000136 </dependencies>
137
liamfallonf240fda2019-02-26 13:57:39 +0000138 <dependencyManagement>
139 <dependencies>
140 <dependency>
141 <groupId>org.onap.policy.common</groupId>
142 <artifactId>utils</artifactId>
143 <version>${policy.common.version}</version>
144 </dependency>
145 </dependencies>
146 </dependencyManagement>
147
Pamela Dragoshf973f582018-09-25 10:06:07 -0400148 <build>
149 <plugins>
150 <plugin>
151 <groupId>org.jacoco</groupId>
152 <artifactId>jacoco-maven-plugin</artifactId>
153 <executions>
154 <execution>
155 <id>pre-unit-test</id>
156 <goals>
157 <goal>prepare-agent</goal>
158 </goals>
159 <configuration>
160 <destFile>${sonar.jacoco.reportPath}</destFile>
161 <append>true</append>
162 </configuration>
163 </execution>
164 <execution>
165 <id>post-unit-test</id>
166 <phase>test</phase>
167 <goals>
168 <goal>report</goal>
169 </goals>
170 <configuration>
171 <dataFile>${sonar.jacoco.reportPath}</dataFile>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 <plugin>
177 <artifactId>maven-checkstyle-plugin</artifactId>
178 <executions>
179 <execution>
180 <id>onap-java-style</id>
181 <goals>
182 <goal>check</goal>
183 </goals>
184 <phase>process-sources</phase>
185 <configuration>
186 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
187 with minor changes -->
188 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
189 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
190 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
191 <includeResources>true</includeResources>
192 <includeTestSourceDirectory>true</includeTestSourceDirectory>
193 <includeTestResources>true</includeTestResources>
194 <excludes>
195 </excludes>
196 <consoleOutput>true</consoleOutput>
197 <failOnViolation>true</failOnViolation>
198 <violationSeverity>warning</violationSeverity>
199 </configuration>
200 </execution>
201 </executions>
202 <dependencies>
203 <dependency>
204 <groupId>org.onap.oparent</groupId>
205 <artifactId>checkstyle</artifactId>
206 <version>${oparent.version}</version>
207 <scope>compile</scope>
208 </dependency>
209 </dependencies>
210 </plugin>
211 </plugins>
212 <pluginManagement>
213 <plugins>
214 <plugin>
215 <groupId>org.jacoco</groupId>
216 <artifactId>jacoco-maven-plugin</artifactId>
217 <version>${jacoco.version}</version>
218 <configuration>
219 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
220 <excludes>
221 <exclude>**/gen/**</exclude>
222 <exclude>**/generated-sources/**</exclude>
223 <exclude>**/yang-gen/**</exclude>
224 <exclude>**/pax/**</exclude>
225 </excludes>
226 </configuration>
227 <executions>
228 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
229 Maven the Surefire plugin is executed. -->
230 <execution>
231 <id>pre-unit-test</id>
232 <goals>
233 <goal>prepare-agent</goal>
234 </goals>
235 <configuration>
236 <destFile>${sonar.jacoco.reportPath}</destFile>
237 </configuration>
238 </execution>
239 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
240 <execution>
241 <id>post-unit-test</id>
242 <phase>test</phase>
243 <goals>
244 <goal>report</goal>
245 </goals>
246 <configuration>
247 <dataFile>${sonar.jacoco.reportPath}</dataFile>
248 </configuration>
249 </execution>
250 </executions>
251 </plugin>
252 <plugin>
253 <groupId>org.eclipse.m2e</groupId>
254 <artifactId>lifecycle-mapping</artifactId>
255 <version>1.0.0</version>
256 <configuration>
257 <lifecycleMappingMetadata>
258 <pluginExecutions>
259 <pluginExecution>
260 <pluginExecutionFilter>
261 <groupId>org.apache.maven.plugins</groupId>
262 <artifactId>maven-checkstyle-plugin</artifactId>
263 <versionRange>2.17,)</versionRange>
264 <goals>
265 <goal>check</goal>
266 </goals>
267 </pluginExecutionFilter>
268 <action>
Hengyeb150aa82019-03-25 14:32:21 +0000269 <ignore/>
Pamela Dragoshf973f582018-09-25 10:06:07 -0400270 </action>
271 </pluginExecution>
272 </pluginExecutions>
273 </lifecycleMappingMetadata>
274 </configuration>
275 </plugin>
276 </plugins>
277 </pluginManagement>
278 </build>
Pamela Dragoshada55be2019-04-05 21:07:07 -0400279</project>