Merge "Documentation: Eclipse, vCPE, VoLTE, ModTemplate"
[policy/engine.git] / pom.xml
1 <!--
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   -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21     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">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.onap.policy.parent</groupId>
26         <artifactId>integration</artifactId>
27         <version>2.0.0-SNAPSHOT</version>
28         <relativePath />
29     </parent>
30     <groupId>org.onap.policy.engine</groupId>
31     <artifactId>PolicyEngineSuite</artifactId>
32     <version>1.3.0-SNAPSHOT</version>
33     <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>
48
49         <!-- 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>
55
56         <!-- Shared between policy/* project repositories - same version -->
57         <h2.version>1.4.186</h2.version>
58
59         <!-- Shared between policy/* project repositories - different version -->
60
61         <!-- Project common dependency versions -->
62         <springframework.version>4.3.18.RELEASE</springframework.version>
63         <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
64         <httpclient.version>4.5.5</httpclient.version>
65         <jackson.version>2.9.4</jackson.version>
66         <commons.fileupload.version>1.3.3</commons.fileupload.version>
67         <commons.compress.version>1.18</commons.compress.version>
68         <elasticsearch.version>6.3.0</elasticsearch.version>
69     </properties>
70     <modules>
71         <module>PolicyEngineUtils</module>
72         <module>ONAP-XACML</module>
73         <module>ONAP-REST</module>
74         <module>PolicyEngineAPI</module>
75         <module>ONAP-PDP</module>
76         <module>ONAP-PDP-REST</module>
77         <module>ONAP-PAP-REST</module>
78         <module>LogParser</module>
79         <module>PolicyEngineClient</module>
80         <module>BRMSGateway</module>
81         <module>POLICY-SDK-APP</module>
82         <module>ONAP-SDK-APP</module>
83         <module>packages</module>
84         <module>TestSuite</module>
85     </modules>
86     <distributionManagement>
87         <repository>
88             <id>ecomp-releases</id>
89             <name>ONAP Release Repository</name>
90             <url>${nexusproxy}/${releases.path}</url>
91         </repository>
92         <snapshotRepository>
93             <id>ecomp-snapshots</id>
94             <name>ONAP Snapshot Repository</name>
95             <url>${nexusproxy}/${snapshots.path}</url>
96         </snapshotRepository>
97         <site>
98             <id>ecomp-site</id>
99             <url>dav:${nexusproxy}${sitePath}</url>
100         </site>
101     </distributionManagement>
102     <reporting>
103         <plugins>
104             <plugin>
105                 <groupId>org.apache.maven.plugins</groupId>
106                 <artifactId>maven-javadoc-plugin</artifactId>
107                 <version>2.10.4</version>
108                 <configuration>
109                     <failOnError>false</failOnError>
110                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
111                     <docletArtifact>
112                         <groupId>org.umlgraph</groupId>
113                         <artifactId>umlgraph</artifactId>
114                         <version>5.6</version>
115                     </docletArtifact>
116                     <additionalparam>-views</additionalparam>
117                     <useStandardDocletOptions>true</useStandardDocletOptions>
118                 </configuration>
119             </plugin>
120         </plugins>
121     </reporting>
122     <dependencyManagement>
123         <dependencies>
124             <dependency>
125                 <groupId>com.h2database</groupId>
126                 <artifactId>h2</artifactId>
127                 <version>${h2.version}</version>
128                 <scope>test</scope>
129             </dependency>
130         </dependencies>
131     </dependencyManagement>
132     <dependencies>
133         <dependency>
134             <groupId>javax.servlet</groupId>
135             <artifactId>javax.servlet-api</artifactId>
136         </dependency>
137         <dependency>
138             <!-- org.w3c.dom dependencies -->
139             <groupId>xml-apis</groupId>
140             <artifactId>xml-apis</artifactId>
141             <version>1.3.03</version>
142         </dependency>
143         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
144         <dependency>
145             <groupId>com.fasterxml.jackson.core</groupId>
146             <artifactId>jackson-databind</artifactId>
147             <version>${jackson.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>junit</groupId>
151             <artifactId>junit</artifactId>
152             <scope>test</scope>
153         </dependency>
154         <dependency>
155             <groupId>org.springframework</groupId>
156             <artifactId>spring-mock</artifactId>
157             <version>2.0.8</version>
158             <scope>test</scope>
159         </dependency>
160         <dependency>
161             <groupId>com.mockrunner</groupId>
162             <artifactId>mockrunner</artifactId>
163             <version>0.3.1</version>
164             <scope>test</scope>
165         </dependency>
166         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
167         <dependency>
168             <groupId>org.powermock</groupId>
169             <artifactId>powermock-api-mockito</artifactId>
170             <version>1.7.3</version>
171             <scope>test</scope>
172         </dependency>
173         <dependency>
174             <groupId>org.powermock</groupId>
175             <artifactId>powermock-module-junit4</artifactId>
176             <version>1.7.3</version>
177             <scope>test</scope>
178         </dependency>
179         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
180         <dependency>
181             <groupId>org.mockito</groupId>
182             <artifactId>mockito-all</artifactId>
183             <scope>test</scope>
184         </dependency>
185         <dependency>
186             <groupId>org.easymock</groupId>
187             <artifactId>easymock</artifactId>
188             <version>3.1</version>
189             <scope>test</scope>
190         </dependency>
191     </dependencies>
192     <build>
193         <plugins>
194             <plugin>
195                 <groupId>org.jacoco</groupId>
196                 <artifactId>jacoco-maven-plugin</artifactId>
197                 <executions>
198                     <execution>
199                         <id>pre-unit-test</id>
200                         <goals>
201                             <goal>prepare-agent</goal>
202                         </goals>
203                         <configuration>
204                             <destFile>${sonar.jacoco.reportPath}</destFile>
205                             <append>true</append>
206                         </configuration>
207                     </execution>
208                     <execution>
209                         <id>post-unit-test</id>
210                         <phase>test</phase>
211                         <goals>
212                             <goal>report</goal>
213                         </goals>
214                         <configuration>
215                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
216                         </configuration>
217                     </execution>
218                 </executions>
219             </plugin>
220             <plugin>
221                 <groupId>org.sonatype.plugins</groupId>
222                 <artifactId>nexus-staging-maven-plugin</artifactId>
223                 <extensions>true</extensions>
224                 <configuration>
225                     <nexusUrl>${nexusproxy}</nexusUrl>
226                     <stagingProfileId>176c31dfe190a</stagingProfileId>
227                     <serverId>ecomp-staging</serverId>
228                 </configuration>
229             </plugin>
230             <plugin>
231                 <groupId>org.apache.maven.plugins</groupId>
232                 <artifactId>maven-deploy-plugin</artifactId>
233                 <configuration>
234                     <skip />
235                 </configuration>
236             </plugin>
237             <plugin>
238                 <groupId>org.apache.maven.plugins</groupId>
239                 <artifactId>maven-surefire-plugin</artifactId>
240             </plugin>
241             <plugin>
242                 <groupId>org.apache.maven.plugins</groupId>
243                 <artifactId>maven-clean-plugin</artifactId>
244                 <version>2.4.1</version>
245             </plugin>
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-compiler-plugin</artifactId>
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                 <configuration>
259                     <encoding>${project.encoding}</encoding>
260                 </configuration>
261             </plugin>
262             <plugin>
263                 <groupId>org.apache.maven.plugins</groupId>
264                 <artifactId>maven-war-plugin</artifactId>
265                 <configuration>
266                     <failOnMissingWebXml>false</failOnMissingWebXml>
267                 </configuration>
268             </plugin>
269             <!-- The Jetty plugin allows us to easily test the development build by
270                 running jetty:run on the command line. -->
271             <plugin>
272                 <groupId>org.eclipse.jetty</groupId>
273                 <artifactId>jetty-maven-plugin</artifactId>
274                 <version>${jetty.plugin.version}</version>
275                 <configuration>
276                     <scanIntervalSeconds>2</scanIntervalSeconds>
277                 </configuration>
278             </plugin>
279             <plugin>
280                 <groupId>com.fortify.ps.maven.plugin</groupId>
281                 <artifactId>sca-maven-plugin</artifactId>
282                 <version>4.20</version>
283             </plugin>
284             <plugin>
285                 <groupId>org.apache.maven.plugins</groupId>
286                 <artifactId>maven-site-plugin</artifactId>
287                 <dependencies>
288                     <dependency>
289                         <groupId>org.apache.maven.wagon</groupId>
290                         <artifactId>wagon-webdav-jackrabbit</artifactId>
291                         <version>2.10</version>
292                     </dependency>
293                 </dependencies>
294             </plugin>
295         </plugins>
296         <pluginManagement>
297             <plugins>
298                 <plugin>
299                     <groupId>org.jacoco</groupId>
300                     <artifactId>jacoco-maven-plugin</artifactId>
301                     <version>${jacoco.version}</version>
302                     <configuration>
303                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
304                              above -->
305                         <excludes>
306                             <exclude>**/gen/**</exclude>
307                             <exclude>**/generated-sources/**</exclude>
308                             <exclude>**/yang-gen/**</exclude>
309                             <exclude>**/pax/**</exclude>
310                         </excludes>
311                     </configuration>
312                     <executions>
313                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
314                              is passed as VM argument when Maven the Surefire plugin is executed. -->
315                         <execution>
316                             <id>pre-unit-test</id>
317                             <goals>
318                                 <goal>prepare-agent</goal>
319                             </goals>
320                             <configuration>
321                                 <destFile>${sonar.jacoco.reportPath}</destFile>
322                             </configuration>
323                         </execution>
324                         <!-- Ensures that the code coverage report for unit tests is created 
325                             after unit tests have been run. -->
326                         <execution>
327                             <id>post-unit-test</id>
328                             <phase>test</phase>
329                             <goals>
330                                 <goal>report</goal>
331                             </goals>
332                             <configuration>
333                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
334                             </configuration>
335                         </execution>
336                     </executions>
337                 </plugin>
338                 <plugin>
339                     <groupId>org.eclipse.m2e</groupId>
340                     <artifactId>lifecycle-mapping</artifactId>
341                     <version>1.0.0</version>
342                     <configuration>
343                         <lifecycleMappingMetadata>
344                             <pluginExecutions>
345                                 <pluginExecution>
346                                     <pluginExecutionFilter>
347                                         <groupId>org.apache.maven.plugins</groupId>
348                                         <artifactId>maven-checkstyle-plugin</artifactId>
349                                         <versionRange>2.17,)</versionRange>
350                                         <goals>
351                                             <goal>check</goal>
352                                         </goals>
353                                     </pluginExecutionFilter>
354                                     <action>
355                                         <ignore />
356                                     </action>
357                                 </pluginExecution>
358                             </pluginExecutions>
359                         </lifecycleMappingMetadata>
360                     </configuration>
361                 </plugin>
362             </plugins>
363         </pluginManagement>
364     </build>
365 </project>