blob: b370e2b79c70d5bf65800ac6e3a0a42ca40c98a1 [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>
23
Guo Ruijinge9382842017-08-03 11:44:10 +000024 <parent>
25 <groupId>org.onap.oparent</groupId>
26 <artifactId>oparent</artifactId>
Pamela Dragosh871db382017-09-21 11:06:17 -040027 <version>0.1.1</version>
Guo Ruijinge9382842017-08-03 11:44:10 +000028 <relativePath/>
29 </parent>
30
Guo Ruijing073cc182017-07-31 08:47:35 +000031 <groupId>org.onap.policy.engine</groupId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050032 <artifactId>PolicyEngineSuite</artifactId>
Jessica Wagantalldb597fe2017-11-18 18:50:29 -080033 <version>1.2.0-SNAPSHOT</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050034 <packaging>pom</packaging>
Jessica Wagantall9440ed72017-09-08 14:55:14 -070035 <name>policy-engine</name>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050036
Guo Ruijing073cc182017-07-31 08:47:35 +000037 <description>The ONAP Policy Engine main pom</description>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050038
39 <properties>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050040 <!-- Project common build settings -->
Pamela Dragosh91d04c62017-02-14 19:41:00 -050041 <project.source.version>1.8</project.source.version>
42 <project.target.version>1.8</project.target.version>
43 <project.encoding>UTF-8</project.encoding>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050044 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45 <!-- Project path properties -->
Pamela Dragoshae8d7752017-03-30 09:35:18 -040046 <nexusproxy>https://nexus.onap.org</nexusproxy>
Pamela Dragoshe1dcfc52017-04-06 11:06:34 -040047 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
Anaël Closson98fe6d82017-04-12 11:10:10 +020048 <releases.path>content/repositories/releases/</releases.path>
49 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50 <staging.path>content/repositories/staging/</staging.path>
Pamela Dragosheb6547d2018-02-16 11:18:09 -050051
52 <!-- sonar/jacoco overrides -->
53 <!-- Overriding oparent default sonar/jacoco settings Combine all our reports
54 into one file shared across sub-modules -->
55 <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
56 <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
57 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
58
Pamela Dragoshb2c21862018-02-20 13:36:48 -050059 <!--
60 Shared between policy/* project repositories - same version
61 -->
62 <h2.version>1.4.186</h2.version>
63
64 <!--
65 Shared between policy/* project repositories - different version
66 -->
67
Pamela Dragosheb6547d2018-02-16 11:18:09 -050068 <!-- Project common dependency versions -->
69 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
Pamela Dragoshfa1e3fb2018-03-14 08:19:35 -040070 <dmaap.version>1.1.3</dmaap.version>
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -050071 <httpclient.version>4.5.5</httpclient.version>
Pamela Dragosh82640b22018-02-08 11:09:31 -050072 <jackson.version>2.9.4</jackson.version>
Pamela Dragoshbcdb1e12018-02-07 15:41:30 -050073 <commons.fileupload.version>1.3.3</commons.fileupload.version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050074 </properties>
75
76
77 <modules>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040078 <module>PolicyEngineUtils</module>
Guo Ruijing073cc182017-07-31 08:47:35 +000079 <module>ONAP-XACML</module>
80 <module>ONAP-REST</module>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040081 <module>PolicyEngineAPI</module>
Guo Ruijing073cc182017-07-31 08:47:35 +000082 <module>ONAP-PDP</module>
83 <module>ONAP-PDP-REST</module>
84 <module>ONAP-PAP-REST</module>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050085 <module>LogParser</module>
86 <module>PolicyEngineClient</module>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050087 <module>BRMSGateway</module>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040088 <module>POLICY-SDK-APP</module>
Guo Ruijing073cc182017-07-31 08:47:35 +000089 <module>ONAP-SDK-APP</module>
Pamela Dragoshc2938542017-02-20 16:30:10 -050090 <module>packages</module>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050091 </modules>
92
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -050093 <distributionManagement>
94 <repository>
95 <id>ecomp-releases</id>
Guo Ruijing073cc182017-07-31 08:47:35 +000096 <name>ONAP Release Repository</name>
Anaël Closson98fe6d82017-04-12 11:10:10 +020097 <url>${nexusproxy}/${releases.path}</url>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -050098 </repository>
99 <snapshotRepository>
100 <id>ecomp-snapshots</id>
Guo Ruijing073cc182017-07-31 08:47:35 +0000101 <name>ONAP Snapshot Repository</name>
Anaël Closson98fe6d82017-04-12 11:10:10 +0200102 <url>${nexusproxy}/${snapshots.path}</url>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -0500103 </snapshotRepository>
Pamela Dragosh0cd54352017-04-03 10:51:20 -0400104 <site>
105 <id>ecomp-site</id>
106 <url>dav:${nexusproxy}${sitePath}</url>
107 </site>
Pamela Dragosh2a66a1b2017-02-15 15:33:14 -0500108 </distributionManagement>
109
Pamela Dragosh0cd54352017-04-03 10:51:20 -0400110 <reporting>
111 <plugins>
112 <plugin>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-javadoc-plugin</artifactId>
115 <version>2.10.4</version>
116 <configuration>
117 <failOnError>false</failOnError>
118 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
119 <docletArtifact>
120 <groupId>org.umlgraph</groupId>
121 <artifactId>umlgraph</artifactId>
122 <version>5.6</version>
123 </docletArtifact>
124 <additionalparam>-views</additionalparam>
125 <useStandardDocletOptions>true</useStandardDocletOptions>
126 </configuration>
127 </plugin>
128 </plugins>
129 </reporting>
130
Pamela Dragoshb2c21862018-02-20 13:36:48 -0500131 <dependencyManagement>
132 <dependencies>
133 <dependency>
134 <groupId>com.h2database</groupId>
135 <artifactId>h2</artifactId>
136 <version>${h2.version}</version>
137 <scope>test</scope>
138 </dependency>
139 </dependencies>
140 </dependencyManagement>
141
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500142 <dependencies>
143
144 <dependency>
145 <groupId>javax.servlet</groupId>
146 <artifactId>javax.servlet-api</artifactId>
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -0400147 <version>3.1.0</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500148 </dependency>
149 <dependency>
150 <!-- org.w3c.dom dependencies -->
151 <groupId>xml-apis</groupId>
152 <artifactId>xml-apis</artifactId>
153 <version>1.3.03</version>
154 </dependency>
155 </dependencies>
156
157 <build>
158 <plugins>
159 <plugin>
Pamela Dragosheb6547d2018-02-16 11:18:09 -0500160 <groupId>org.jacoco</groupId>
161 <artifactId>jacoco-maven-plugin</artifactId>
162 <executions>
163 <execution>
164 <id>pre-unit-test</id>
165 <goals>
166 <goal>prepare-agent</goal>
167 </goals>
168 <configuration>
169 <destFile>${sonar.jacoco.reportPath}</destFile>
170 <append>true</append>
171 </configuration>
172 </execution>
173 <execution>
174 <id>post-unit-test</id>
175 <phase>test</phase>
176 <goals>
177 <goal>report</goal>
178 </goals>
179 <configuration>
180 <dataFile>${sonar.jacoco.reportPath}</dataFile>
181 </configuration>
182 </execution>
183 </executions>
184 </plugin>
185 <plugin>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500186 <groupId>org.sonatype.plugins</groupId>
187 <artifactId>nexus-staging-maven-plugin</artifactId>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500188 <extensions>true</extensions>
189 <configuration>
190 <nexusUrl>${nexusproxy}</nexusUrl>
191 <stagingProfileId>176c31dfe190a</stagingProfileId>
Pamela Dragosh5497a612017-07-31 21:30:18 -0400192 <serverId>ecomp-staging</serverId>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500193 </configuration>
194 </plugin>
195 <plugin>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500196 <groupId>org.apache.maven.plugins</groupId>
197 <artifactId>maven-deploy-plugin</artifactId>
Pamela Dragosh6a657052017-02-17 15:41:18 -0500198 <configuration>
199 <skip />
200 </configuration>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500201 </plugin>
202 <plugin>
203 <groupId>org.apache.maven.plugins</groupId>
204 <artifactId>maven-surefire-plugin</artifactId>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500205 </plugin>
206 <plugin>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-clean-plugin</artifactId>
209 <version>2.4.1</version>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500210 </plugin>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500211 <plugin>
212 <groupId>org.apache.maven.plugins</groupId>
213 <artifactId>maven-compiler-plugin</artifactId>
214 <version>3.0</version>
215 <configuration>
216 <encoding>${project.encoding}</encoding>
217 <source>${project.source.version}</source>
218 <target>${project.target.version}</target>
219 </configuration>
220 </plugin>
221 <plugin>
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-resources-plugin</artifactId>
224 <version>2.6</version>
225 <configuration>
226 <encoding>${project.encoding}</encoding>
227 </configuration>
228 </plugin>
229 <plugin>
230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-war-plugin</artifactId>
232 <version>2.3</version>
233 <configuration>
234 <failOnMissingWebXml>false</failOnMissingWebXml>
235 </configuration>
236 </plugin>
ITSERVICES\cr056n29596e42017-08-14 09:46:27 -0700237 <!-- The Jetty plugin allows us to easily test the development build by
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500238 running jetty:run on the command line. -->
239
240 <plugin>
241 <groupId>org.eclipse.jetty</groupId>
242 <artifactId>jetty-maven-plugin</artifactId>
243 <version>${jetty.plugin.version}</version>
244 <configuration>
245 <scanIntervalSeconds>2</scanIntervalSeconds>
246 </configuration>
247 </plugin>
248 <plugin>
249 <groupId>com.fortify.ps.maven.plugin</groupId>
250 <artifactId>sca-maven-plugin</artifactId>
251 <version>4.20</version>
252 </plugin>
253 <plugin>
Pamela Dragosh0cd54352017-04-03 10:51:20 -0400254 <groupId>org.apache.maven.plugins</groupId>
255 <artifactId>maven-site-plugin</artifactId>
Pamela Dragosh0cd54352017-04-03 10:51:20 -0400256 <dependencies>
257 <dependency>
258 <groupId>org.apache.maven.wagon</groupId>
259 <artifactId>wagon-webdav-jackrabbit</artifactId>
260 <version>2.10</version>
261 </dependency>
262 </dependencies>
263 </plugin>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500264 </plugins>
Pamela Dragosh40aef4f2017-08-14 13:53:06 -0400265 <pluginManagement>
266 <plugins>
Pamela Dragosheb6547d2018-02-16 11:18:09 -0500267 <plugin>
268 <groupId>org.jacoco</groupId>
269 <artifactId>jacoco-maven-plugin</artifactId>
270 <version>${jacoco.version}</version>
271 <configuration>
272 <!-- Note: This exclusion list should match <sonar.exclusions> property
273 above -->
274 <excludes>
275 <exclude>**/gen/**</exclude>
276 <exclude>**/generated-sources/**</exclude>
277 <exclude>**/yang-gen/**</exclude>
278 <exclude>**/pax/**</exclude>
279 </excludes>
280 </configuration>
281 <executions>
282 <!-- Prepares the property pointing to the JaCoCo runtime agent which
283 is passed as VM argument when Maven the Surefire plugin is executed. -->
284 <execution>
285 <id>pre-unit-test</id>
286 <goals>
287 <goal>prepare-agent</goal>
288 </goals>
289 <configuration>
290 <destFile>${sonar.jacoco.reportPath}</destFile>
291 </configuration>
292 </execution>
293 <!-- Ensures that the code coverage report for unit tests is created
294 after unit tests have been run. -->
295 <execution>
296 <id>post-unit-test</id>
297 <phase>test</phase>
298 <goals>
299 <goal>report</goal>
300 </goals>
301 <configuration>
302 <dataFile>${sonar.jacoco.reportPath}</dataFile>
303 </configuration>
304 </execution>
305 </executions>
306 </plugin>
Pamela Dragosh40aef4f2017-08-14 13:53:06 -0400307 <plugin>
308 <groupId>org.eclipse.m2e</groupId>
309 <artifactId>lifecycle-mapping</artifactId>
310 <version>1.0.0</version>
311 <configuration>
312 <lifecycleMappingMetadata>
313 <pluginExecutions>
314 <pluginExecution>
315 <pluginExecutionFilter>
316 <groupId>org.apache.maven.plugins</groupId>
317 <artifactId>maven-checkstyle-plugin</artifactId>
318 <versionRange>2.17,)</versionRange>
319 <goals>
320 <goal>check</goal>
321 </goals>
322 </pluginExecutionFilter>
323 <action>
324 <ignore />
325 </action>
326 </pluginExecution>
327 </pluginExecutions>
328 </lifecycleMappingMetadata>
329 </configuration>
330 </plugin>
331 </plugins>
332 </pluginManagement>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500333 </build>
334</project>