blob: ee5092eaefd9b66f6a1bd65c71c9a40992eb10e1 [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>
eikrwaq67037d02018-05-23 17:17:58 +010031 </parent>
32
33 <groupId>org.onap.policy.models</groupId>
34 <artifactId>policy-models</artifactId>
Chenfei Gao9ddbc872019-02-26 15:59:56 -050035 <version>2.0.0-SNAPSHOT</version>
Pamela Dragoshf973f582018-09-25 10:06:07 -040036
eikrwaq67037d02018-05-23 17:17:58 +010037 <packaging>pom</packaging>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -040038 <name>policy-models</name>
liamfallonaa317c72019-02-05 13:41:59 +000039 <description>This repo holds model code agnostic to PDP engines</description>
eikrwaq67037d02018-05-23 17:17:58 +010040
Pamela Dragoshf973f582018-09-25 10:06:07 -040041 <properties>
liamfallonb694be12019-03-05 09:35:16 +000042 <derby.version>10.13.1.1</derby.version>
liamfallon4c28d2c2019-03-14 10:01:58 +000043 <javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
liamfallonb694be12019-03-05 09:35:16 +000044 <policy.common.version>1.4.0-SNAPSHOT</policy.common.version>
45
Pamela Dragoshf973f582018-09-25 10:06:07 -040046 <!-- sonar/jacoco overrides -->
47 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports into one file shared across sub-modules -->
48 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
49 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
50 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
51 </properties>
52
53 <modules>
liamfallonf240fda2019-02-26 13:57:39 +000054 <module>models-base</module>
55 <module>models-dao</module>
liamfallonb694be12019-03-05 09:35:16 +000056 <module>models-tosca</module>
ramverma59483882019-03-12 22:15:38 +000057 <module>models-pap</module>
liamfallon4c28d2c2019-03-14 10:01:58 +000058 <module>models-provider</module>
Pamela Dragoshf973f582018-09-25 10:06:07 -040059 </modules>
60
eikrwaq67037d02018-05-23 17:17:58 +010061 <distributionManagement>
62 <site>
63 <id>ecomp-site</id>
Pamela Dragoshf973f582018-09-25 10:06:07 -040064 <url>dav:${nexusproxy}${sitePath}</url>
eikrwaq67037d02018-05-23 17:17:58 +010065 </site>
66 </distributionManagement>
Pamela Dragoshf973f582018-09-25 10:06:07 -040067
liamfallonb694be12019-03-05 09:35:16 +000068 <dependencies>
69 <dependency>
70 <groupId>org.onap.policy.common</groupId>
71 <artifactId>utils</artifactId>
72 </dependency>
73
74 <dependency>
75 <groupId>org.slf4j</groupId>
76 <artifactId>slf4j-api</artifactId>
77 </dependency>
78
79 <dependency>
80 <groupId>org.projectlombok</groupId>
81 <artifactId>lombok</artifactId>
82 <scope>provided</scope>
83 </dependency>
84
85 <dependency>
86 <groupId>com.google.code.gson</groupId>
87 <artifactId>gson</artifactId>
88 </dependency>
89
90 <dependency>
liamfallon4c28d2c2019-03-14 10:01:58 +000091 <groupId>javax.ws.rs</groupId>
92 <artifactId>javax.ws.rs-api</artifactId>
93 <version>${javax.ws.rs-api.version}</version>
94 </dependency>
95
96 <dependency>
liamfallonb694be12019-03-05 09:35:16 +000097 <groupId>junit</groupId>
98 <artifactId>junit</artifactId>
99 <scope>test</scope>
100 </dependency>
101
102 <dependency>
103 <groupId>org.eclipse.persistence</groupId>
104 <artifactId>eclipselink</artifactId>
105 </dependency>
liamfallonb694be12019-03-05 09:35:16 +0000106 </dependencies>
107
liamfallonf240fda2019-02-26 13:57:39 +0000108 <dependencyManagement>
109 <dependencies>
110 <dependency>
111 <groupId>org.onap.policy.common</groupId>
112 <artifactId>utils</artifactId>
113 <version>${policy.common.version}</version>
114 </dependency>
115 </dependencies>
116 </dependencyManagement>
117
Pamela Dragoshf973f582018-09-25 10:06:07 -0400118 <build>
119 <plugins>
120 <plugin>
121 <groupId>org.jacoco</groupId>
122 <artifactId>jacoco-maven-plugin</artifactId>
123 <executions>
124 <execution>
125 <id>pre-unit-test</id>
126 <goals>
127 <goal>prepare-agent</goal>
128 </goals>
129 <configuration>
130 <destFile>${sonar.jacoco.reportPath}</destFile>
131 <append>true</append>
132 </configuration>
133 </execution>
134 <execution>
135 <id>post-unit-test</id>
136 <phase>test</phase>
137 <goals>
138 <goal>report</goal>
139 </goals>
140 <configuration>
141 <dataFile>${sonar.jacoco.reportPath}</dataFile>
142 </configuration>
143 </execution>
144 </executions>
145 </plugin>
146 <plugin>
147 <artifactId>maven-checkstyle-plugin</artifactId>
148 <executions>
149 <execution>
150 <id>onap-java-style</id>
151 <goals>
152 <goal>check</goal>
153 </goals>
154 <phase>process-sources</phase>
155 <configuration>
156 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
157 with minor changes -->
158 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
159 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
160 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
161 <includeResources>true</includeResources>
162 <includeTestSourceDirectory>true</includeTestSourceDirectory>
163 <includeTestResources>true</includeTestResources>
164 <excludes>
165 </excludes>
166 <consoleOutput>true</consoleOutput>
167 <failOnViolation>true</failOnViolation>
168 <violationSeverity>warning</violationSeverity>
169 </configuration>
170 </execution>
171 </executions>
172 <dependencies>
173 <dependency>
174 <groupId>org.onap.oparent</groupId>
175 <artifactId>checkstyle</artifactId>
176 <version>${oparent.version}</version>
177 <scope>compile</scope>
178 </dependency>
179 </dependencies>
180 </plugin>
181 </plugins>
182 <pluginManagement>
183 <plugins>
184 <plugin>
185 <groupId>org.jacoco</groupId>
186 <artifactId>jacoco-maven-plugin</artifactId>
187 <version>${jacoco.version}</version>
188 <configuration>
189 <!-- Note: This exclusion list should match <sonar.exclusions> property above -->
190 <excludes>
191 <exclude>**/gen/**</exclude>
192 <exclude>**/generated-sources/**</exclude>
193 <exclude>**/yang-gen/**</exclude>
194 <exclude>**/pax/**</exclude>
195 </excludes>
196 </configuration>
197 <executions>
198 <!-- Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when
199 Maven the Surefire plugin is executed. -->
200 <execution>
201 <id>pre-unit-test</id>
202 <goals>
203 <goal>prepare-agent</goal>
204 </goals>
205 <configuration>
206 <destFile>${sonar.jacoco.reportPath}</destFile>
207 </configuration>
208 </execution>
209 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
210 <execution>
211 <id>post-unit-test</id>
212 <phase>test</phase>
213 <goals>
214 <goal>report</goal>
215 </goals>
216 <configuration>
217 <dataFile>${sonar.jacoco.reportPath}</dataFile>
218 </configuration>
219 </execution>
220 </executions>
221 </plugin>
222 <plugin>
223 <groupId>org.eclipse.m2e</groupId>
224 <artifactId>lifecycle-mapping</artifactId>
225 <version>1.0.0</version>
226 <configuration>
227 <lifecycleMappingMetadata>
228 <pluginExecutions>
229 <pluginExecution>
230 <pluginExecutionFilter>
231 <groupId>org.apache.maven.plugins</groupId>
232 <artifactId>maven-checkstyle-plugin</artifactId>
233 <versionRange>2.17,)</versionRange>
234 <goals>
235 <goal>check</goal>
236 </goals>
237 </pluginExecutionFilter>
238 <action>
239 <ignore />
240 </action>
241 </pluginExecution>
242 </pluginExecutions>
243 </lifecycleMappingMetadata>
244 </configuration>
245 </plugin>
246 </plugins>
247 </pluginManagement>
248 </build>
Pamela Dragoshd01b3fa2018-05-25 08:17:28 -0400249</project>