blob: e50dd7d4fe3e3e2b631f238b83cdbddbad540052 [file] [log] [blame]
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -05001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine
4 ================================================================================
Hengye6a4266d2019-04-04 06:09:26 +00005 Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
6 Modifications Copyright (C) 2019 Nordix Foundation.
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -05007 ================================================================================
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
liamfallon46b5b532019-11-01 12:09:52 +000011
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -050012 http://www.apache.org/licenses/LICENSE-2.0
liamfallon46b5b532019-11-01 12:09:52 +000013
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -050014 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 ============LICENSE_END=========================================================
20 -->
liamfallon46b5b532019-11-01 12:09:52 +000021<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040023 <modelVersion>4.0.0</modelVersion>
24 <parent>
25 <groupId>org.onap.policy.parent</groupId>
26 <artifactId>integration</artifactId>
Pamela Dragoshdfd9c0a2019-10-04 17:03:28 -040027 <version>3.1.0-SNAPSHOT</version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040028 <relativePath />
29 </parent>
30 <groupId>org.onap.policy.engine</groupId>
31 <artifactId>PolicyEngineSuite</artifactId>
Jim Hahn1c5d6cd2019-09-17 12:14:50 -040032 <version>1.6.0-SNAPSHOT</version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040033 <packaging>pom</packaging>
34 <name>policy-engine</name>
35 <description>The ONAP Policy Engine main pom</description>
36 <properties>
37 <!-- Project common build settings -->
38 <project.source.version>1.8</project.source.version>
39 <project.target.version>1.8</project.target.version>
40 <project.encoding>UTF-8</project.encoding>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <!-- Project path properties -->
43 <nexusproxy>https://nexus.onap.org</nexusproxy>
44 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
45 <releases.path>content/repositories/releases/</releases.path>
46 <snapshots.path>content/repositories/snapshots/</snapshots.path>
47 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050048
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040049 <!-- sonar/jacoco overrides -->
50 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
51 into one file shared across sub-modules -->
52 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050055
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040056 <!-- Project common dependency versions -->
Michael Mokrydde7c802019-08-29 14:20:19 -050057 <springframework.version>4.3.24.RELEASE</springframework.version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040058 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040059 <jackson.version>2.9.4</jackson.version>
60 <commons.fileupload.version>1.3.3</commons.fileupload.version>
Pamela Dragosh207e1ee2018-09-14 11:46:08 -040061 <commons.compress.version>1.18</commons.compress.version>
Pamela Dragoshe78f07a2019-08-22 09:24:01 -040062 <elasticsearch.version>6.8.2</elasticsearch.version>
Jim Hahn90fdade2019-09-19 15:30:46 -040063 <version.policy.common>1.6.0-SNAPSHOT</version.policy.common>
64 <version.policy.models>2.2.0-SNAPSHOT</version.policy.models>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040065 </properties>
66 <modules>
67 <module>PolicyEngineUtils</module>
68 <module>ONAP-XACML</module>
69 <module>ONAP-REST</module>
70 <module>PolicyEngineAPI</module>
71 <module>ONAP-PDP</module>
72 <module>ONAP-PDP-REST</module>
73 <module>ONAP-PAP-REST</module>
74 <module>LogParser</module>
75 <module>PolicyEngineClient</module>
76 <module>BRMSGateway</module>
77 <module>POLICY-SDK-APP</module>
78 <module>ONAP-SDK-APP</module>
79 <module>packages</module>
Michael Mokry79b08ac2018-10-17 09:51:06 -050080 <module>TestSuite</module>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040081 </modules>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -040082 <reporting>
83 <plugins>
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-javadoc-plugin</artifactId>
87 <version>2.10.4</version>
88 <configuration>
89 <failOnError>false</failOnError>
90 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
91 <docletArtifact>
92 <groupId>org.umlgraph</groupId>
93 <artifactId>umlgraph</artifactId>
94 <version>5.6</version>
95 </docletArtifact>
96 <additionalparam>-views</additionalparam>
97 <useStandardDocletOptions>true</useStandardDocletOptions>
98 </configuration>
99 </plugin>
100 </plugins>
101 </reporting>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400102 <dependencies>
103 <dependency>
Pamela Dragoshdbfa1572019-10-07 15:26:08 -0400104 <groupId>org.projectlombok</groupId>
105 <artifactId>lombok</artifactId>
106 <scope>provided</scope>
107 </dependency>
108 <dependency>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400109 <groupId>javax.servlet</groupId>
110 <artifactId>javax.servlet-api</artifactId>
111 </dependency>
112 <dependency>
113 <!-- org.w3c.dom dependencies -->
114 <groupId>xml-apis</groupId>
115 <artifactId>xml-apis</artifactId>
116 <version>1.3.03</version>
117 </dependency>
118 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
119 <dependency>
120 <groupId>com.fasterxml.jackson.core</groupId>
121 <artifactId>jackson-databind</artifactId>
122 <version>${jackson.version}</version>
123 </dependency>
124 <dependency>
125 <groupId>junit</groupId>
126 <artifactId>junit</artifactId>
127 <scope>test</scope>
128 </dependency>
129 <dependency>
Pamela Dragosha4467332019-10-08 10:01:23 -0400130 <groupId>org.assertj</groupId>
131 <artifactId>assertj-core</artifactId>
132 <scope>test</scope>
133 </dependency>
134 <dependency>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400135 <groupId>org.springframework</groupId>
136 <artifactId>spring-mock</artifactId>
137 <version>2.0.8</version>
138 <scope>test</scope>
139 </dependency>
140 <dependency>
141 <groupId>com.mockrunner</groupId>
142 <artifactId>mockrunner</artifactId>
143 <version>0.3.1</version>
144 <scope>test</scope>
145 </dependency>
146 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
147 <dependency>
148 <groupId>org.powermock</groupId>
149 <artifactId>powermock-api-mockito</artifactId>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400150 <scope>test</scope>
151 </dependency>
152 <dependency>
bobbymandercc021602018-03-28 15:05:33 -0400153 <groupId>org.powermock</groupId>
154 <artifactId>powermock-module-junit4</artifactId>
bobbymandercc021602018-03-28 15:05:33 -0400155 <scope>test</scope>
156 </dependency>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400157 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
158 <dependency>
159 <groupId>org.mockito</groupId>
160 <artifactId>mockito-all</artifactId>
161 <scope>test</scope>
162 </dependency>
163 <dependency>
164 <groupId>org.easymock</groupId>
165 <artifactId>easymock</artifactId>
166 <version>3.1</version>
167 <scope>test</scope>
168 </dependency>
liamfallon46b5b532019-11-01 12:09:52 +0000169 <dependency>
170 <groupId>org.glassfish.jersey.inject</groupId>
171 <artifactId>jersey-hk2</artifactId>
172 <scope>test</scope>
173 </dependency>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400174 </dependencies>
175 <build>
176 <plugins>
177 <plugin>
178 <groupId>org.jacoco</groupId>
179 <artifactId>jacoco-maven-plugin</artifactId>
180 <executions>
181 <execution>
182 <id>pre-unit-test</id>
183 <goals>
184 <goal>prepare-agent</goal>
185 </goals>
186 <configuration>
187 <destFile>${sonar.jacoco.reportPath}</destFile>
188 <append>true</append>
189 </configuration>
190 </execution>
191 <execution>
192 <id>post-unit-test</id>
193 <phase>test</phase>
194 <goals>
195 <goal>report</goal>
196 </goals>
197 <configuration>
198 <dataFile>${sonar.jacoco.reportPath}</dataFile>
199 </configuration>
200 </execution>
201 </executions>
202 </plugin>
203 <plugin>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400204 <groupId>org.apache.maven.plugins</groupId>
205 <artifactId>maven-deploy-plugin</artifactId>
206 <configuration>
207 <skip />
208 </configuration>
209 </plugin>
210 <plugin>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-surefire-plugin</artifactId>
213 </plugin>
214 <plugin>
215 <groupId>org.apache.maven.plugins</groupId>
216 <artifactId>maven-clean-plugin</artifactId>
217 <version>2.4.1</version>
218 </plugin>
219 <plugin>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-compiler-plugin</artifactId>
222 <configuration>
223 <encoding>${project.encoding}</encoding>
224 <source>${project.source.version}</source>
225 <target>${project.target.version}</target>
226 </configuration>
227 </plugin>
228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-resources-plugin</artifactId>
231 <configuration>
232 <encoding>${project.encoding}</encoding>
233 </configuration>
234 </plugin>
235 <plugin>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-war-plugin</artifactId>
238 <configuration>
239 <failOnMissingWebXml>false</failOnMissingWebXml>
240 </configuration>
241 </plugin>
242 <!-- The Jetty plugin allows us to easily test the development build by
243 running jetty:run on the command line. -->
244 <plugin>
245 <groupId>org.eclipse.jetty</groupId>
246 <artifactId>jetty-maven-plugin</artifactId>
247 <version>${jetty.plugin.version}</version>
248 <configuration>
249 <scanIntervalSeconds>2</scanIntervalSeconds>
250 </configuration>
251 </plugin>
252 <plugin>
253 <groupId>com.fortify.ps.maven.plugin</groupId>
254 <artifactId>sca-maven-plugin</artifactId>
255 <version>4.20</version>
256 </plugin>
257 <plugin>
258 <groupId>org.apache.maven.plugins</groupId>
259 <artifactId>maven-site-plugin</artifactId>
260 <dependencies>
261 <dependency>
262 <groupId>org.apache.maven.wagon</groupId>
263 <artifactId>wagon-webdav-jackrabbit</artifactId>
264 <version>2.10</version>
265 </dependency>
266 </dependencies>
267 </plugin>
268 </plugins>
Pamela Dragosh40aef4f2017-08-14 13:53:06 -0400269 <pluginManagement>
270 <plugins>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400271 <plugin>
272 <groupId>org.jacoco</groupId>
273 <artifactId>jacoco-maven-plugin</artifactId>
274 <version>${jacoco.version}</version>
275 <configuration>
276 <!-- Note: This exclusion list should match <sonar.exclusions> property
277 above -->
278 <excludes>
279 <exclude>**/gen/**</exclude>
280 <exclude>**/generated-sources/**</exclude>
281 <exclude>**/yang-gen/**</exclude>
282 <exclude>**/pax/**</exclude>
283 </excludes>
284 </configuration>
285 <executions>
286 <!-- Prepares the property pointing to the JaCoCo runtime agent which
287 is passed as VM argument when Maven the Surefire plugin is executed. -->
288 <execution>
289 <id>pre-unit-test</id>
290 <goals>
291 <goal>prepare-agent</goal>
292 </goals>
293 <configuration>
294 <destFile>${sonar.jacoco.reportPath}</destFile>
295 </configuration>
296 </execution>
297 <!-- Ensures that the code coverage report for unit tests is created
298 after unit tests have been run. -->
299 <execution>
300 <id>post-unit-test</id>
301 <phase>test</phase>
302 <goals>
303 <goal>report</goal>
304 </goals>
305 <configuration>
306 <dataFile>${sonar.jacoco.reportPath}</dataFile>
307 </configuration>
308 </execution>
309 </executions>
310 </plugin>
Pamela Dragosh40aef4f2017-08-14 13:53:06 -0400311 <plugin>
312 <groupId>org.eclipse.m2e</groupId>
313 <artifactId>lifecycle-mapping</artifactId>
314 <version>1.0.0</version>
315 <configuration>
316 <lifecycleMappingMetadata>
317 <pluginExecutions>
318 <pluginExecution>
319 <pluginExecutionFilter>
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-checkstyle-plugin</artifactId>
322 <versionRange>2.17,)</versionRange>
323 <goals>
324 <goal>check</goal>
325 </goals>
326 </pluginExecutionFilter>
327 <action>
328 <ignore />
329 </action>
330 </pluginExecution>
331 </pluginExecutions>
332 </lifecycleMappingMetadata>
333 </configuration>
334 </plugin>
335 </plugins>
336 </pluginManagement>
Pamela Dragosh2cb76b32018-08-30 07:51:13 -0400337 </build>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500338</project>