blob: bf97d1cbba93a069d9eed35df58b2d2267ac8e8d [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 Dragosh814101d2019-05-29 07:44:50 -040027 <version>3.0.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>
Pamela Dragosh814101d2019-05-29 07:44:50 -040033 <version>2.1.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
Pamela Dragoshf973f582018-09-25 10:06:07 -040043 <!-- sonar/jacoco overrides -->
44 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
45 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
46 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
47 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragosh814101d2019-05-29 07:44:50 -040048
49 <policy.common.version>1.5.0-SNAPSHOT</policy.common.version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040050 </properties>
51
52 <modules>
liamfallonf240fda2019-02-26 13:57:39 +000053 <module>models-base</module>
54 <module>models-dao</module>
liamfallonb694be12019-03-05 09:35:16 +000055 <module>models-tosca</module>
ramverma59483882019-03-12 22:15:38 +000056 <module>models-pap</module>
Jim Hahna4b62b82019-03-21 09:54:30 -040057 <module>models-pdp</module>
Pamela Dragosh99837f42019-03-21 09:58:52 -040058 <module>models-errors</module>
Pamela Dragosh2d4d2992019-03-16 17:17:37 -040059 <module>models-decisions</module>
liamfallon4c28d2c2019-03-14 10:01:58 +000060 <module>models-provider</module>
liamfallon9727c322019-03-19 16:29:56 +000061 <module>models-examples</module>
Hengyeb150aa82019-03-25 14:32:21 +000062 <module>models-interactions</module>
liamfallon90092032019-04-17 13:58:26 +000063 <module>models-sim</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040064 </modules>
65
eikrwaq67037d02018-05-23 17:17:58 +010066 <distributionManagement>
67 <site>
68 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040069 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010070 </site>
71 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040072
liamfallonb694be12019-03-05 09:35:16 +000073 <dependencies>
74 <dependency>
75 <groupId>org.onap.policy.common</groupId>
76 <artifactId>utils</artifactId>
77 </dependency>
78
79 <dependency>
80 <groupId>org.slf4j</groupId>
81 <artifactId>slf4j-api</artifactId>
82 </dependency>
83
84 <dependency>
liamfallon9727c322019-03-19 16:29:56 +000085 <groupId>ch.qos.logback</groupId>
86 <artifactId>logback-core</artifactId>
87 </dependency>
88 <dependency>
89 <groupId>ch.qos.logback</groupId>
90 <artifactId>logback-classic</artifactId>
91 </dependency>
92
93 <dependency>
liamfallonb694be12019-03-05 09:35:16 +000094 <groupId>org.projectlombok</groupId>
95 <artifactId>lombok</artifactId>
96 <scope>provided</scope>
97 </dependency>
98
99 <dependency>
100 <groupId>com.google.code.gson</groupId>
101 <artifactId>gson</artifactId>
102 </dependency>
103
104 <dependency>
liamfallon8fdf84c2019-03-15 12:36:38 +0000105 <groupId>org.yaml</groupId>
106 <artifactId>snakeyaml</artifactId>
Jim Hahnd66116b2019-03-15 13:00:54 -0400107 <version>1.18</version>
liamfallon8fdf84c2019-03-15 12:36:38 +0000108 </dependency>
109
110 <dependency>
liamfallon4c28d2c2019-03-14 10:01:58 +0000111 <groupId>javax.ws.rs</groupId>
112 <artifactId>javax.ws.rs-api</artifactId>
113 <version>${javax.ws.rs-api.version}</version>
114 </dependency>
115
116 <dependency>
liamfallon24400f72019-04-10 11:34:06 +0000117 <groupId>org.mariadb.jdbc</groupId>
118 <artifactId>mariadb-java-client</artifactId>
119 </dependency>
120
121 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000122 <groupId>junit</groupId>
123 <artifactId>junit</artifactId>
124 <scope>test</scope>
125 </dependency>
126
127 <dependency>
Pamela Dragosh99837f42019-03-21 09:58:52 -0400128 <groupId>org.assertj</groupId>
129 <artifactId>assertj-core</artifactId>
130 <scope>test</scope>
131 </dependency>
132
133 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000134 <groupId>org.eclipse.persistence</groupId>
135 <artifactId>eclipselink</artifactId>
136 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000137 </dependencies>
138
liamfallonf240fda2019-02-26 13:57:39 +0000139 <dependencyManagement>
140 <dependencies>
141 <dependency>
142 <groupId>org.onap.policy.common</groupId>
143 <artifactId>utils</artifactId>
144 <version>${policy.common.version}</version>
145 </dependency>
146 </dependencies>
147 </dependencyManagement>
148
Pamela Dragoshf973f582018-09-25 10:06:07 -0400149 <build>
150 <plugins>
151 <plugin>
152 <groupId>org.jacoco</groupId>
153 <artifactId>jacoco-maven-plugin</artifactId>
154 <executions>
155 <execution>
156 <id>pre-unit-test</id>
157 <goals>
158 <goal>prepare-agent</goal>
159 </goals>
160 <configuration>
161 <destFile>${sonar.jacoco.reportPath}</destFile>
162 <append>true</append>
163 </configuration>
164 </execution>
165 <execution>
166 <id>post-unit-test</id>
167 <phase>test</phase>
168 <goals>
169 <goal>report</goal>
170 </goals>
171 <configuration>
172 <dataFile>${sonar.jacoco.reportPath}</dataFile>
173 </configuration>
174 </execution>
175 </executions>
176 </plugin>
177 <plugin>
178 <artifactId>maven-checkstyle-plugin</artifactId>
179 <executions>
180 <execution>
181 <id>onap-java-style</id>
182 <goals>
183 <goal>check</goal>
184 </goals>
185 <phase>process-sources</phase>
186 <configuration>
187 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
188 with minor changes -->
189 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
190 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
191 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
192 <includeResources>true</includeResources>
193 <includeTestSourceDirectory>true</includeTestSourceDirectory>
194 <includeTestResources>true</includeTestResources>
195 <excludes>
196 </excludes>
197 <consoleOutput>true</consoleOutput>
198 <failOnViolation>true</failOnViolation>
199 <violationSeverity>warning</violationSeverity>
200 </configuration>
201 </execution>
202 </executions>
203 <dependencies>
204 <dependency>
205 <groupId>org.onap.oparent</groupId>
206 <artifactId>checkstyle</artifactId>
207 <version>${oparent.version}</version>
208 <scope>compile</scope>
209 </dependency>
210 </dependencies>
211 </plugin>
212 </plugins>
213 <pluginManagement>
214 <plugins>
215 <plugin>
216 <groupId>org.jacoco</groupId>
217 <artifactId>jacoco-maven-plugin</artifactId>
218 <version>${jacoco.version}</version>
219 <configuration>
220 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
221 <excludes>
222 <exclude>**/gen/**</exclude>
223 <exclude>**/generated-sources/**</exclude>
224 <exclude>**/yang-gen/**</exclude>
225 <exclude>**/pax/**</exclude>
226 </excludes>
227 </configuration>
228 <executions>
229 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
230 Maven the Surefire plugin is executed. -->
231 <execution>
232 <id>pre-unit-test</id>
233 <goals>
234 <goal>prepare-agent</goal>
235 </goals>
236 <configuration>
237 <destFile>${sonar.jacoco.reportPath}</destFile>
238 </configuration>
239 </execution>
240 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
241 <execution>
242 <id>post-unit-test</id>
243 <phase>test</phase>
244 <goals>
245 <goal>report</goal>
246 </goals>
247 <configuration>
248 <dataFile>${sonar.jacoco.reportPath}</dataFile>
249 </configuration>
250 </execution>
251 </executions>
252 </plugin>
253 <plugin>
254 <groupId>org.eclipse.m2e</groupId>
255 <artifactId>lifecycle-mapping</artifactId>
256 <version>1.0.0</version>
257 <configuration>
258 <lifecycleMappingMetadata>
259 <pluginExecutions>
260 <pluginExecution>
261 <pluginExecutionFilter>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-checkstyle-plugin</artifactId>
264 <versionRange>2.17,)</versionRange>
265 <goals>
266 <goal>check</goal>
267 </goals>
268 </pluginExecutionFilter>
269 <action>
Hengyeb150aa82019-03-25 14:32:21 +0000270 <ignore/>
Pamela Dragoshf973f582018-09-25 10:06:07 -0400271 </action>
272 </pluginExecution>
273 </pluginExecutions>
274 </lifecycleMappingMetadata>
275 </configuration>
276 </plugin>
277 </plugins>
278 </pluginManagement>
279 </build>
Pamela Dragoshada55be2019-04-05 21:07:07 -0400280</project>