Add Apache license header per file
[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.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         <properties>
39                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41                 <nexusproxy>https://nexus.onap.org</nexusproxy>
42                 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
43                 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
44                 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
45                 <java.version>1.8</java.version>
46         </properties>
47
48         <repositories>
49                 <repository>
50                         <id>maven2-repository.java.net</id>
51                         <name>Java.net Repository for Maven</name>
52                         <url>http://download.java.net/maven/2/</url>
53                         <layout>default</layout>
54                 </repository>
55                 <repository>
56                         <id>ecomp-snapshots</id>
57                         <name>Snapshot Repository</name>
58                         <url>${nexusproxy}/${snapshotNexusPath}</url>
59                 </repository>
60                 <repository>
61                         <id>ecomp-staging</id>
62                         <name>Staging Repository</name>
63                         <url>${nexusproxy}/${stagingNexusPath}</url>
64                 </repository>
65         </repositories>
66
67         <distributionManagement>
68                 <repository>
69                         <id>ecomp-releases</id>
70                         <name>Release Repository</name>
71                         <url>${nexusproxy}/${releaseNexusPath}</url>
72                 </repository>
73                 <snapshotRepository>
74                         <id>ecomp-snapshots</id>
75                         <name>Snapshot Repository</name>
76                         <url>${nexusproxy}/${snapshotNexusPath}</url>
77                 </snapshotRepository>
78         </distributionManagement>
79
80         <licenses>
81                 <license>
82                         <name>Apache2</name>
83                         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
84                 </license>
85         </licenses>
86
87         <dependencies>
88
89                 <dependency>
90                         <groupId>org.springframework.boot</groupId>
91                         <artifactId>spring-boot-starter-web</artifactId>
92                 </dependency>
93
94                 <dependency>
95                         <groupId>org.springframework.boot</groupId>
96                         <artifactId>spring-boot-starter-data-jpa</artifactId>
97                 </dependency>
98
99                 <dependency>
100                         <groupId>org.apache.commons</groupId>
101                         <artifactId>commons-io</artifactId>
102                         <version>1.3.2</version>
103                 </dependency>
104
105                 <dependency>
106                         <groupId>commons-beanutils</groupId>
107                         <artifactId>commons-beanutils</artifactId>
108                         <version>1.9.3</version>
109                 </dependency>
110
111                 <dependency>
112                         <groupId>javax.validation</groupId>
113                         <artifactId>validation-api</artifactId>
114                         <version>2.0.1.Final</version>
115                 </dependency>
116
117                 <dependency>
118                         <groupId>org.apache.commons</groupId>
119                         <artifactId>commons-lang3</artifactId>
120                         <version>3.4</version>
121                 </dependency>
122
123                 <!-- mongo -->
124
125                 <dependency>
126                         <groupId>org.springframework.boot</groupId>
127                         <artifactId>spring-boot-starter-data-mongodb</artifactId>
128                 </dependency>
129
130                 <!-- mysql -->
131
132                 <dependency>
133                         <groupId>mysql</groupId>
134                         <artifactId>mysql-connector-java</artifactId>
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>src/main/java/**</include>
265                                                 <include>src/test/java/**</include>
266                                                 <include>pom.xml</include>
267                                         </includes>
268                                         <skipExistingHeaders>true</skipExistingHeaders>
269                                         <skip>false</skip>
270                                 </configuration>
271                                 <executions>
272                                         <execution>
273                                                 <goals>
274                                                         <!-- Set goal to "format" to auto update license headers -->
275                                                         <goal>check</goal>
276                                                 </goals>
277                                                 <phase>process-sources</phase>
278                                         </execution>
279                                 </executions>
280                         </plugin>
281                 </plugins>
282         </build>
283 </project>