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