blob: 13743aec8a74beca5515a208849460b3e90608cc [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>
liamfallonb694be12019-03-05 09:35:16 +0000115 <groupId>junit</groupId>
116 <artifactId>junit</artifactId>
117 <scope>test</scope>
118 </dependency>
119
120 <dependency>
Pamela Dragosh99837f42019-03-21 09:58:52 -0400121 <groupId>org.assertj</groupId>
122 <artifactId>assertj-core</artifactId>
123 <scope>test</scope>
124 </dependency>
125
126 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000127 <groupId>org.eclipse.persistence</groupId>
128 <artifactId>eclipselink</artifactId>
129 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000130 </dependencies>
131
liamfallonf240fda2019-02-26 13:57:39 +0000132 <dependencyManagement>
133 <dependencies>
134 <dependency>
135 <groupId>org.onap.policy.common</groupId>
136 <artifactId>utils</artifactId>
137 <version>${policy.common.version}</version>
138 </dependency>
139 </dependencies>
140 </dependencyManagement>
141
Pamela Dragoshf973f582018-09-25 10:06:07 -0400142 <build>
143 <plugins>
144 <plugin>
145 <groupId>org.jacoco</groupId>
146 <artifactId>jacoco-maven-plugin</artifactId>
147 <executions>
148 <execution>
149 <id>pre-unit-test</id>
150 <goals>
151 <goal>prepare-agent</goal>
152 </goals>
153 <configuration>
154 <destFile>${sonar.jacoco.reportPath}</destFile>
155 <append>true</append>
156 </configuration>
157 </execution>
158 <execution>
159 <id>post-unit-test</id>
160 <phase>test</phase>
161 <goals>
162 <goal>report</goal>
163 </goals>
164 <configuration>
165 <dataFile>${sonar.jacoco.reportPath}</dataFile>
166 </configuration>
167 </execution>
168 </executions>
169 </plugin>
170 <plugin>
171 <artifactId>maven-checkstyle-plugin</artifactId>
172 <executions>
173 <execution>
174 <id>onap-java-style</id>
175 <goals>
176 <goal>check</goal>
177 </goals>
178 <phase>process-sources</phase>
179 <configuration>
180 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
181 with minor changes -->
182 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
183 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
184 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
185 <includeResources>true</includeResources>
186 <includeTestSourceDirectory>true</includeTestSourceDirectory>
187 <includeTestResources>true</includeTestResources>
188 <excludes>
189 </excludes>
190 <consoleOutput>true</consoleOutput>
191 <failOnViolation>true</failOnViolation>
192 <violationSeverity>warning</violationSeverity>
193 </configuration>
194 </execution>
195 </executions>
196 <dependencies>
197 <dependency>
198 <groupId>org.onap.oparent</groupId>
199 <artifactId>checkstyle</artifactId>
200 <version>${oparent.version}</version>
201 <scope>compile</scope>
202 </dependency>
203 </dependencies>
204 </plugin>
205 </plugins>
206 <pluginManagement>
207 <plugins>
208 <plugin>
209 <groupId>org.jacoco</groupId>
210 <artifactId>jacoco-maven-plugin</artifactId>
211 <version>${jacoco.version}</version>
212 <configuration>
213 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
214 <excludes>
215 <exclude>**/gen/**</exclude>
216 <exclude>**/generated-sources/**</exclude>
217 <exclude>**/yang-gen/**</exclude>
218 <exclude>**/pax/**</exclude>
219 </excludes>
220 </configuration>
221 <executions>
222 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
223 Maven the Surefire plugin is executed. -->
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 </configuration>
232 </execution>
233 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
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 <groupId>org.eclipse.m2e</groupId>
248 <artifactId>lifecycle-mapping</artifactId>
249 <version>1.0.0</version>
250 <configuration>
251 <lifecycleMappingMetadata>
252 <pluginExecutions>
253 <pluginExecution>
254 <pluginExecutionFilter>
255 <groupId>org.apache.maven.plugins</groupId>
256 <artifactId>maven-checkstyle-plugin</artifactId>
257 <versionRange>2.17,)</versionRange>
258 <goals>
259 <goal>check</goal>
260 </goals>
261 </pluginExecutionFilter>
262 <action>
Hengyeb150aa82019-03-25 14:32:21 +0000263 <ignore/>
Pamela Dragoshf973f582018-09-25 10:06:07 -0400264 </action>
265 </pluginExecution>
266 </pluginExecutions>
267 </lifecycleMappingMetadata>
268 </configuration>
269 </plugin>
270 </plugins>
271 </pluginManagement>
272 </build>
Pamela Dragoshada55be2019-04-05 21:07:07 -0400273</project>