Set new master version for Dublin
[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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.policy.parent</groupId>
24         <artifactId>integration</artifactId>
25         <version>2.1.0-SNAPSHOT</version>
26         <relativePath />
27     </parent>
28     <groupId>org.onap.policy.engine</groupId>
29     <artifactId>PolicyEngineSuite</artifactId>
30     <version>1.4.0-SNAPSHOT</version>
31     <packaging>pom</packaging>
32     <name>policy-engine</name>
33     <description>The ONAP Policy Engine main pom</description>
34     <properties>
35         <!-- Project common build settings -->
36         <project.source.version>1.8</project.source.version>
37         <project.target.version>1.8</project.target.version>
38         <project.encoding>UTF-8</project.encoding>
39         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40         <!-- Project path properties -->
41         <nexusproxy>https://nexus.onap.org</nexusproxy>
42         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
43         <releases.path>content/repositories/releases/</releases.path>
44         <snapshots.path>content/repositories/snapshots/</snapshots.path>
45         <staging.path>content/repositories/staging/</staging.path>
46
47         <!-- sonar/jacoco overrides -->
48         <!-- Overriding oparent default sonar/jacoco settings Combine all our reports 
49             into one file shared across sub-modules -->
50         <sonar.jacoco.reportPath>${project.basedir}/../target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
51         <sonar.jacoco.itReportPath>${project.basedir}/../target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
52         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
53
54         <!-- Shared between policy/* project repositories - same version -->
55         <h2.version>1.4.186</h2.version>
56
57         <!-- Shared between policy/* project repositories - different version -->
58
59         <!-- Project common dependency versions -->
60         <springframework.version>4.3.18.RELEASE</springframework.version>
61         <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
62         <httpclient.version>4.5.5</httpclient.version>
63         <jackson.version>2.9.4</jackson.version>
64         <commons.fileupload.version>1.3.3</commons.fileupload.version>
65         <commons.compress.version>1.18</commons.compress.version>
66         <elasticsearch.version>6.3.0</elasticsearch.version>
67         <version.policy.common>1.4.0-SNAPSHOT</version.policy.common>
68         <version.policy.drools-application>1.4.0-SNAPSHOT</version.policy.drools-application>
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     <reporting>
87         <plugins>
88             <plugin>
89                 <groupId>org.apache.maven.plugins</groupId>
90                 <artifactId>maven-javadoc-plugin</artifactId>
91                 <version>2.10.4</version>
92                 <configuration>
93                     <failOnError>false</failOnError>
94                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
95                     <docletArtifact>
96                         <groupId>org.umlgraph</groupId>
97                         <artifactId>umlgraph</artifactId>
98                         <version>5.6</version>
99                     </docletArtifact>
100                     <additionalparam>-views</additionalparam>
101                     <useStandardDocletOptions>true</useStandardDocletOptions>
102                 </configuration>
103             </plugin>
104         </plugins>
105     </reporting>
106     <dependencyManagement>
107         <dependencies>
108             <dependency>
109                 <groupId>com.h2database</groupId>
110                 <artifactId>h2</artifactId>
111                 <version>${h2.version}</version>
112                 <scope>test</scope>
113             </dependency>
114         </dependencies>
115     </dependencyManagement>
116     <dependencies>
117         <dependency>
118             <groupId>javax.servlet</groupId>
119             <artifactId>javax.servlet-api</artifactId>
120         </dependency>
121         <dependency>
122             <!-- org.w3c.dom dependencies -->
123             <groupId>xml-apis</groupId>
124             <artifactId>xml-apis</artifactId>
125             <version>1.3.03</version>
126         </dependency>
127         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
128         <dependency>
129             <groupId>com.fasterxml.jackson.core</groupId>
130             <artifactId>jackson-databind</artifactId>
131             <version>${jackson.version}</version>
132         </dependency>
133         <dependency>
134             <groupId>junit</groupId>
135             <artifactId>junit</artifactId>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.springframework</groupId>
140             <artifactId>spring-mock</artifactId>
141             <version>2.0.8</version>
142             <scope>test</scope>
143         </dependency>
144         <dependency>
145             <groupId>com.mockrunner</groupId>
146             <artifactId>mockrunner</artifactId>
147             <version>0.3.1</version>
148             <scope>test</scope>
149         </dependency>
150         <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
151         <dependency>
152             <groupId>org.powermock</groupId>
153             <artifactId>powermock-api-mockito</artifactId>
154             <version>1.7.3</version>
155             <scope>test</scope>
156         </dependency>
157         <dependency>
158             <groupId>org.powermock</groupId>
159             <artifactId>powermock-module-junit4</artifactId>
160             <version>1.7.3</version>
161             <scope>test</scope>
162         </dependency>
163         <!-- https://mvnrepository.com/artifact/org.mockito/mockito-all -->
164         <dependency>
165             <groupId>org.mockito</groupId>
166             <artifactId>mockito-all</artifactId>
167             <scope>test</scope>
168         </dependency>
169         <dependency>
170             <groupId>org.easymock</groupId>
171             <artifactId>easymock</artifactId>
172             <version>3.1</version>
173             <scope>test</scope>
174         </dependency>
175     </dependencies>
176     <build>
177         <plugins>
178             <plugin>
179                 <groupId>org.jacoco</groupId>
180                 <artifactId>jacoco-maven-plugin</artifactId>
181                 <executions>
182                     <execution>
183                         <id>pre-unit-test</id>
184                         <goals>
185                             <goal>prepare-agent</goal>
186                         </goals>
187                         <configuration>
188                             <destFile>${sonar.jacoco.reportPath}</destFile>
189                             <append>true</append>
190                         </configuration>
191                     </execution>
192                     <execution>
193                         <id>post-unit-test</id>
194                         <phase>test</phase>
195                         <goals>
196                             <goal>report</goal>
197                         </goals>
198                         <configuration>
199                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
200                         </configuration>
201                     </execution>
202                 </executions>
203             </plugin>
204             <plugin>
205                 <groupId>org.sonatype.plugins</groupId>
206                 <artifactId>nexus-staging-maven-plugin</artifactId>
207                 <extensions>true</extensions>
208                 <configuration>
209                     <nexusUrl>${nexusproxy}</nexusUrl>
210                     <stagingProfileId>176c31dfe190a</stagingProfileId>
211                     <serverId>ecomp-staging</serverId>
212                 </configuration>
213             </plugin>
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-deploy-plugin</artifactId>
217                 <configuration>
218                     <skip />
219                 </configuration>
220             </plugin>
221             <plugin>
222                 <groupId>org.apache.maven.plugins</groupId>
223                 <artifactId>maven-surefire-plugin</artifactId>
224             </plugin>
225             <plugin>
226                 <groupId>org.apache.maven.plugins</groupId>
227                 <artifactId>maven-clean-plugin</artifactId>
228                 <version>2.4.1</version>
229             </plugin>
230             <plugin>
231                 <groupId>org.apache.maven.plugins</groupId>
232                 <artifactId>maven-compiler-plugin</artifactId>
233                 <configuration>
234                     <encoding>${project.encoding}</encoding>
235                     <source>${project.source.version}</source>
236                     <target>${project.target.version}</target>
237                 </configuration>
238             </plugin>
239             <plugin>
240                 <groupId>org.apache.maven.plugins</groupId>
241                 <artifactId>maven-resources-plugin</artifactId>
242                 <configuration>
243                     <encoding>${project.encoding}</encoding>
244                 </configuration>
245             </plugin>
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-war-plugin</artifactId>
249                 <configuration>
250                     <failOnMissingWebXml>false</failOnMissingWebXml>
251                 </configuration>
252             </plugin>
253             <!-- The Jetty plugin allows us to easily test the development build by
254                 running jetty:run on the command line. -->
255             <plugin>
256                 <groupId>org.eclipse.jetty</groupId>
257                 <artifactId>jetty-maven-plugin</artifactId>
258                 <version>${jetty.plugin.version}</version>
259                 <configuration>
260                     <scanIntervalSeconds>2</scanIntervalSeconds>
261                 </configuration>
262             </plugin>
263             <plugin>
264                 <groupId>com.fortify.ps.maven.plugin</groupId>
265                 <artifactId>sca-maven-plugin</artifactId>
266                 <version>4.20</version>
267             </plugin>
268             <plugin>
269                 <groupId>org.apache.maven.plugins</groupId>
270                 <artifactId>maven-site-plugin</artifactId>
271                 <dependencies>
272                     <dependency>
273                         <groupId>org.apache.maven.wagon</groupId>
274                         <artifactId>wagon-webdav-jackrabbit</artifactId>
275                         <version>2.10</version>
276                     </dependency>
277                 </dependencies>
278             </plugin>
279         </plugins>
280         <pluginManagement>
281             <plugins>
282                 <plugin>
283                     <groupId>org.jacoco</groupId>
284                     <artifactId>jacoco-maven-plugin</artifactId>
285                     <version>${jacoco.version}</version>
286                     <configuration>
287                          <!-- Note: This exclusion list should match <sonar.exclusions> property 
288                              above -->
289                         <excludes>
290                             <exclude>**/gen/**</exclude>
291                             <exclude>**/generated-sources/**</exclude>
292                             <exclude>**/yang-gen/**</exclude>
293                             <exclude>**/pax/**</exclude>
294                         </excludes>
295                     </configuration>
296                     <executions>
297                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
298                              is passed as VM argument when Maven the Surefire plugin is executed. -->
299                         <execution>
300                             <id>pre-unit-test</id>
301                             <goals>
302                                 <goal>prepare-agent</goal>
303                             </goals>
304                             <configuration>
305                                 <destFile>${sonar.jacoco.reportPath}</destFile>
306                             </configuration>
307                         </execution>
308                         <!-- Ensures that the code coverage report for unit tests is created 
309                             after unit tests have been run. -->
310                         <execution>
311                             <id>post-unit-test</id>
312                             <phase>test</phase>
313                             <goals>
314                                 <goal>report</goal>
315                             </goals>
316                             <configuration>
317                                 <dataFile>${sonar.jacoco.reportPath}</dataFile>
318                             </configuration>
319                         </execution>
320                     </executions>
321                 </plugin>
322                 <plugin>
323                     <groupId>org.eclipse.m2e</groupId>
324                     <artifactId>lifecycle-mapping</artifactId>
325                     <version>1.0.0</version>
326                     <configuration>
327                         <lifecycleMappingMetadata>
328                             <pluginExecutions>
329                                 <pluginExecution>
330                                     <pluginExecutionFilter>
331                                         <groupId>org.apache.maven.plugins</groupId>
332                                         <artifactId>maven-checkstyle-plugin</artifactId>
333                                         <versionRange>2.17,)</versionRange>
334                                         <goals>
335                                             <goal>check</goal>
336                                         </goals>
337                                     </pluginExecutionFilter>
338                                     <action>
339                                         <ignore />
340                                     </action>
341                                 </pluginExecution>
342                             </pluginExecutions>
343                         </lifecycleMappingMetadata>
344                     </configuration>
345                 </plugin>
346             </plugins>
347         </pluginManagement>
348     </build>
349 </project>