blob: 4fbaf627fde5478f103d5479ad53b69a2aa74ed9 [file] [log] [blame]
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -05001<!--
2 ============LICENSE_START=======================================================
3 ONAP Policy Engine
4 ================================================================================
5 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
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 ============LICENSE_END=========================================================
19 -->
Pamela Dragosh91d04c62017-02-14 19:41:00 -050020<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22 <modelVersion>4.0.0</modelVersion>
Guo Ruijinge9382842017-08-03 11:44:10 +000023 <parent>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
liamfallon45fe54d2018-03-14 22:25:08 +000026 <version>1.1.0</version>
Guo Ruijinge9382842017-08-03 11:44:10 +000027 <relativePath/>
28 </parent>
Guo Ruijing073cc182017-07-31 08:47:35 +000029 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050030 <artifactId>PolicyEngineSuite</artifactId>
liamfallona7f30f32018-05-21 16:49:26 +010031 <version>1.2.3-SNAPSHOT</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050032 <packaging>pom</packaging>
Jessica Wagantall9440ed72017-09-08 14:55:14 -070033 <name>policy-engine</name>
Guo Ruijing073cc182017-07-31 08:47:35 +000034 <description>The ONAP Policy Engine main pom</description>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050035 <properties>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050036 <!-- Project common build settings -->
Pamela Dragosh91d04c62017-02-14 19:41:00 -050037 <project.source.version>1.8</project.source.version>
38 <project.target.version>1.8</project.target.version>
39 <project.encoding>UTF-8</project.encoding>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050040 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <!-- Project path properties -->
Pamela Dragoshae8d7752017-03-30 09:35:18 -040042 <nexusproxy>https://nexus.onap.org</nexusproxy>
Pamela Dragoshe1dcfc52017-04-06 11:06:34 -040043 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Anaël Closson98fe6d82017-04-12 11:10:10 +020044 <releases.path>content/repositories/releases/</releases.path>
45 <snapshots.path>content/repositories/snapshots/</snapshots.path>
46 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050047
48 <!-- sonar/jacoco overrides -->
49 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
50 into one file shared across sub-modules -->
51 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
52 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
53 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
54
bobbymandercc021602018-03-28 15:05:33 -040055 <!-- Shared between policy/* project repositories - same version -->
Pamela Dragoshb2c21862018-02-20 13:36:48 -050056 <h2.version>1.4.186</h2.version>
57
bobbymandercc021602018-03-28 15:05:33 -040058 <!-- Shared between policy/* project repositories - different version -->
Pamela Dragoshb2c21862018-02-20 13:36:48 -050059
Pamela Dragosheb6547d2018-02-16 11:18:09 -050060 <!-- Project common dependency versions -->
61 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
Pamela Dragoshfa1e3fb2018-03-14 08:19:35 -040062 <dmaap.version>1.1.3</dmaap.version>
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -050063 <httpclient.version>4.5.5</httpclient.version>
bobbymander95ba8a82018-03-30 09:31:32 -040064 <jackson.version>2.9.4</jackson.version>
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -050065 <commons.fileupload.version>1.3.3</commons.fileupload.version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050066 </properties>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050067 <modules>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040068 <module>PolicyEngineUtils</module>
Guo Ruijing073cc182017-07-31 08:47:35 +000069 <module>ONAP-XACML</module>
70 <module>ONAP-REST</module>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040071 <module>PolicyEngineAPI</module>
Guo Ruijing073cc182017-07-31 08:47:35 +000072 <module>ONAP-PDP</module>
73 <module>ONAP-PDP-REST</module>
74 <module>ONAP-PAP-REST</module>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050075 <module>LogParser</module>
76 <module>PolicyEngineClient</module>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050077 <module>BRMSGateway</module>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040078 <module>POLICY-SDK-APP</module>
Guo Ruijing073cc182017-07-31 08:47:35 +000079 <module>ONAP-SDK-APP</module>
Pamela Dragoshc2938542017-02-20 16:30:10 -050080 <module>packages</module>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050081 </modules>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -050082 <distributionManagement>
83 <repository>
84 <id>ecomp-releases</id>
Guo Ruijing073cc182017-07-31 08:47:35 +000085 <name>ONAP Release Repository</name>
Anaël Closson98fe6d82017-04-12 11:10:10 +020086 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -050087 </repository>
88 <snapshotRepository>
89 <id>ecomp-snapshots</id>
Guo Ruijing073cc182017-07-31 08:47:35 +000090 <name>ONAP Snapshot Repository</name>
Anaël Closson98fe6d82017-04-12 11:10:10 +020091 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -050092 </snapshotRepository>
Pamela Dragosh0cd54352017-04-03 10:51:20 -040093 <site>
94 <id>ecomp-site</id>
95 <url>dav:${nexusproxy}${sitePath}</url>
96 </site>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -050097 </distributionManagement>
Pamela Dragosh0cd54352017-04-03 10:51:20 -040098 <reporting>
99 <plugins>
100 <plugin>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-javadoc-plugin</artifactId>
103 <version>2.10.4</version>
104 <configuration>
105 <failOnError>false</failOnError>
106 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
107 <docletArtifact>
108 <groupId>org.umlgraph</groupId>
109 <artifactId>umlgraph</artifactId>
110 <version>5.6</version>
111 </docletArtifact>
112 <additionalparam>-views</additionalparam>
113 <useStandardDocletOptions>true</useStandardDocletOptions>
114 </configuration>
115 </plugin>
116 </plugins>
117 </reporting>
Pamela Dragoshb2c21862018-02-20 13:36:48 -0500118 <dependencyManagement>
119 <dependencies>
120 <dependency>
121 <groupId>com.h2database</groupId>
122 <artifactId>h2</artifactId>
123 <version>${h2.version}</version>
124 <scope>test</scope>
125 </dependency>
126 </dependencies>
127 </dependencyManagement>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500128 <dependencies>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500129 <dependency>
130 <groupId>javax.servlet</groupId>
131 <artifactId>javax.servlet-api</artifactId>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -0400132 <version>3.1.0</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500133 </dependency>
134 <dependency>
135 <!-- org.w3c.dom dependencies -->
136 <groupId>xml-apis</groupId>
137 <artifactId>xml-apis</artifactId>
138 <version>1.3.03</version>
139 </dependency>
bobbymander95ba8a82018-03-30 09:31:32 -0400140 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
141 <dependency>
142 <groupId>com.fasterxml.jackson.core</groupId>
143 <artifactId>jackson-databind</artifactId>
144 <version>${jackson.version}</version>
145 </dependency>
bobbymandercc021602018-03-28 15:05:33 -0400146 <dependency>
147 <groupId>junit</groupId>
148 <artifactId>junit</artifactId>
149 <version>4.12</version>
150 <scope>test</scope>
151 </dependency>
152 <dependency>
153 <groupId>org.springframework</groupId>
154 <artifactId>spring-mock</artifactId>
155 <version>2.0.8</version>
156 <scope>test</scope>
157 </dependency>
158 <dependency>
159 <groupId>com.mockrunner</groupId>
160 <artifactId>mockrunner</artifactId>
161 <version>0.3.1</version>
162 <scope>test</scope>
163 </dependency>
164 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
165 <dependency>
166 <groupId>org.powermock</groupId>
167 <artifactId>powermock-api-mockito</artifactId>
168 <version>1.7.3</version>
169 <scope>test</scope>
170 </dependency>
171 <dependency>
172 <groupId>org.powermock</groupId>
173 <artifactId>powermock-module-junit4</artifactId>
174 <version>1.7.3</version>
175 <scope>test</scope>
176 </dependency>
177 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
178 <dependency>
179 <groupId>org.mockito</groupId>
180 <artifactId>mockito-all</artifactId>
181 <version>1.10.19</version>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.easymock</groupId>
186 <artifactId>easymock</artifactId>
187 <version>3.1</version>
188 <scope>test</scope>
189 </dependency>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500190 </dependencies>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500191 <build>
192 <plugins>
193 <plugin>
Pamela Dragosheb6547d2018-02-16 11:18:09 -0500194 <groupId>org.jacoco</groupId>
195 <artifactId>jacoco-maven-plugin</artifactId>
196 <executions>
197 <execution>
198 <id>pre-unit-test</id>
199 <goals>
200 <goal>prepare-agent</goal>
201 </goals>
202 <configuration>
203 <destFile>${sonar.jacoco.reportPath}</destFile>
204 <append>true</append>
205 </configuration>
206 </execution>
207 <execution>
208 <id>post-unit-test</id>
209 <phase>test</phase>
210 <goals>
211 <goal>report</goal>
212 </goals>
213 <configuration>
214 <dataFile>${sonar.jacoco.reportPath}</dataFile>
215 </configuration>
216 </execution>
217 </executions>
218 </plugin>
219 <plugin>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500220 <groupId>org.sonatype.plugins</groupId>
221 <artifactId>nexus-staging-maven-plugin</artifactId>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500222 <extensions>true</extensions>
223 <configuration>
224 <nexusUrl>${nexusproxy}</nexusUrl>
225 <stagingProfileId>176c31dfe190a</stagingProfileId>
Pamela Dragosh5497a612017-07-31 21:30:18 -0400226 <serverId>ecomp-staging</serverId>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500227 </configuration>
228 </plugin>
229 <plugin>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-deploy-plugin</artifactId>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500232 <configuration>
233 <skip />
234 </configuration>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500235 </plugin>
236 <plugin>
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-surefire-plugin</artifactId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500239 </plugin>
240 <plugin>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-clean-plugin</artifactId>
243 <version>2.4.1</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500244 </plugin>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500245 <plugin>
246 <groupId>org.apache.maven.plugins</groupId>
247 <artifactId>maven-compiler-plugin</artifactId>
248 <version>3.0</version>
249 <configuration>
250 <encoding>${project.encoding}</encoding>
251 <source>${project.source.version}</source>
252 <target>${project.target.version}</target>
253 </configuration>
254 </plugin>
255 <plugin>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-resources-plugin</artifactId>
258 <version>2.6</version>
259 <configuration>
260 <encoding>${project.encoding}</encoding>
261 </configuration>
262 </plugin>
263 <plugin>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-war-plugin</artifactId>
266 <version>2.3</version>
267 <configuration>
268 <failOnMissingWebXml>false</failOnMissingWebXml>
269 </configuration>
270 </plugin>
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -0700271 <!-- The Jetty plugin allows us to easily test the development build by
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500272 running jetty:run on the command line. -->
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500273 <plugin>
274 <groupId>org.eclipse.jetty</groupId>
275 <artifactId>jetty-maven-plugin</artifactId>
276 <version>${jetty.plugin.version}</version>
277 <configuration>
278 <scanIntervalSeconds>2</scanIntervalSeconds>
279 </configuration>
280 </plugin>
281 <plugin>
282 <groupId>com.fortify.ps.maven.plugin</groupId>
283 <artifactId>sca-maven-plugin</artifactId>
284 <version>4.20</version>
285 </plugin>
286 <plugin>
Pamela Dragosh0cd54352017-04-03 10:51:20 -0400287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-site-plugin</artifactId>
Pamela Dragosh0cd54352017-04-03 10:51:20 -0400289 <dependencies>
290 <dependency>
291 <groupId>org.apache.maven.wagon</groupId>
292 <artifactId>wagon-webdav-jackrabbit</artifactId>
293 <version>2.10</version>
294 </dependency>
295 </dependencies>
296 </plugin>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500297 </plugins>
Pamela Dragosh40aef4f2017-08-14 13:53:06 -0400298 <pluginManagement>
299 <plugins>
Pamela Dragosheb6547d2018-02-16 11:18:09 -0500300 <plugin>
301 <groupId>org.jacoco</groupId>
302 <artifactId>jacoco-maven-plugin</artifactId>
303 <version>${jacoco.version}</version>
304 <configuration>
305 <!-- Note: This exclusion list should match <sonar.exclusions> property
306 above -->
307 <excludes>
308 <exclude>**/gen/**</exclude>
309 <exclude>**/generated-sources/**</exclude>
310 <exclude>**/yang-gen/**</exclude>
311 <exclude>**/pax/**</exclude>
312 </excludes>
313 </configuration>
314 <executions>
315 <!-- Prepares the property pointing to the JaCoCo runtime agent which
316 is passed as VM argument when Maven the Surefire plugin is executed. -->
317 <execution>
318 <id>pre-unit-test</id>
319 <goals>
320 <goal>prepare-agent</goal>
321 </goals>
322 <configuration>
323 <destFile>${sonar.jacoco.reportPath}</destFile>
324 </configuration>
325 </execution>
326 <!-- Ensures that the code coverage report for unit tests is created
327 after unit tests have been run. -->
328 <execution>
329 <id>post-unit-test</id>
330 <phase>test</phase>
331 <goals>
332 <goal>report</goal>
333 </goals>
334 <configuration>
335 <dataFile>${sonar.jacoco.reportPath}</dataFile>
336 </configuration>
337 </execution>
338 </executions>
339 </plugin>
Pamela Dragosh40aef4f2017-08-14 13:53:06 -0400340 <plugin>
341 <groupId>org.eclipse.m2e</groupId>
342 <artifactId>lifecycle-mapping</artifactId>
343 <version>1.0.0</version>
344 <configuration>
345 <lifecycleMappingMetadata>
346 <pluginExecutions>
347 <pluginExecution>
348 <pluginExecutionFilter>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-checkstyle-plugin</artifactId>
351 <versionRange>2.17,)</versionRange>
352 <goals>
353 <goal>check</goal>
354 </goals>
355 </pluginExecutionFilter>
356 <action>
357 <ignore />
358 </action>
359 </pluginExecution>
360 </pluginExecutions>
361 </lifecycleMappingMetadata>
362 </configuration>
363 </plugin>
364 </plugins>
365 </pluginManagement>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500366 </build>
367</project>