c50da0ad21944f9565bb60244186c0feb0b496dd
[aai/spike.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 Amdocs
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13           http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>1.2.0</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.aai</groupId>
33     <artifactId>spike</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <name>aai-spike</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <aaiCommonVersion>1.2.4</aaiCommonVersion>
40     </properties>
41
42     <dependencyManagement>
43         <dependencies>
44             <dependency>
45                 <!-- Import dependency management from Spring Boot -->
46                 <groupId>org.springframework.boot</groupId>
47                 <artifactId>spring-boot-dependencies</artifactId>
48                 <version>2.1.0.RELEASE</version>
49                 <type>pom</type>
50                 <scope>import</scope>
51             </dependency>
52         </dependencies>
53     </dependencyManagement>
54
55     <dependencies>
56         <dependency>
57             <groupId>org.springframework.boot</groupId>
58             <artifactId>spring-boot-starter-web</artifactId>
59             <exclusions>
60                 <exclusion>
61                     <groupId>org.springframework.boot</groupId>
62                     <artifactId>spring-boot-starter-tomcat</artifactId>
63                 </exclusion>
64             </exclusions>
65         </dependency>
66
67         <dependency>
68             <groupId>org.springframework.boot</groupId>
69             <artifactId>spring-boot-starter-jetty</artifactId>
70         </dependency>
71
72         <dependency>
73             <groupId>org.springframework</groupId>
74             <artifactId>spring-webmvc</artifactId>
75         </dependency>
76
77         <dependency>
78             <groupId>org.apache.commons</groupId>
79             <artifactId>commons-lang3</artifactId>
80         </dependency>
81
82         <dependency>
83             <groupId>org.codehaus.jackson</groupId>
84             <artifactId>jackson-mapper-asl</artifactId>
85             <version>1.4.5</version>
86         </dependency>
87
88         <dependency>
89             <groupId>commons-io</groupId>
90             <artifactId>commons-io</artifactId>
91             <version>2.4</version>
92         </dependency>
93
94         <dependency>
95             <groupId>org.onap.aai.aai-common</groupId>
96             <artifactId>aai-schema-ingest</artifactId>
97             <version>${aaiCommonVersion}</version>
98         </dependency>
99
100         <!-- Common logging framework -->
101         <dependency>
102             <groupId>org.onap.aai.logging-service</groupId>
103             <artifactId>common-logging</artifactId>
104             <version>1.2.2</version>
105         </dependency>
106
107         <dependency>
108             <groupId>org.onap.aai.logging-service</groupId>
109             <artifactId>logging-api</artifactId>
110             <version>1.2.2</version>
111         </dependency>
112
113         <dependency>
114             <groupId>ch.qos.logback</groupId>
115             <artifactId>logback-core</artifactId>
116         </dependency>
117
118         <dependency>
119             <groupId>org.onap.aai.aai-common</groupId>
120             <artifactId>aai-core</artifactId>
121             <version>${aaiCommonVersion}</version>
122             <exclusions>
123                 <exclusion>
124                     <groupId>*</groupId>
125                     <artifactId>*</artifactId>
126                 </exclusion>
127             </exclusions>
128         </dependency>
129
130         <dependency>
131             <groupId>com.google.guava</groupId>
132             <artifactId>guava</artifactId>
133
134         </dependency>
135
136         <dependency>
137             <groupId>org.eclipse.persistence</groupId>
138             <artifactId>eclipselink</artifactId>
139             <version>2.6.2</version>
140         </dependency>
141
142         <dependency>
143             <groupId>org.glassfish.jersey.core</groupId>
144             <artifactId>jersey-client</artifactId>
145         </dependency>
146
147         <dependency>
148             <groupId>org.glassfish.jersey.inject</groupId>
149             <artifactId>jersey-hk2</artifactId>
150             <version>2.26</version>
151         </dependency>
152
153         <dependency>
154             <groupId>com.google.code.gson</groupId>
155             <artifactId>gson</artifactId>
156         </dependency>
157
158         <dependency>
159             <groupId>org.onap.aai.aai-common</groupId>
160             <artifactId>aai-schema</artifactId>
161             <version>${aaiCommonVersion}</version>
162         </dependency>
163
164         <dependency>
165             <groupId>org.onap.aai.event-client</groupId>
166             <artifactId>event-client-api</artifactId>
167             <version>1.3.0</version>
168         </dependency>
169
170         <dependency>
171             <groupId>org.onap.aai.event-client</groupId>
172             <artifactId>event-client-dmaap</artifactId>
173             <version>1.3.0</version>
174         </dependency>
175
176         <dependency>
177             <groupId>org.onap.aai.event-client</groupId>
178             <artifactId>event-client-kafka</artifactId>
179             <version>1.3.0</version>
180         </dependency>
181
182         <dependency>
183             <groupId>org.apache.httpcomponents</groupId>
184             <artifactId>httpclient</artifactId>
185             <version>4.5.3</version>
186         </dependency>
187
188         <dependency>
189             <groupId>org.apache.httpcomponents</groupId>
190             <artifactId>httpcore</artifactId>
191             <version>4.4.1</version>
192         </dependency>
193
194         <dependency>
195             <groupId>org.json</groupId>
196             <artifactId>json</artifactId>
197             <version>20160212</version>
198         </dependency>
199
200         <dependency>
201             <groupId>org.skyscreamer</groupId>
202             <artifactId>jsonassert</artifactId>
203             <scope>test</scope>
204         </dependency>
205     </dependencies>
206
207
208     <build>
209         <finalName>${project.artifactId}</finalName>
210         <plugins>
211             <plugin>
212                 <groupId>org.springframework.boot</groupId>
213                 <artifactId>spring-boot-maven-plugin</artifactId>
214                 <version>2.0.3.RELEASE</version>
215                 <executions>
216                     <execution>
217                         <goals>
218                             <goal>repackage</goal>
219                         </goals>
220                     </execution>
221                 </executions>
222             </plugin>
223
224             <plugin>
225                 <groupId>org.apache.maven.plugins</groupId>
226                 <artifactId>maven-resources-plugin</artifactId>
227                 <version>2.7</version>
228                 <executions>
229                     <execution>
230                         <id>copy-docker-file</id>
231                         <phase>package</phase>
232                         <goals>
233                             <goal>copy-resources</goal>
234                         </goals>
235                         <configuration>
236                             <outputDirectory>target</outputDirectory>
237                             <overwrite>true</overwrite>
238                             <resources>
239                                 <resource>
240                                     <directory>${basedir}/src/main/docker</directory>
241                                     <filtering>true</filtering>
242                                     <includes>
243                                         <include>**/*</include>
244                                     </includes>
245                                 </resource>
246                                 <resource>
247                                     <directory>${basedir}</directory>
248                                     <filtering>true</filtering>
249                                     <includes>
250                                         <include>bundleconfig-local/**</include>
251                                     </includes>
252                                 </resource>
253                                 <resource>
254                                     <directory>${basedir}/src/main/bin/</directory>
255                                 </resource>
256                             </resources>
257                         </configuration>
258                     </execution>
259                 </executions>
260             </plugin>
261
262             <plugin>
263                 <groupId>org.jacoco</groupId>
264                 <artifactId>jacoco-maven-plugin</artifactId>
265                 <executions>
266                     <execution>
267                         <id>prepare-agent</id>
268                         <goals>
269                             <goal>prepare-agent</goal>
270                         </goals>
271                     </execution>
272                     <execution>
273                         <id>report</id>
274                         <phase>package</phase>
275                         <goals>
276                             <goal>report</goal>
277                         </goals>
278                     </execution>
279                 </executions>
280             </plugin>
281
282             <plugin>
283                 <groupId>org.apache.maven.plugins</groupId>
284                 <artifactId>maven-dependency-plugin</artifactId>
285                 <executions>
286                     <execution>
287                         <id>unpack</id>
288                         <phase>prepare-package</phase>
289                         <goals>
290                             <goal>unpack</goal>
291                         </goals>
292                         <configuration>
293                             <artifactItems>
294                                 <artifactItem>
295                                     <groupId>org.onap.aai.aai-common</groupId>
296                                     <artifactId>aai-schema</artifactId>
297                                     <version>${aaiCommonVersion}</version>
298                                     <type>jar</type>
299                                     <includes>oxm/</includes>
300                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
301                                 </artifactItem>
302                                 <artifactItem>
303                                     <groupId>org.onap.aai.aai-common</groupId>
304                                     <artifactId>aai-core</artifactId>
305                                     <version>${aaiCommonVersion}</version>
306                                     <type>jar</type>
307                                     <includes>dbedgerules/</includes>
308                                     <excludes>**/*.ftlh</excludes>
309                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
310                                 </artifactItem>
311                             </artifactItems>
312                         </configuration>
313                     </execution>
314                 </executions>
315             </plugin>
316
317             <plugin>
318                 <groupId>com.spotify</groupId>
319                 <artifactId>docker-maven-plugin</artifactId>
320                 <version>0.4.11</version>
321                 <configuration>
322                     <verbose>true</verbose>
323                     <serverId>docker-hub</serverId>
324                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
325                     <dockerDirectory>${docker.location}</dockerDirectory>
326                     <imageTags>
327                         <imageTag>latest</imageTag>
328                     </imageTags>
329                     <forceTags>true</forceTags>
330                 </configuration>
331             </plugin>
332
333             <plugin>
334                 <groupId>com.mycila</groupId>
335                 <artifactId>license-maven-plugin</artifactId>
336                 <version>3.0</version>
337                 <configuration>
338                     <header>License.txt</header>
339                     <includes>
340                         <include>src/main/java/**</include>
341                         <include>src/test/java/**</include>
342                         <include>pom.xml</include>
343                     </includes>
344                     <skipExistingHeaders>true</skipExistingHeaders>
345                 </configuration>
346                 <executions>
347                     <execution>
348                         <goals>
349                             <!-- Set goal to "format" to auto update license header. To verify only, set goal to "check". -->
350                             <goal>check</goal>
351                         </goals>
352                         <phase>process-sources</phase>
353                     </execution>
354                 </executions>
355             </plugin>
356         </plugins>
357     </build>
358 </project>