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