Address critical security issues
[aai/gizmo.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.oparent</groupId>
28         <artifactId>oparent</artifactId>
29         <version>1.1.0</version>
30         <relativePath />
31     </parent>
32
33     <groupId>org.onap.aai.gizmo</groupId>
34     <artifactId>gizmo</artifactId>
35     <version>1.2.0-SNAPSHOT</version>
36     <name>aai-gizmo</name>
37
38
39     <properties>
40         <docker.location>${basedir}/target</docker.location>
41         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
42
43         <testRouteOffer>workstation</testRouteOffer>
44         <testEnv>DEV</testEnv>
45
46         <sonar.language>java</sonar.language>
47         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
48         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
49         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
50         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
51         <sonar.projectVersion>${project.version}</sonar.projectVersion>
52         <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
53     </properties>
54
55     <dependencyManagement>
56         <dependencies>
57             <dependency>
58                 <!-- Import dependency management from Spring Boot -->
59                 <groupId>org.springframework.boot</groupId>
60                 <artifactId>spring-boot-dependencies</artifactId>
61                 <version>1.5.12.RELEASE</version>
62                 <type>pom</type>
63                 <scope>import</scope>
64             </dependency>
65         </dependencies>
66     </dependencyManagement>
67
68     <dependencies>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-web</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.springframework.boot</groupId>
75             <artifactId>spring-boot-starter-jetty</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.springframework.boot</groupId>
79             <artifactId>spring-boot-starter</artifactId>
80             <exclusions>
81                 <exclusion>
82                         <groupId>ch.qos.logback</groupId>
83                         <artifactId>logback-classic</artifactId>
84                 </exclusion>
85             </exclusions>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-jersey</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.boot</groupId>
93             <artifactId>spring-boot-starter-actuator</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.apache.cxf</groupId>
97             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
98             <version>3.2.4</version>
99         </dependency>
100         <dependency>
101             <groupId>ch.qos.logback</groupId>
102             <artifactId>logback-classic</artifactId>
103             <version>1.2.3</version>
104         </dependency>
105         <dependency>
106             <groupId>ch.qos.logback</groupId>
107             <artifactId>logback-core</artifactId>
108             <version>1.2.3</version>
109             <exclusions>
110                 <exclusion>
111                     <groupId>ch.qos.logback</groupId>
112                     <artifactId>logback-classic</artifactId>
113                 </exclusion>
114             </exclusions>
115         </dependency> 
116         <dependency>
117             <groupId>com.google.guava</groupId>
118             <artifactId>guava</artifactId>
119             <version>23.0</version>
120         </dependency>
121         <dependency>
122             <groupId>radeox</groupId>
123             <artifactId>radeox</artifactId>
124             <version>1.0-b2</version>
125         </dependency>
126         <dependency>
127             <groupId>org.codehaus.jackson</groupId>
128             <artifactId>jackson-mapper-asl</artifactId>
129             <version>1.4.5</version>
130         </dependency>
131         <dependency>
132             <groupId>org.mockito</groupId>
133             <artifactId>mockito-all</artifactId>
134             <version>1.9.5</version>
135             <scope>test</scope>
136         </dependency>
137         <dependency>
138             <groupId>dom4j</groupId>
139             <artifactId>dom4j</artifactId>
140             <version>1.6.1</version>
141             <scope>provided</scope>
142         </dependency>
143         <dependency>
144             <groupId>commons-io</groupId>
145             <artifactId>commons-io</artifactId>
146             <version>2.4</version>
147         </dependency>
148         <dependency>
149             <groupId>org.apache.commons</groupId>
150             <artifactId>commons-lang3</artifactId>
151             <version>3.3.1</version>
152         </dependency>
153         <dependency>
154             <groupId>com.google.code.gson</groupId>
155             <artifactId>gson</artifactId>
156             <version>2.6.2</version>
157         </dependency>
158         <!-- Common logging framework -->
159         <dependency>
160             <groupId>org.onap.aai.logging-service</groupId>
161             <artifactId>common-logging</artifactId>
162             <version>1.2.2</version>
163             <exclusions>
164                 <exclusion>
165                     <groupId>ch.qos.logback</groupId>
166                     <artifactId>logback-classic</artifactId>
167                 </exclusion>
168                 <exclusion>
169                     <groupId>ch.qos.logback</groupId>
170                     <artifactId>logback-core</artifactId>
171                 </exclusion>
172                 <exclusion>
173                     <groupId>org.slf4j</groupId>
174                     <artifactId>slf4j-api</artifactId>
175                 </exclusion>
176             </exclusions>
177         </dependency>
178         <dependency>
179             <groupId>org.onap.aai.event-client</groupId>
180             <artifactId>event-client-dmaap</artifactId>
181             <version>1.2.1</version>
182             <exclusions>
183                 <exclusion>
184                     <groupId>org.slf4j</groupId>
185                     <artifactId>slf4j-api</artifactId>
186                 </exclusion>
187             </exclusions>
188         </dependency>
189         <dependency>
190             <groupId>org.onap.aai.aai-common</groupId>
191             <artifactId>aai-schema</artifactId>
192             <version>1.2.1</version>
193         </dependency>
194         <dependency>
195             <groupId>org.onap.aai.aai-common</groupId>
196             <artifactId>aai-utils</artifactId>
197             <version>1.2.1</version>
198         </dependency>
199         <dependency>
200             <groupId>org.onap.aai.aai-common</groupId>
201             <artifactId>aai-core</artifactId>
202             <version>1.2.1</version>
203             <exclusions>
204                 <exclusion>
205                     <groupId>*</groupId>
206                     <artifactId>*</artifactId>
207                 </exclusion>
208             </exclusions>
209         </dependency>
210         <dependency>
211             <groupId>org.onap.aai.aai-common</groupId>
212             <artifactId>aai-auth</artifactId>
213             <version>1.2.1</version>
214         </dependency>
215         <dependency>
216             <groupId>org.eclipse.persistence</groupId>
217             <artifactId>eclipselink</artifactId>
218             <version>2.6.2</version>
219         </dependency>
220         <dependency>
221             <groupId>org.onap.aai</groupId>
222             <artifactId>rest-client</artifactId>
223             <version>1.2.1</version>
224         </dependency>
225         <dependency>
226             <groupId>net.dongliu</groupId>
227             <artifactId>gson-java8-datatype</artifactId>
228             <version>1.0.3</version>
229         </dependency>
230         <dependency>
231             <groupId>com.jayway.jsonpath</groupId>
232             <artifactId>json-path</artifactId>
233             <version>2.2.0</version>
234             <exclusions>
235                 <exclusion>
236                     <groupId>org.slf4j</groupId>
237                     <artifactId>slf4j-api</artifactId>
238                 </exclusion>
239             </exclusions>
240         </dependency>
241         <!-- AAI-CORE specific dependencies -->
242         <dependency>
243             <groupId>org.apache.tinkerpop</groupId>
244             <artifactId>gremlin-core</artifactId>
245             <version>3.2.3</version>
246             <scope>provided</scope>
247             <exclusions>
248                 <exclusion>
249                     <groupId>org.slf4j</groupId>
250                     <artifactId>slf4j-log4j12</artifactId>
251                 </exclusion>
252                 <exclusion>
253                     <groupId>org.slf4j</groupId>
254                     <artifactId>jcl-over-slf4j</artifactId>
255                 </exclusion>
256                 <exclusion>
257                     <groupId>org.slf4j</groupId>
258                     <artifactId>slf4j-api</artifactId>
259                 </exclusion>
260             </exclusions>
261         </dependency>
262         <dependency>
263             <groupId>org.apache.tinkerpop</groupId>
264             <artifactId>tinkergraph-gremlin</artifactId>
265             <version>3.2.3</version>
266             <scope>provided</scope>
267         </dependency>
268         <dependency>
269             <groupId>org.json</groupId>
270             <artifactId>json</artifactId>
271             <version>20160212</version>
272         </dependency>
273         <dependency>
274             <groupId>junit</groupId>
275             <artifactId>junit</artifactId>
276         </dependency>
277         <dependency>
278             <groupId>org.skyscreamer</groupId>
279             <artifactId>jsonassert</artifactId>
280             <version>1.5.0</version>
281             <scope>test</scope>
282         </dependency>
283         <dependency>
284             <groupId>org.hamcrest</groupId>
285             <artifactId>hamcrest-library</artifactId>
286             <version>${version.org.hamcrest.hamcrest-library}</version>
287             <scope>test</scope>
288         </dependency>
289         <dependency>
290             <groupId>org.apache.httpcomponents</groupId>
291             <artifactId>httpclient</artifactId>
292             <version>4.5.3</version>
293         </dependency>
294         <dependency>
295             <groupId>org.apache.httpcomponents</groupId>
296             <artifactId>httpcore</artifactId>
297             <version>4.4.1</version>
298         </dependency>
299         <dependency>
300             <groupId>org.springframework.boot</groupId>
301             <artifactId>
302                     spring-boot-configuration-processor
303                 </artifactId>
304             <optional>true</optional>
305         </dependency>
306     </dependencies>
307
308     <build>
309         <finalName>${project.artifactId}</finalName>
310         <plugins>
311             <plugin>
312                 <groupId>org.apache.maven.plugins</groupId>
313                 <artifactId>maven-resources-plugin</artifactId>
314                 <version>2.7</version>
315                 <executions>
316                     <execution>
317                         <id>copy-docker-file</id>
318                         <phase>package</phase>
319                         <goals>
320                             <goal>copy-resources</goal>
321                         </goals>
322                         <configuration>
323                             <outputDirectory>target</outputDirectory>
324                             <overwrite>true</overwrite>
325                             <resources>
326                                 <resource>
327                                     <directory>${basedir}/src/main/docker</directory>
328                                     <filtering>true</filtering>
329                                     <includes>
330                                         <include>**/*</include>
331                                     </includes>
332                                 </resource>
333                                 <resource>
334                                     <directory>${basedir}/src/main/bin/</directory>
335                                 </resource>
336                             </resources>
337                         </configuration>
338                     </execution>
339                 </executions>
340             </plugin>
341
342             <plugin>
343                 <groupId>com.spotify</groupId>
344                 <artifactId>docker-maven-plugin</artifactId>
345                 <version>0.4.11</version>
346                 <configuration>
347                     <verbose>true</verbose>
348                     <serverId>docker-hub</serverId>
349                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
350                     <dockerDirectory>${docker.location}</dockerDirectory>
351                     <imageTags>
352                         <imageTag>latest</imageTag>
353                     </imageTags>
354                     <forceTags>true</forceTags>
355                 </configuration>
356             </plugin>
357
358             <!-- license plugin -->
359             <!-- Uncomment this to add a license header to every source file -->
360             <plugin>
361                 <groupId>com.mycila</groupId>
362                 <artifactId>license-maven-plugin</artifactId>
363                 <version>3.0</version>
364                 <configuration>
365                     <header>License.txt</header>
366                     <includes>
367                         <include>src/main/java/**</include>
368                         <include>src/test/java/**</include>
369                     </includes>
370                 </configuration>
371                 <executions>
372                     <execution>
373                         <goals>
374                             <goal>format</goal>
375                         </goals>
376                         <phase>process-sources</phase>
377                     </execution>
378                 </executions>
379             </plugin>
380
381
382             <plugin>
383                 <groupId>org.apache.maven.plugins</groupId>
384                 <artifactId>maven-site-plugin</artifactId>
385                 <version>3.3</version>
386                 <configuration>
387                     <reportPlugins>
388                         <plugin>
389                             <groupId>org.apache.maven.plugins</groupId>
390                             <artifactId>maven-checkstyle-plugin</artifactId>
391                             <version>2.17</version>
392                             <reportSets>
393                                 <reportSet>
394                                     <reports>
395                                         <report>checkstyle</report>
396                                     </reports>
397                                 </reportSet>
398                             </reportSets>
399                         </plugin>
400                     </reportPlugins>
401                 </configuration>
402             </plugin>
403
404             <plugin>
405                 <groupId>org.apache.maven.plugins</groupId>
406                 <artifactId>maven-deploy-plugin</artifactId>
407                 <configuration>
408                     <skip>true</skip>
409                 </configuration>
410             </plugin>
411
412             <plugin>
413                 <groupId>org.codehaus.mojo</groupId>
414                 <artifactId>sonar-maven-plugin</artifactId>
415                 <version>3.2</version>
416             </plugin>
417
418             <plugin>
419                 <groupId>org.jacoco</groupId>
420                 <artifactId>jacoco-maven-plugin</artifactId>
421                 <version>0.7.7.201606060606</version>
422                 <configuration>
423                     <dumpOnExit>true</dumpOnExit>
424                 </configuration>
425                 <executions>
426                     <execution>
427                         <id>jacoco-initialize-unit-tests</id>
428                         <goals>
429                             <goal>prepare-agent</goal>
430                         </goals>
431                         <configuration>
432                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
433                             </destFile>
434                             <!-- <append>true</append> -->
435                         </configuration>
436                     </execution>
437                 </executions>
438             </plugin>
439             <plugin>
440                 <groupId>org.springframework.boot</groupId>
441                 <artifactId>spring-boot-maven-plugin</artifactId>
442                 <version>2.0.1.RELEASE</version>
443                 <executions>
444                     <execution>
445                         <goals>
446                             <goal>repackage</goal>
447                         </goals>
448                     </execution>
449                 </executions>
450             </plugin>
451         </plugins>
452     </build>
453
454     <distributionManagement>
455         <site>
456             <id>ecomp-javadoc</id>
457             <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
458         </site>
459     </distributionManagement>
460 </project>