blob: c0df3294f443e2419ca46af3afccd0a931ea1cd3 [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>
Pamela Dragosh2d4d2992019-03-16 17:17:37 -040059 <module>models-decisions</module>
liamfallon4c28d2c2019-03-14 10:01:58 +000060 <module>models-provider</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040061 </modules>
62
eikrwaq67037d02018-05-23 17:17:58 +010063 <distributionManagement>
64 <site>
65 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040066 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010067 </site>
68 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040069
liamfallonb694be12019-03-05 09:35:16 +000070 <dependencies>
71 <dependency>
72 <groupId>org.onap.policy.common</groupId>
73 <artifactId>utils</artifactId>
74 </dependency>
75
76 <dependency>
77 <groupId>org.slf4j</groupId>
78 <artifactId>slf4j-api</artifactId>
79 </dependency>
80
81 <dependency>
82 <groupId>org.projectlombok</groupId>
83 <artifactId>lombok</artifactId>
84 <scope>provided</scope>
85 </dependency>
86
87 <dependency>
88 <groupId>com.google.code.gson</groupId>
89 <artifactId>gson</artifactId>
90 </dependency>
91
92 <dependency>
liamfallon8fdf84c2019-03-15 12:36:38 +000093 <groupId>org.yaml</groupId>
94 <artifactId>snakeyaml</artifactId>
Jim Hahnd66116b2019-03-15 13:00:54 -040095 <version>1.18</version>
liamfallon8fdf84c2019-03-15 12:36:38 +000096 </dependency>
97
98 <dependency>
liamfallon4c28d2c2019-03-14 10:01:58 +000099 <groupId>javax.ws.rs</groupId>
100 <artifactId>javax.ws.rs-api</artifactId>
101 <version>${javax.ws.rs-api.version}</version>
102 </dependency>
103
104 <dependency>
liamfallonb694be12019-03-05 09:35:16 +0000105 <groupId>junit</groupId>
106 <artifactId>junit</artifactId>
107 <scope>test</scope>
108 </dependency>
109
110 <dependency>
111 <groupId>org.eclipse.persistence</groupId>
112 <artifactId>eclipselink</artifactId>
113 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000114 </dependencies>
115
liamfallonf240fda2019-02-26 13:57:39 +0000116 <dependencyManagement>
117 <dependencies>
118 <dependency>
119 <groupId>org.onap.policy.common</groupId>
120 <artifactId>utils</artifactId>
121 <version>${policy.common.version}</version>
122 </dependency>
123 </dependencies>
124 </dependencyManagement>
125
Pamela Dragoshf973f582018-09-25 10:06:07 -0400126 <build>
127 <plugins>
128 <plugin>
129 <groupId>org.jacoco</groupId>
130 <artifactId>jacoco-maven-plugin</artifactId>
131 <executions>
132 <execution>
133 <id>pre-unit-test</id>
134 <goals>
135 <goal>prepare-agent</goal>
136 </goals>
137 <configuration>
138 <destFile>${sonar.jacoco.reportPath}</destFile>
139 <append>true</append>
140 </configuration>
141 </execution>
142 <execution>
143 <id>post-unit-test</id>
144 <phase>test</phase>
145 <goals>
146 <goal>report</goal>
147 </goals>
148 <configuration>
149 <dataFile>${sonar.jacoco.reportPath}</dataFile>
150 </configuration>
151 </execution>
152 </executions>
153 </plugin>
154 <plugin>
155 <artifactId>maven-checkstyle-plugin</artifactId>
156 <executions>
157 <execution>
158 <id>onap-java-style</id>
159 <goals>
160 <goal>check</goal>
161 </goals>
162 <phase>process-sources</phase>
163 <configuration>
164 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
165 with minor changes -->
166 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
167 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
168 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
169 <includeResources>true</includeResources>
170 <includeTestSourceDirectory>true</includeTestSourceDirectory>
171 <includeTestResources>true</includeTestResources>
172 <excludes>
173 </excludes>
174 <consoleOutput>true</consoleOutput>
175 <failOnViolation>true</failOnViolation>
176 <violationSeverity>warning</violationSeverity>
177 </configuration>
178 </execution>
179 </executions>
180 <dependencies>
181 <dependency>
182 <groupId>org.onap.oparent</groupId>
183 <artifactId>checkstyle</artifactId>
184 <version>${oparent.version}</version>
185 <scope>compile</scope>
186 </dependency>
187 </dependencies>
188 </plugin>
189 </plugins>
190 <pluginManagement>
191 <plugins>
192 <plugin>
193 <groupId>org.jacoco</groupId>
194 <artifactId>jacoco-maven-plugin</artifactId>
195 <version>${jacoco.version}</version>
196 <configuration>
197 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
198 <excludes>
199 <exclude>**/gen/**</exclude>
200 <exclude>**/generated-sources/**</exclude>
201 <exclude>**/yang-gen/**</exclude>
202 <exclude>**/pax/**</exclude>
203 </excludes>
204 </configuration>
205 <executions>
206 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
207 Maven the Surefire plugin is executed. -->
208 <execution>
209 <id>pre-unit-test</id>
210 <goals>
211 <goal>prepare-agent</goal>
212 </goals>
213 <configuration>
214 <destFile>${sonar.jacoco.reportPath}</destFile>
215 </configuration>
216 </execution>
217 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
218 <execution>
219 <id>post-unit-test</id>
220 <phase>test</phase>
221 <goals>
222 <goal>report</goal>
223 </goals>
224 <configuration>
225 <dataFile>${sonar.jacoco.reportPath}</dataFile>
226 </configuration>
227 </execution>
228 </executions>
229 </plugin>
230 <plugin>
231 <groupId>org.eclipse.m2e</groupId>
232 <artifactId>lifecycle-mapping</artifactId>
233 <version>1.0.0</version>
234 <configuration>
235 <lifecycleMappingMetadata>
236 <pluginExecutions>
237 <pluginExecution>
238 <pluginExecutionFilter>
239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-checkstyle-plugin</artifactId>
241 <versionRange>2.17,)</versionRange>
242 <goals>
243 <goal>check</goal>
244 </goals>
245 </pluginExecutionFilter>
246 <action>
247 <ignore />
248 </action>
249 </pluginExecution>
250 </pluginExecutions>
251 </lifecycleMappingMetadata>
252 </configuration>
253 </plugin>
254 </plugins>
255 </pluginManagement>
256 </build>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -0400257</project>