blob: 254a54048fda719f4fcaae6370e5d3542007845e [file] [log] [blame]
eikrwaq67037d02018-05-23 17:17:58 +01001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2018 Ericsson. All rights reserved.
liamfallonaa317c72019-02-05 13:41:59 +00004 Copyright (C) 2019 Nordix Foundation.
Chenfei Gao237dd482019-02-22 20:10:11 -05005 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
eikrwaq67037d02018-05-23 17:17:58 +01006 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19 SPDX-License-Identifier: Apache-2.0
20 ============LICENSE_END=========================================================
21-->
22
liamfallonb694be12019-03-05 09:35:16 +000023<project xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
eikrwaq67037d02018-05-23 17:17:58 +010025 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.policy.parent</groupId>
29 <artifactId>integration</artifactId>
liamfallonaa317c72019-02-05 13:41:59 +000030 <version>2.1.0-SNAPSHOT</version>
Pamela Dragosh4d232872019-03-15 10:27:24 -040031 <relativePath />
eikrwaq67037d02018-05-23 17:17:58 +010032 </parent>
33
34 <groupId>org.onap.policy.models</groupId>
35 <artifactId>policy-models</artifactId>
Chenfei Gao9ddbc872019-02-26 15:59:56 -050036 <version>2.0.0-SNAPSHOT</version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040037
eikrwaq67037d02018-05-23 17:17:58 +010038 <packaging>pom</packaging>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -040039 <name>policy-models</name>
liamfallonaa317c72019-02-05 13:41:59 +000040 <description>This repo holds model code agnostic to PDP engines</description>
eikrwaq67037d02018-05-23 17:17:58 +010041
Pamela Dragoshf973f582018-09-25 10:06:07 -040042 <properties>
liamfallonb694be12019-03-05 09:35:16 +000043 <derby.version>10.13.1.1</derby.version>
liamfallon4c28d2c2019-03-14 10:01:58 +000044 <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
liamfallonb694be12019-03-05 09:35:16 +000045 <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
46
Pamela Dragoshf973f582018-09-25 10:06:07 -040047 <!-- sonar/jacoco overrides -->
48 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
49 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
50 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
51 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
52 </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>
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>
liamfallonb694be12019-03-05 09:35:16 +0000117 <groupId>junit</groupId>
118 <artifactId>junit</artifactId>
119 <scope>test</scope>
120 </dependency>
121
122 <dependency>
Pamela Dragosh99837f42019-03-21 09:58:52 -0400123 <groupId>org.assertj</groupId>
124 <artifactId>assertj-core</artifactId>
125 <scope>test</scope>
126 </dependency>
127
128 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000129 <groupId>org.eclipse.persistence</groupId>
130 <artifactId>eclipselink</artifactId>
131 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000132 </dependencies>
133
liamfallonf240fda2019-02-26 13:57:39 +0000134 <dependencyManagement>
135 <dependencies>
136 <dependency>
137 <groupId>org.onap.policy.common</groupId>
138 <artifactId>utils</artifactId>
139 <version>${policy.common.version}</version>
140 </dependency>
141 </dependencies>
142 </dependencyManagement>
143
Pamela Dragoshf973f582018-09-25 10:06:07 -0400144 <build>
145 <plugins>
146 <plugin>
147 <groupId>org.jacoco</groupId>
148 <artifactId>jacoco-maven-plugin</artifactId>
149 <executions>
150 <execution>
151 <id>pre-unit-test</id>
152 <goals>
153 <goal>prepare-agent</goal>
154 </goals>
155 <configuration>
156 <destFile>${sonar.jacoco.reportPath}</destFile>
157 <append>true</append>
158 </configuration>
159 </execution>
160 <execution>
161 <id>post-unit-test</id>
162 <phase>test</phase>
163 <goals>
164 <goal>report</goal>
165 </goals>
166 <configuration>
167 <dataFile>${sonar.jacoco.reportPath}</dataFile>
168 </configuration>
169 </execution>
170 </executions>
171 </plugin>
172 <plugin>
173 <artifactId>maven-checkstyle-plugin</artifactId>
174 <executions>
175 <execution>
176 <id>onap-java-style</id>
177 <goals>
178 <goal>check</goal>
179 </goals>
180 <phase>process-sources</phase>
181 <configuration>
182 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
183 with minor changes -->
184 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
185 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
186 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
187 <includeResources>true</includeResources>
188 <includeTestSourceDirectory>true</includeTestSourceDirectory>
189 <includeTestResources>true</includeTestResources>
190 <excludes>
191 </excludes>
192 <consoleOutput>true</consoleOutput>
193 <failOnViolation>true</failOnViolation>
194 <violationSeverity>warning</violationSeverity>
195 </configuration>
196 </execution>
197 </executions>
198 <dependencies>
199 <dependency>
200 <groupId>org.onap.oparent</groupId>
201 <artifactId>checkstyle</artifactId>
202 <version>${oparent.version}</version>
203 <scope>compile</scope>
204 </dependency>
205 </dependencies>
206 </plugin>
207 </plugins>
208 <pluginManagement>
209 <plugins>
210 <plugin>
211 <groupId>org.jacoco</groupId>
212 <artifactId>jacoco-maven-plugin</artifactId>
213 <version>${jacoco.version}</version>
214 <configuration>
215 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
216 <excludes>
217 <exclude>**/gen/**</exclude>
218 <exclude>**/generated-sources/**</exclude>
219 <exclude>**/yang-gen/**</exclude>
220 <exclude>**/pax/**</exclude>
221 </excludes>
222 </configuration>
223 <executions>
224 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
225 Maven the Surefire plugin is executed. -->
226 <execution>
227 <id>pre-unit-test</id>
228 <goals>
229 <goal>prepare-agent</goal>
230 </goals>
231 <configuration>
232 <destFile>${sonar.jacoco.reportPath}</destFile>
233 </configuration>
234 </execution>
235 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
236 <execution>
237 <id>post-unit-test</id>
238 <phase>test</phase>
239 <goals>
240 <goal>report</goal>
241 </goals>
242 <configuration>
243 <dataFile>${sonar.jacoco.reportPath}</dataFile>
244 </configuration>
245 </execution>
246 </executions>
247 </plugin>
248 <plugin>
249 <groupId>org.eclipse.m2e</groupId>
250 <artifactId>lifecycle-mapping</artifactId>
251 <version>1.0.0</version>
252 <configuration>
253 <lifecycleMappingMetadata>
254 <pluginExecutions>
255 <pluginExecution>
256 <pluginExecutionFilter>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-checkstyle-plugin</artifactId>
259 <versionRange>2.17,)</versionRange>
260 <goals>
261 <goal>check</goal>
262 </goals>
263 </pluginExecutionFilter>
264 <action>
265 <ignore />
266 </action>
267 </pluginExecution>
268 </pluginExecutions>
269 </lifecycleMappingMetadata>
270 </configuration>
271 </plugin>
272 </plugins>
273 </pluginManagement>
274 </build>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -0400275</project>