Merge "Upgrade commons-compress v1.18"
[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     </properties>
69     <modules>
70         <module>PolicyEngineUtils</module>
71         <module>ONAP-XACML</module>
72         <module>ONAP-REST</module>
73         <module>PolicyEngineAPI</module>
74         <module>ONAP-PDP</module>
75         <module>ONAP-PDP-REST</module>
76         <module>ONAP-PAP-REST</module>
77         <module>LogParser</module>
78         <module>PolicyEngineClient</module>
79         <module>BRMSGateway</module>
80         <module>POLICY-SDK-APP</module>
81         <module>ONAP-SDK-APP</module>
82         <module>packages</module>
83     </modules>
84     <distributionManagement>
85         <repository>
86             <id>ecomp-releases</id>
87             <name>ONAP Release Repository</name>
88             <url>${nexusproxy}/${releases.path}</url>
89         </repository>
90         <snapshotRepository>
91             <id>ecomp-snapshots</id>
92             <name>ONAP Snapshot Repository</name>
93             <url>${nexusproxy}/${snapshots.path}</url>
94         </snapshotRepository>
95         <site>
96             <id>ecomp-site</id>
97             <url>dav:${nexusproxy}${sitePath}</url>
98         </site>
99     </distributionManagement>
100     <reporting>
101         <plugins>
102             <plugin>
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-javadoc-plugin</artifactId>
105                 <version>2.10.4</version>
106                 <configuration>
107                     <failOnError>false</failOnError>
108                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
109                     <docletArtifact>
110                         <groupId>org.umlgraph</groupId>
111                         <artifactId>umlgraph</artifactId>
112                         <version>5.6</version>
113                     </docletArtifact>
114                     <additionalparam>-views</additionalparam>
115                     <useStandardDocletOptions>true</useStandardDocletOptions>
116                 </configuration>
117             </plugin>
118         </plugins>
119     </reporting>
120     <dependencyManagement>
121         <dependencies>
122             <dependency>
123                 <groupId>com.h2database</groupId>
124                 <artifactId>h2</artifactId>
125                 <version>${h2.version}</version>
126                 <scope>test</scope>
127             </dependency>
128         </dependencies>
129     </dependencyManagement>
130     <dependencies>
131         <dependency>
132             <groupId>javax.servlet</groupId>
133             <artifactId>javax.servlet-api</artifactId>
134         </dependency>
135         <dependency>
136             <!-- org.w3c.dom dependencies -->
137             <groupId>xml-apis</groupId>
138             <artifactId>xml-apis</artifactId>
139             <version>1.3.03</version>
140         </dependency>
141         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
142         <dependency>
143             <groupId>com.fasterxml.jackson.core</groupId>
144             <artifactId>jackson-databind</artifactId>
145             <version>${jackson.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>junit</groupId>
149             <artifactId>junit</artifactId>
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             <scope>test</scope>
182         </dependency>
183         <dependency>
184             <groupId>org.easymock</groupId>
185             <artifactId>easymock</artifactId>
186             <version>3.1</version>
187             <scope>test</scope>
188         </dependency>
189     </dependencies>
190     <build>
191         <plugins>
192             <plugin>
193                 <groupId>org.jacoco</groupId>
194                 <artifactId>jacoco-maven-plugin</artifactId>
195                 <executions>
196                     <execution>
197                         <id>pre-unit-test</id>
198                         <goals>
199                             <goal>prepare-agent</goal>
200                         </goals>
201                         <configuration>
202                             <destFile>${sonar.jacoco.reportPath}</destFile>
203                             <append>true</append>
204                         </configuration>
205                     </execution>
206                     <execution>
207                         <id>post-unit-test</id>
208                         <phase>test</phase>
209                         <goals>
210                             <goal>report</goal>
211                         </goals>
212                         <configuration>
213                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
214                         </configuration>
215                     </execution>
216                 </executions>
217             </plugin>
218             <plugin>
219                 <groupId>org.sonatype.plugins</groupId>
220                 <artifactId>nexus-staging-maven-plugin</artifactId>
221                 <extensions>true</extensions>
222                 <configuration>
223                     <nexusUrl>${nexusproxy}</nexusUrl>
224                     <stagingProfileId>176c31dfe190a</stagingProfileId>
225                     <serverId>ecomp-staging</serverId>
226                 </configuration>
227             </plugin>
228             <plugin>
229                 <groupId>org.apache.maven.plugins</groupId>
230                 <artifactId>maven-deploy-plugin</artifactId>
231                 <configuration>
232                     <skip />
233                 </configuration>
234             </plugin>
235             <plugin>
236                 <groupId>org.apache.maven.plugins</groupId>
237                 <artifactId>maven-surefire-plugin</artifactId>
238             </plugin>
239             <plugin>
240                 <groupId>org.apache.maven.plugins</groupId>
241                 <artifactId>maven-clean-plugin</artifactId>
242                 <version>2.4.1</version>
243             </plugin>
244             <plugin>
245                 <groupId>org.apache.maven.plugins</groupId>
246                 <artifactId>maven-compiler-plugin</artifactId>
247                 <configuration>
248                     <encoding>${project.encoding}</encoding>
249                     <source>${project.source.version}</source>
250                     <target>${project.target.version}</target>
251                 </configuration>
252             </plugin>
253             <plugin>
254                 <groupId>org.apache.maven.plugins</groupId>
255                 <artifactId>maven-resources-plugin</artifactId>
256                 <configuration>
257                     <encoding>${project.encoding}</encoding>
258                 </configuration>
259             </plugin>
260             <plugin>
261                 <groupId>org.apache.maven.plugins</groupId>
262                 <artifactId>maven-war-plugin</artifactId>
263                 <configuration>
264                     <failOnMissingWebXml>false</failOnMissingWebXml>
265                 </configuration>
266             </plugin>
267             <!-- The Jetty plugin allows us to easily test the development build by
268                 running jetty:run on the command line. -->
269             <plugin>
270                 <groupId>org.eclipse.jetty</groupId>
271                 <artifactId>jetty-maven-plugin</artifactId>
272                 <version>${jetty.plugin.version}</version>
273                 <configuration>
274                     <scanIntervalSeconds>2</scanIntervalSeconds>
275                 </configuration>
276             </plugin>
277             <plugin>
278                 <groupId>com.fortify.ps.maven.plugin</groupId>
279                 <artifactId>sca-maven-plugin</artifactId>
280                 <version>4.20</version>
281             </plugin>
282             <plugin>
283                 <groupId>org.apache.maven.plugins</groupId>
284                 <artifactId>maven-site-plugin</artifactId>
285                 <dependencies>
286                     <dependency>
287                         <groupId>org.apache.maven.wagon</groupId>
288                         <artifactId>wagon-webdav-jackrabbit</artifactId>
289                         <version>2.10</version>
290                     </dependency>
291                 </dependencies>
292             </plugin>
293         </plugins>
294         <pluginManagement>
295             <plugins>
296                 <plugin>
297                     <groupId>org.jacoco</groupId>
298                     <artifactId>jacoco-maven-plugin</artifactId>
299                     <version>${jacoco.version}</version>
300                     <configuration>
301                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
302                              above -->
303                         <excludes>
304                             <exclude>**/gen/**</exclude>
305                             <exclude>**/generated-sources/**</exclude>
306                             <exclude>**/yang-gen/**</exclude>
307                             <exclude>**/pax/**</exclude>
308                         </excludes>
309                     </configuration>
310                     <executions>
311                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
312                              is passed as VM argument when Maven the Surefire plugin is executed. -->
313                         <execution>
314                             <id>pre-unit-test</id>
315                             <goals>
316                                 <goal>prepare-agent</goal>
317                             </goals>
318                             <configuration>
319                                 <destFile>${sonar.jacoco.reportPath}</destFile>
320                             </configuration>
321                         </execution>
322                         <!-- Ensures that the code coverage report for unit tests is created 
323                             after unit tests have been run. -->
324                         <execution>
325                             <id>post-unit-test</id>
326                             <phase>test</phase>
327                             <goals>
328                                 <goal>report</goal>
329                             </goals>
330                             <configuration>
331                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
332                             </configuration>
333                         </execution>
334                     </executions>
335                 </plugin>
336                 <plugin>
337                     <groupId>org.eclipse.m2e</groupId>
338                     <artifactId>lifecycle-mapping</artifactId>
339                     <version>1.0.0</version>
340                     <configuration>
341                         <lifecycleMappingMetadata>
342                             <pluginExecutions>
343                                 <pluginExecution>
344                                     <pluginExecutionFilter>
345                                         <groupId>org.apache.maven.plugins</groupId>
346                                         <artifactId>maven-checkstyle-plugin</artifactId>
347                                         <versionRange>2.17,)</versionRange>
348                                         <goals>
349                                             <goal>check</goal>
350                                         </goals>
351                                     </pluginExecutionFilter>
352                                     <action>
353                                         <ignore />
354                                     </action>
355                                 </pluginExecution>
356                             </pluginExecutions>
357                         </lifecycleMappingMetadata>
358                     </configuration>
359                 </plugin>
360             </plugins>
361         </pluginManagement>
362     </build>
363 </project>