Upgrade dmaap client with security fix
[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"
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
24         <parent>
25                 <groupId>org.onap.oparent</groupId>
26                 <artifactId>oparent</artifactId>
27                 <version>0.1.1</version>
28                 <relativePath/>
29         </parent>
30
31         <groupId>org.onap.policy.engine</groupId>
32         <artifactId>PolicyEngineSuite</artifactId>
33         <version>1.2.0-SNAPSHOT</version>
34         <packaging>pom</packaging>
35         <name>policy-engine</name>
36
37         <description>The ONAP Policy Engine main pom</description>
38
39         <properties>
40                 <!-- Project common build settings -->
41                 <project.source.version>1.8</project.source.version>
42                 <project.target.version>1.8</project.target.version>
43                 <project.encoding>UTF-8</project.encoding>
44                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45                 <!-- Project path properties -->
46                 <nexusproxy>https://nexus.onap.org</nexusproxy>
47                 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48                 <releases.path>content/repositories/releases/</releases.path>
49                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
50                 <staging.path>content/repositories/staging/</staging.path>
51
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
59                 <!--
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
68                 <!-- Project common dependency versions -->
69                 <jetty.plugin.version>9.2.3.v20140905</jetty.plugin.version>
70                 <dmaap.version>1.1.3-SNAPSHOT</dmaap.version>
71                 <httpclient.version>4.5.5</httpclient.version>
72                 <jackson.version>2.9.4</jackson.version>
73                 <commons.fileupload.version>1.3.3</commons.fileupload.version>
74         </properties>
75
76
77         <modules>
78                 <module>PolicyEngineUtils</module>
79                 <module>ONAP-XACML</module>
80                 <module>ONAP-REST</module>
81                 <module>PolicyEngineAPI</module>
82                 <module>ONAP-PDP</module>
83                 <module>ONAP-PDP-REST</module>
84                 <module>ONAP-PAP-REST</module>
85                 <module>LogParser</module>
86                 <module>PolicyEngineClient</module>
87                 <module>BRMSGateway</module>
88                 <module>POLICY-SDK-APP</module>
89                 <module>ONAP-SDK-APP</module>
90                 <module>packages</module>
91         </modules>
92
93         <distributionManagement>
94                 <repository>
95                         <id>ecomp-releases</id>
96                         <name>ONAP Release Repository</name>
97                         <url>${nexusproxy}/${releases.path}</url>
98                 </repository>
99                 <snapshotRepository>
100                         <id>ecomp-snapshots</id>
101                         <name>ONAP Snapshot Repository</name>
102                         <url>${nexusproxy}/${snapshots.path}</url>
103                 </snapshotRepository>
104                 <site>
105                         <id>ecomp-site</id>
106                         <url>dav:${nexusproxy}${sitePath}</url>
107                 </site>
108         </distributionManagement>
109
110         <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
131         <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         
142         <dependencies>
143
144                 <dependency>
145                         <groupId>javax.servlet</groupId>
146                         <artifactId>javax.servlet-api</artifactId>
147                         <version>3.1.0</version>
148                 </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>
160                                 <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>
186                                 <groupId>org.sonatype.plugins</groupId>
187                                 <artifactId>nexus-staging-maven-plugin</artifactId>
188                                 <extensions>true</extensions>
189                                 <configuration>
190                                         <nexusUrl>${nexusproxy}</nexusUrl>
191                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
192                                         <serverId>ecomp-staging</serverId>
193                                 </configuration>
194                         </plugin>
195                         <plugin>
196                                 <groupId>org.apache.maven.plugins</groupId>
197                                 <artifactId>maven-deploy-plugin</artifactId>
198                                 <configuration>
199                                         <skip />
200                                 </configuration>
201                         </plugin>
202                         <plugin>
203                                 <groupId>org.apache.maven.plugins</groupId>
204                                 <artifactId>maven-surefire-plugin</artifactId>
205                         </plugin>
206                         <plugin>
207                                 <groupId>org.apache.maven.plugins</groupId>
208                                 <artifactId>maven-clean-plugin</artifactId>
209                                 <version>2.4.1</version>
210                         </plugin>
211                         <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>
237                         <!-- The Jetty plugin allows us to easily test the development build by
238                                 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>
254                           <groupId>org.apache.maven.plugins</groupId>
255                           <artifactId>maven-site-plugin</artifactId>
256                           <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>
264                 </plugins>
265         <pluginManagement>
266             <plugins>
267                                 <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>
307                 <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>
333         </build>
334 </project>