Remove mysql-connector-java (license threat)
[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         <distributionManagement>
76                 <repository>
77                         <id>ecomp-releases</id>
78                         <name>Release Repository</name>
79                         <url>${nexusproxy}/${releaseNexusPath}</url>
80                 </repository>
81                 <snapshotRepository>
82                         <id>ecomp-snapshots</id>
83                         <name>Snapshot Repository</name>
84                         <url>${nexusproxy}/${snapshotNexusPath}</url>
85                 </snapshotRepository>
86         </distributionManagement>
87
88         <licenses>
89                 <license>
90                         <name>Apache2</name>
91                         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
92                 </license>
93         </licenses>
94
95         <dependencies>
96
97                 <dependency>
98                         <groupId>org.springframework.boot</groupId>
99                         <artifactId>spring-boot-starter-web</artifactId>
100                 </dependency>
101
102                 <dependency>
103                         <groupId>org.springframework.boot</groupId>
104                         <artifactId>spring-boot-starter-data-jpa</artifactId>
105                 </dependency>
106
107                 <dependency>
108                         <groupId>org.apache.commons</groupId>
109                         <artifactId>commons-io</artifactId>
110                         <version>1.3.2</version>
111                 </dependency>
112
113                 <dependency>
114                         <groupId>commons-beanutils</groupId>
115                         <artifactId>commons-beanutils</artifactId>
116                         <version>1.9.3</version>
117                 </dependency>
118
119                 <dependency>
120                         <groupId>javax.validation</groupId>
121                         <artifactId>validation-api</artifactId>
122                         <version>2.0.1.Final</version>
123                 </dependency>
124
125                 <dependency>
126                         <groupId>org.apache.commons</groupId>
127                         <artifactId>commons-lang3</artifactId>
128                         <version>3.4</version>
129                 </dependency>
130
131                 <!-- mongo -->
132
133                 <dependency>
134                         <groupId>org.springframework.boot</groupId>
135                         <artifactId>spring-boot-starter-data-mongodb</artifactId>
136                 </dependency>
137
138                 <!-- mysql -->
139
140                 <dependency>
141                         <groupId>org.mariadb.jdbc</groupId>
142                         <artifactId>mariadb-java-client</artifactId>
143                         <version>1.1.7</version>
144                 </dependency>
145
146                 <!-- swagger -->
147
148                 <dependency>
149                         <groupId>io.swagger</groupId>
150                         <artifactId>swagger-annotations</artifactId>
151                         <version>1.5.18</version>
152                 </dependency>
153
154                 <!-- jackson -->
155
156                 <dependency>
157                         <groupId>com.fasterxml.jackson.dataformat</groupId>
158                         <artifactId>jackson-dataformat-yaml</artifactId>
159                         <version>2.8.0</version>
160                 </dependency>
161
162                 <!-- jolt -->
163
164                 <dependency>
165                         <groupId>com.bazaarvoice.jolt</groupId>
166                         <artifactId>jolt-core</artifactId>
167                         <version>0.1.0</version>
168                         <exclusions>
169                                 <exclusion>
170                                         <groupId>com.fasterxml.jackson.core</groupId>
171                                         <artifactId>jackson-databind</artifactId>
172                                 </exclusion>
173                         </exclusions>
174                 </dependency>
175
176                 <dependency>
177                         <groupId>com.bazaarvoice.jolt</groupId>
178                         <artifactId>json-utils</artifactId>
179                         <version>0.1.0</version>
180                 </dependency>
181
182                 <!-- test -->
183
184                 <dependency>
185                         <groupId>org.springframework.boot</groupId>
186                         <artifactId>spring-boot-starter-test</artifactId>
187                         <scope>test</scope>
188                 </dependency>
189
190                 <!-- test h2  -->
191
192                 <dependency>
193                         <groupId>com.h2database</groupId>
194                         <artifactId>h2</artifactId>
195                         <scope>test</scope>
196                 </dependency>
197
198                 <dependency>
199                         <groupId>de.flapdoodle.embed</groupId>
200                         <artifactId>de.flapdoodle.embed.mongo</artifactId>
201                         <version>${embedded-mongo.version}</version>
202                         <scope>test</scope>
203                 </dependency>
204
205                 <!-- test wiremock -->
206
207                 <dependency>
208                         <groupId>org.springframework.cloud</groupId>
209                         <artifactId>spring-cloud-contract-wiremock</artifactId>
210                         <version>1.0.0.RELEASE</version>
211                         <scope>test</scope>
212                 </dependency>
213
214                 <dependency>
215                         <groupId>org.eclipse.jetty</groupId>
216                         <artifactId>jetty-server</artifactId>
217                         <version>9.4.7.RC0</version>
218                         <scope>test</scope>
219                 </dependency>
220
221                 <dependency>
222                         <groupId>org.eclipse.jetty</groupId>
223                         <artifactId>jetty-servlet</artifactId>
224                         <scope>test</scope>
225                 </dependency>
226
227                 <dependency>
228                         <groupId>org.eclipse.jetty</groupId>
229                         <artifactId>jetty-servlets</artifactId>
230                         <scope>test</scope>
231                 </dependency>
232
233                 <!-- runtime dev -->
234
235                 <dependency>
236                         <groupId>org.springframework.boot</groupId>
237                         <artifactId>spring-boot-devtools</artifactId>
238                         <scope>runtime</scope>
239                 </dependency>
240
241         </dependencies>
242
243         <build>
244                 <plugins>
245                         <plugin>
246                                 <groupId>org.springframework.boot</groupId>
247                                 <artifactId>spring-boot-maven-plugin</artifactId>
248                         </plugin>
249                         <plugin>
250                                 <groupId>org.sonatype.plugins</groupId>
251                                 <artifactId>nexus-staging-maven-plugin</artifactId>
252                                 <version>1.6.7</version>
253                                 <extensions>true</extensions>
254                                 <configuration>
255                                         <nexusUrl>${nexusproxy}</nexusUrl>
256                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
257                                         <serverId>ecomp-staging</serverId>
258                                 </configuration>
259                         </plugin>
260                         <plugin>
261                                 <groupId>org.apache.maven.plugins</groupId>
262                                 <artifactId>maven-site-plugin</artifactId>
263                                 <version>3.6</version>
264                                 <dependencies>
265                                         <dependency>
266                                                 <groupId>org.apache.maven.wagon</groupId>
267                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
268                                                 <version>2.10</version>
269                                         </dependency>
270                                 </dependencies>
271                         </plugin>
272                         <plugin>
273                                 <groupId>com.mycila</groupId>
274                                 <artifactId>license-maven-plugin</artifactId>
275                                 <version>3.0</version>
276                                 <configuration>
277                                         <header>LICENSE.TXT</header>
278                                         <includes>
279                                                 <include>restclient/**</include>
280                                                 <include>src/**</include>
281                                                 <include>pom.xml</include>
282                                         </includes>
283                                         <skipExistingHeaders>true</skipExistingHeaders>
284                                         <skip>false</skip>
285                                         <mapping>
286                                                 <http>SCRIPT_STYLE</http>
287                                         </mapping>
288                                 </configuration>
289                                 <executions>
290                                         <execution>
291                                                 <goals>
292                                                         <!-- Set goal to "format" to auto update license headers -->
293                                                         <goal>check</goal>
294                                                 </goals>
295                                                 <phase>process-sources</phase>
296                                         </execution>
297                                 </executions>
298                         </plugin>
299                 </plugins>
300         </build>
301
302
303
304         <profiles>
305                 <profile>
306                         <id>docker</id>
307                         <build>
308                                 <plugins>
309                                         <plugin>
310                                                 <groupId>io.fabric8</groupId>
311                                                 <artifactId>docker-maven-plugin</artifactId>
312                                                 <version>0.25.0</version>
313                                                 <configuration>
314                                                         <verbose>true</verbose>
315                                                         <apiVersion>1.23</apiVersion>
316                                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
317                                                         <pushRegistry>${docker.push.registry}</pushRegistry>
318                                                         <images>
319                                                                 <image>
320                                                                         <name>onap/externalapi/nbi</name>
321                                                                         <alias>onap/externalapi/nbi</alias>
322                                                                         <build>
323                                                                                 <cleanup>true</cleanup>
324                                                                                 <tags>
325                                                                                         <tag>${docker.tag}</tag>
326                                                                                         <tag>${docker.latest.tag}</tag>
327                                                                                 </tags>
328                                                                                 <dockerFileDir>${project.basedir}</dockerFileDir>
329                                                                                 <args>
330                                                                                         <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
331                                                                                 </args>
332                                                                         </build>
333                                                                 </image>
334                                                         </images>
335                                                 </configuration>
336                                                 <executions>
337                                                         <execution>
338                                                                 <id>clean-images</id>
339                                                                 <phase>pre-clean</phase>
340                                                                 <goals>
341                                                                         <goal>remove</goal>
342                                                                 </goals>
343                                                                 <configuration>
344                                                                         <removeMode>all</removeMode>
345                                                                 </configuration>
346                                                         </execution>
347                                                         <execution>
348                                                                 <id>generate-images</id>
349                                                                 <phase>package</phase>
350                                                                 <goals>
351                                                                         <goal>build</goal>
352                                                                 </goals>
353                                                         </execution>
354                                                         <execution>
355                                                                 <id>push-images</id>
356                                                                 <phase>deploy</phase>
357                                                                 <goals>
358                                                                         <goal>push</goal>
359                                                                 </goals>
360                                                         </execution>
361                                                 </executions>
362                                         </plugin>
363                                 </plugins>
364                         </build>
365                 </profile>
366         </profiles>
367
368 </project>