Add license in missing .http and .properties files
[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                 </dependency>
160
161                 <dependency>
162                         <groupId>com.bazaarvoice.jolt</groupId>
163                         <artifactId>json-utils</artifactId>
164                         <version>0.1.0</version>
165                 </dependency>
166
167                 <!-- test -->
168
169                 <dependency>
170                         <groupId>org.springframework.boot</groupId>
171                         <artifactId>spring-boot-starter-test</artifactId>
172                         <scope>test</scope>
173                 </dependency>
174
175                 <!-- test h2  -->
176
177                 <dependency>
178                         <groupId>com.h2database</groupId>
179                         <artifactId>h2</artifactId>
180                         <scope>test</scope>
181                 </dependency>
182
183                 <dependency>
184                         <groupId>de.flapdoodle.embed</groupId>
185                         <artifactId>de.flapdoodle.embed.mongo</artifactId>
186                         <version>${embedded-mongo.version}</version>
187                         <scope>test</scope>
188                 </dependency>
189
190                 <!-- test wiremock -->
191
192                 <dependency>
193                         <groupId>org.springframework.cloud</groupId>
194                         <artifactId>spring-cloud-contract-wiremock</artifactId>
195                         <version>1.0.0.RELEASE</version>
196                         <scope>test</scope>
197                 </dependency>
198
199                 <dependency>
200                         <groupId>org.eclipse.jetty</groupId>
201                         <artifactId>jetty-server</artifactId>
202                         <version>9.4.7.RC0</version>
203                         <scope>test</scope>
204                 </dependency>
205
206                 <dependency>
207                         <groupId>org.eclipse.jetty</groupId>
208                         <artifactId>jetty-servlet</artifactId>
209                         <scope>test</scope>
210                 </dependency>
211
212                 <dependency>
213                         <groupId>org.eclipse.jetty</groupId>
214                         <artifactId>jetty-servlets</artifactId>
215                         <scope>test</scope>
216                 </dependency>
217
218                 <!-- runtime dev -->
219
220                 <dependency>
221                         <groupId>org.springframework.boot</groupId>
222                         <artifactId>spring-boot-devtools</artifactId>
223                         <scope>runtime</scope>
224                 </dependency>
225
226         </dependencies>
227
228         <build>
229                 <plugins>
230                         <plugin>
231                                 <groupId>org.springframework.boot</groupId>
232                                 <artifactId>spring-boot-maven-plugin</artifactId>
233                         </plugin>
234                         <plugin>
235                                 <groupId>org.sonatype.plugins</groupId>
236                                 <artifactId>nexus-staging-maven-plugin</artifactId>
237                                 <version>1.6.7</version>
238                                 <extensions>true</extensions>
239                                 <configuration>
240                                         <nexusUrl>${nexusproxy}</nexusUrl>
241                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
242                                         <serverId>ecomp-staging</serverId>
243                                 </configuration>
244                         </plugin>
245                         <plugin>
246                                 <groupId>org.apache.maven.plugins</groupId>
247                                 <artifactId>maven-site-plugin</artifactId>
248                                 <version>3.6</version>
249                                 <dependencies>
250                                         <dependency>
251                                                 <groupId>org.apache.maven.wagon</groupId>
252                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
253                                                 <version>2.10</version>
254                                         </dependency>
255                                 </dependencies>
256                         </plugin>
257                         <plugin>
258                                 <groupId>com.mycila</groupId>
259                                 <artifactId>license-maven-plugin</artifactId>
260                                 <version>3.0</version>
261                                 <configuration>
262                                         <header>LICENSE.TXT</header>
263                                         <includes>
264                                                 <include>restclient/**</include>
265                                                 <include>src/**</include>
266                                                 <include>pom.xml</include>
267                                         </includes>
268                                         <skipExistingHeaders>true</skipExistingHeaders>
269                                         <skip>false</skip>
270                                         <mapping>
271                                                 <http>SCRIPT_STYLE</http>
272                                         </mapping>
273                                 </configuration>
274                                 <executions>
275                                         <execution>
276                                                 <goals>
277                                                         <!-- Set goal to "format" to auto update license headers -->
278                                                         <goal>check</goal>
279                                                 </goals>
280                                                 <phase>process-sources</phase>
281                                         </execution>
282                                 </executions>
283                         </plugin>
284                 </plugins>
285         </build>
286
287
288
289         <profiles>
290                 <profile>
291                         <id>docker</id>
292                         <build>
293                                 <plugins>
294                                         <plugin>
295                                                 <groupId>io.fabric8</groupId>
296                                                 <artifactId>docker-maven-plugin</artifactId>
297                                                 <version>0.19.1</version>
298                                                 <configuration>
299                                                         <verbose>true</verbose>
300                                                         <apiVersion>1.23</apiVersion>
301                                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
302                                                         <pushRegistry>${docker.push.registry}</pushRegistry>
303                                                         <images>
304                                                                 <image>
305                                                                         <name>onap/externalapi/nbi</name>
306                                                                         <alias>onap/externalapi/nbi</alias>
307                                                                         <build>
308                                                                                 <cleanup>true</cleanup>
309                                                                                 <tags>
310                                                                                         <tag>${docker.tag}</tag>
311                                                                                         <tag>${docker.latest.tag}</tag>
312                                                                                 </tags>
313                                                                                 <dockerFileDir>${project.basedir}</dockerFileDir>
314                                                                         </build>
315                                                                 </image>
316                                                         </images>
317                                                 </configuration>
318                                                 <executions>
319                                                         <execution>
320                                                                 <id>clean-images</id>
321                                                                 <phase>pre-clean</phase>
322                                                                 <goals>
323                                                                         <goal>remove</goal>
324                                                                 </goals>
325                                                                 <configuration>
326                                                                         <removeAll>true</removeAll>
327                                                                         <image>nbi</image>
328                                                                 </configuration>
329                                                         </execution>
330                                                         <execution>
331                                                                 <id>generate-images</id>
332                                                                 <phase>package</phase>
333                                                                 <goals>
334                                                                         <goal>build</goal>
335                                                                 </goals>
336                                                         </execution>
337                                                         <execution>
338                                                                 <id>push-images</id>
339                                                                 <phase>deploy</phase>
340                                                                 <goals>
341                                                                         <goal>push</goal>
342                                                                 </goals>
343                                                         </execution>
344                                                 </executions>
345                                         </plugin>
346                                 </plugins>
347                         </build>
348                 </profile>
349         </profiles>
350
351 </project>