Fix vulnerability report part1
[externalapi/nbi.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4
5         Copyright (c) 2017 Orange.  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
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/xsd/maven-4.0.0.xsd">
22         <modelVersion>4.0.0</modelVersion>
23
24         <groupId>org.onap.externalapi-nbi</groupId>
25         <artifactId>nbi-rest-services</artifactId>
26         <version>1.0.0-SNAPSHOT</version>
27         <packaging>jar</packaging>
28
29         <name>nbi-rest-services</name>
30
31         <parent>
32                 <groupId>org.springframework.boot</groupId>
33                 <artifactId>spring-boot-starter-parent</artifactId>
34                 <version>1.5.10.RELEASE</version>
35                 <relativePath /> <!-- lookup parent from repository -->
36         </parent>
37
38
39         <properties>
40                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
42                 <nexusproxy>https://nexus.onap.org</nexusproxy>
43                 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
44                 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
45                 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
46                 <java.version>1.8</java.version>
47                 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
48                 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
49                 <timestamp>${maven.build.timestamp}</timestamp>
50                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
51                 <!--docker -->
52                 <docker.tag>${project.version}-${timestamp}</docker.tag>
53                 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
54         </properties>
55
56         <repositories>
57                 <repository>
58                         <id>maven2-repository.java.net</id>
59                         <name>Java.net Repository for Maven</name>
60                         <url>http://download.java.net/maven/2/</url>
61                         <layout>default</layout>
62                 </repository>
63                 <repository>
64                         <id>ecomp-snapshots</id>
65                         <name>Snapshot Repository</name>
66                         <url>https://nexus.onap.org/content/repositories/releases/</url>
67                 </repository>
68                 <repository>
69                         <id>ecomp-staging</id>
70                         <name>Staging Repository</name>
71                         <url>https://nexus.onap.org/content/repositories/staging/</url>
72                 </repository>
73         </repositories>
74
75         <licenses>
76                 <license>
77                         <name>Apache2</name>
78                         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
79                 </license>
80         </licenses>
81
82         <dependencies>
83
84                 <dependency>
85                         <groupId>org.springframework.boot</groupId>
86                         <artifactId>spring-boot-starter-web</artifactId>
87                 </dependency>
88
89                 <dependency>
90                         <groupId>org.springframework.boot</groupId>
91                         <artifactId>spring-boot-starter-data-jpa</artifactId>
92                 </dependency>
93
94                 <dependency>
95                         <groupId>org.apache.commons</groupId>
96                         <artifactId>commons-io</artifactId>
97                         <version>1.3.2</version>
98                 </dependency>
99
100                 <dependency>
101                         <groupId>commons-beanutils</groupId>
102                         <artifactId>commons-beanutils</artifactId>
103                         <version>1.9.3</version>
104                 </dependency>
105
106                 <dependency>
107                         <groupId>javax.validation</groupId>
108                         <artifactId>validation-api</artifactId>
109                         <version>2.0.1.Final</version>
110                 </dependency>
111
112                 <dependency>
113                         <groupId>org.apache.commons</groupId>
114                         <artifactId>commons-lang3</artifactId>
115                         <version>3.4</version>
116                 </dependency>
117
118                 <!-- mongo -->
119
120                 <dependency>
121                         <groupId>org.springframework.boot</groupId>
122                         <artifactId>spring-boot-starter-data-mongodb</artifactId>
123                 </dependency>
124
125                 <!-- mysql -->
126
127                 <dependency>
128                         <groupId>mysql</groupId>
129                         <artifactId>mysql-connector-java</artifactId>
130                 </dependency>
131                 <dependency>
132                         <groupId>org.mariadb.jdbc</groupId>
133                         <artifactId>mariadb-java-client</artifactId>
134                         <version>1.1.7</version>
135                 </dependency>
136
137                 <!-- swagger -->
138
139                 <dependency>
140                         <groupId>io.swagger</groupId>
141                         <artifactId>swagger-annotations</artifactId>
142                         <version>1.5.18</version>
143                 </dependency>
144
145                 <!-- jackson -->
146
147                 <dependency>
148                         <groupId>com.fasterxml.jackson.dataformat</groupId>
149                         <artifactId>jackson-dataformat-yaml</artifactId>
150                         <version>2.8.0</version>
151                 </dependency>
152
153                 <!-- jolt -->
154
155                 <dependency>
156                         <groupId>com.bazaarvoice.jolt</groupId>
157                         <artifactId>jolt-core</artifactId>
158                         <version>0.1.0</version>
159                         <exclusions>
160                                 <exclusion>
161                                         <groupId>com.fasterxml.jackson.core</groupId>
162                                         <artifactId>jackson-databind</artifactId>
163                                 </exclusion>
164                         </exclusions>
165                 </dependency>
166
167                 <dependency>
168                         <groupId>com.bazaarvoice.jolt</groupId>
169                         <artifactId>json-utils</artifactId>
170                         <version>0.1.0</version>
171                 </dependency>
172
173                 <!-- test -->
174
175                 <dependency>
176                         <groupId>org.springframework.boot</groupId>
177                         <artifactId>spring-boot-starter-test</artifactId>
178                         <scope>test</scope>
179                 </dependency>
180
181                 <!-- test h2  -->
182
183                 <dependency>
184                         <groupId>com.h2database</groupId>
185                         <artifactId>h2</artifactId>
186                         <scope>test</scope>
187                 </dependency>
188
189                 <dependency>
190                         <groupId>de.flapdoodle.embed</groupId>
191                         <artifactId>de.flapdoodle.embed.mongo</artifactId>
192                         <version>${embedded-mongo.version}</version>
193                         <scope>test</scope>
194                 </dependency>
195
196                 <!-- test wiremock -->
197
198                 <dependency>
199                         <groupId>org.springframework.cloud</groupId>
200                         <artifactId>spring-cloud-contract-wiremock</artifactId>
201                         <version>1.0.0.RELEASE</version>
202                         <scope>test</scope>
203                 </dependency>
204
205                 <dependency>
206                         <groupId>org.eclipse.jetty</groupId>
207                         <artifactId>jetty-server</artifactId>
208                         <version>9.4.7.RC0</version>
209                         <scope>test</scope>
210                 </dependency>
211
212                 <dependency>
213                         <groupId>org.eclipse.jetty</groupId>
214                         <artifactId>jetty-servlet</artifactId>
215                         <scope>test</scope>
216                 </dependency>
217
218                 <dependency>
219                         <groupId>org.eclipse.jetty</groupId>
220                         <artifactId>jetty-servlets</artifactId>
221                         <scope>test</scope>
222                 </dependency>
223
224                 <!-- runtime dev -->
225
226                 <dependency>
227                         <groupId>org.springframework.boot</groupId>
228                         <artifactId>spring-boot-devtools</artifactId>
229                         <scope>runtime</scope>
230                 </dependency>
231
232         </dependencies>
233
234         <build>
235                 <plugins>
236                         <plugin>
237                                 <groupId>org.springframework.boot</groupId>
238                                 <artifactId>spring-boot-maven-plugin</artifactId>
239                         </plugin>
240                         <plugin>
241                                 <groupId>org.sonatype.plugins</groupId>
242                                 <artifactId>nexus-staging-maven-plugin</artifactId>
243                                 <version>1.6.7</version>
244                                 <extensions>true</extensions>
245                                 <configuration>
246                                         <nexusUrl>${nexusproxy}</nexusUrl>
247                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
248                                         <serverId>ecomp-staging</serverId>
249                                 </configuration>
250                         </plugin>
251                         <plugin>
252                                 <groupId>org.apache.maven.plugins</groupId>
253                                 <artifactId>maven-site-plugin</artifactId>
254                                 <version>3.6</version>
255                                 <dependencies>
256                                         <dependency>
257                                                 <groupId>org.apache.maven.wagon</groupId>
258                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
259                                                 <version>2.10</version>
260                                         </dependency>
261                                 </dependencies>
262                         </plugin>
263                         <plugin>
264                                 <groupId>com.mycila</groupId>
265                                 <artifactId>license-maven-plugin</artifactId>
266                                 <version>3.0</version>
267                                 <configuration>
268                                         <header>LICENSE.TXT</header>
269                                         <includes>
270                                                 <include>src/main/java/**</include>
271                                                 <include>src/test/java/**</include>
272                                                 <include>pom.xml</include>
273                                         </includes>
274                                         <skipExistingHeaders>true</skipExistingHeaders>
275                                         <skip>false</skip>
276                                 </configuration>
277                                 <executions>
278                                         <execution>
279                                                 <goals>
280                                                         <!-- Set goal to "format" to auto update license headers -->
281                                                         <goal>check</goal>
282                                                 </goals>
283                                                 <phase>process-sources</phase>
284                                         </execution>
285                                 </executions>
286                         </plugin>
287                 </plugins>
288         </build>
289
290
291
292         <profiles>
293                 <profile>
294                         <id>docker</id>
295                         <build>
296                                 <plugins>
297                                         <plugin>
298                                                 <groupId>io.fabric8</groupId>
299                                                 <artifactId>docker-maven-plugin</artifactId>
300                                                 <version>0.19.1</version>
301                                                 <configuration>
302                                                         <verbose>true</verbose>
303                                                         <apiVersion>1.23</apiVersion>
304                                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
305                                                         <pushRegistry>${docker.push.registry}</pushRegistry>
306                                                         <images>
307                                                                 <image>
308                                                                         <name>onap/externalapi/nbi</name>
309                                                                         <alias>onap/externalapi/nbi</alias>
310                                                                         <build>
311                                                                                 <cleanup>true</cleanup>
312                                                                                 <tags>
313                                                                                         <tag>${docker.tag}</tag>
314                                                                                         <tag>${docker.latest.tag}</tag>
315                                                                                 </tags>
316                                                                                 <dockerFileDir>${project.basedir}</dockerFileDir>
317                                                                         </build>
318                                                                 </image>
319                                                         </images>
320                                                 </configuration>
321                                                 <executions>
322                                                         <execution>
323                                                                 <id>clean-images</id>
324                                                                 <phase>pre-clean</phase>
325                                                                 <goals>
326                                                                         <goal>remove</goal>
327                                                                 </goals>
328                                                                 <configuration>
329                                                                         <removeAll>true</removeAll>
330                                                                         <image>nbi</image>
331                                                                 </configuration>
332                                                         </execution>
333                                                         <execution>
334                                                                 <id>generate-images</id>
335                                                                 <phase>package</phase>
336                                                                 <goals>
337                                                                         <goal>build</goal>
338                                                                 </goals>
339                                                         </execution>
340                                                         <execution>
341                                                                 <id>push-images</id>
342                                                                 <phase>deploy</phase>
343                                                                 <goals>
344                                                                         <goal>push</goal>
345                                                                 </goals>
346                                                         </execution>
347                                                 </executions>
348                                         </plugin>
349                                 </plugins>
350                         </build>
351                 </profile>
352         </profiles>
353
354 </project>