6c8904d75d6e3e1c1a969216b9fe4dd90180e12d
[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
36     <properties>
37         <aaiCommonVersion>1.2.4</aaiCommonVersion>
38     </properties>
39
40     <dependencyManagement>
41         <dependencies>
42             <dependency>
43                 <!-- Import dependency management from Spring Boot -->
44                 <groupId>org.springframework.boot</groupId>
45                 <artifactId>spring-boot-dependencies</artifactId>
46                 <version>2.0.3.RELEASE</version>
47                 <type>pom</type>
48                 <scope>import</scope>
49             </dependency>
50         </dependencies>
51     </dependencyManagement>
52
53     <dependencies>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-starter-web</artifactId>
57             <exclusions>
58                 <exclusion>
59                     <groupId>org.springframework.boot</groupId>
60                     <artifactId>spring-boot-starter-tomcat</artifactId>
61                 </exclusion>
62             </exclusions>
63         </dependency>
64
65         <dependency>
66             <groupId>org.springframework.boot</groupId>
67             <artifactId>spring-boot-starter-jetty</artifactId>
68         </dependency>
69
70         <dependency>
71             <groupId>org.springframework</groupId>
72             <artifactId>spring-webmvc</artifactId>
73         </dependency>
74
75         <dependency>
76             <groupId>org.apache.commons</groupId>
77             <artifactId>commons-lang3</artifactId>
78         </dependency>
79
80         <dependency>
81             <groupId>org.codehaus.jackson</groupId>
82             <artifactId>jackson-mapper-asl</artifactId>
83             <version>1.4.5</version>
84         </dependency>
85
86         <dependency>
87             <groupId>dom4j</groupId>
88             <artifactId>dom4j</artifactId>
89         </dependency>
90
91         <dependency>
92             <groupId>commons-io</groupId>
93             <artifactId>commons-io</artifactId>
94             <version>2.4</version>
95         </dependency>
96
97         <dependency>
98             <groupId>org.onap.aai.aai-common</groupId>
99             <artifactId>aai-schema-ingest</artifactId>
100             <version>${aaiCommonVersion}</version>
101         </dependency>
102
103         <!-- Common logging framework -->
104         <dependency>
105             <groupId>org.onap.aai.logging-service</groupId>
106             <artifactId>common-logging</artifactId>
107             <version>1.2.2</version>
108         </dependency>
109
110         <dependency>
111             <groupId>org.onap.aai.logging-service</groupId>
112             <artifactId>logging-api</artifactId>
113             <version>1.2.2</version>
114         </dependency>
115
116         <dependency>
117             <groupId>ch.qos.logback</groupId>
118             <artifactId>logback-core</artifactId>
119         </dependency>
120
121         <dependency>
122             <groupId>org.onap.aai.aai-common</groupId>
123             <artifactId>aai-core</artifactId>
124             <version>${aaiCommonVersion}</version>
125             <exclusions>
126                 <exclusion>
127                     <groupId>*</groupId>
128                     <artifactId>*</artifactId>
129                 </exclusion>
130             </exclusions>
131         </dependency>
132
133         <dependency>
134             <groupId>org.eclipse.persistence</groupId>
135             <artifactId>eclipselink</artifactId>
136             <version>2.6.2</version>
137         </dependency>
138
139         <dependency>
140             <groupId>org.glassfish.jersey.core</groupId>
141             <artifactId>jersey-client</artifactId>
142         </dependency>
143
144         <dependency>
145             <groupId>org.glassfish.jersey.inject</groupId>
146             <artifactId>jersey-hk2</artifactId>
147             <version>2.26</version>
148         </dependency>
149
150         <dependency>
151             <groupId>com.google.code.gson</groupId>
152             <artifactId>gson</artifactId>
153         </dependency>
154
155         <dependency>
156             <groupId>org.onap.aai.aai-common</groupId>
157             <artifactId>aai-schema</artifactId>
158             <version>${aaiCommonVersion}</version>
159         </dependency>
160
161         <dependency>
162             <groupId>org.onap.aai.event-client</groupId>
163             <artifactId>event-client-api</artifactId>
164             <version>1.2.2</version>
165         </dependency>
166
167         <dependency>
168             <groupId>org.onap.aai.event-client</groupId>
169             <artifactId>event-client-dmaap</artifactId>
170             <version>1.2.2</version>
171         </dependency>
172
173         <dependency>
174             <groupId>org.onap.aai.event-client</groupId>
175             <artifactId>event-client-kafka</artifactId>
176             <version>1.2.2</version>
177         </dependency>
178
179         <dependency>
180             <groupId>org.apache.httpcomponents</groupId>
181             <artifactId>httpclient</artifactId>
182             <version>4.5.3</version>
183         </dependency>
184
185         <dependency>
186             <groupId>org.apache.httpcomponents</groupId>
187             <artifactId>httpcore</artifactId>
188             <version>4.4.1</version>
189         </dependency>
190
191         <dependency>
192             <groupId>org.json</groupId>
193             <artifactId>json</artifactId>
194             <version>20160212</version>
195         </dependency>
196
197         <dependency>
198             <groupId>org.skyscreamer</groupId>
199             <artifactId>jsonassert</artifactId>
200             <scope>test</scope>
201         </dependency>
202     </dependencies>
203
204
205     <build>
206         <finalName>${project.artifactId}</finalName>
207         <plugins>
208             <plugin>
209                 <groupId>org.springframework.boot</groupId>
210                 <artifactId>spring-boot-maven-plugin</artifactId>
211                 <version>2.0.3.RELEASE</version>
212                 <executions>
213                     <execution>
214                         <goals>
215                             <goal>repackage</goal>
216                         </goals>
217                     </execution>
218                 </executions>
219             </plugin>
220
221             <plugin>
222                 <groupId>org.apache.maven.plugins</groupId>
223                 <artifactId>maven-resources-plugin</artifactId>
224                 <version>2.7</version>
225                 <executions>
226                     <execution>
227                         <id>copy-docker-file</id>
228                         <phase>package</phase>
229                         <goals>
230                             <goal>copy-resources</goal>
231                         </goals>
232                         <configuration>
233                             <outputDirectory>target</outputDirectory>
234                             <overwrite>true</overwrite>
235                             <resources>
236                                 <resource>
237                                     <directory>${basedir}/src/main/docker</directory>
238                                     <filtering>true</filtering>
239                                     <includes>
240                                         <include>**/*</include>
241                                     </includes>
242                                 </resource>
243                                 <resource>
244                                     <directory>${basedir}</directory>
245                                     <filtering>true</filtering>
246                                     <includes>
247                                         <include>bundleconfig-local/**</include>
248                                     </includes>
249                                 </resource>
250                                 <resource>
251                                     <directory>${basedir}/src/main/bin/</directory>
252                                 </resource>
253                             </resources>
254                         </configuration>
255                     </execution>
256                 </executions>
257             </plugin>
258
259             <plugin>
260                 <groupId>org.jacoco</groupId>
261                 <artifactId>jacoco-maven-plugin</artifactId>
262                 <executions>
263                     <execution>
264                         <id>prepare-agent</id>
265                         <goals>
266                             <goal>prepare-agent</goal>
267                         </goals>
268                     </execution>
269                     <execution>
270                         <id>report</id>
271                         <phase>package</phase>
272                         <goals>
273                             <goal>report</goal>
274                         </goals>
275                     </execution>
276                 </executions>
277             </plugin>
278
279             <plugin>
280                 <groupId>org.apache.maven.plugins</groupId>
281                 <artifactId>maven-dependency-plugin</artifactId>
282                 <executions>
283                     <execution>
284                         <id>unpack</id>
285                         <phase>prepare-package</phase>
286                         <goals>
287                             <goal>unpack</goal>
288                         </goals>
289                         <configuration>
290                             <artifactItems>
291                                 <artifactItem>
292                                     <groupId>org.onap.aai.aai-common</groupId>
293                                     <artifactId>aai-schema</artifactId>
294                                     <version>${aaiCommonVersion}</version>
295                                     <type>jar</type>
296                                     <includes>oxm/</includes>
297                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
298                                 </artifactItem>
299                                 <artifactItem>
300                                     <groupId>org.onap.aai.aai-common</groupId>
301                                     <artifactId>aai-core</artifactId>
302                                     <version>${aaiCommonVersion}</version>
303                                     <type>jar</type>
304                                     <includes>dbedgerules/</includes>
305                                     <excludes>**/*.ftlh</excludes>
306                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
307                                 </artifactItem>
308                             </artifactItems>
309                         </configuration>
310                     </execution>
311                 </executions>
312             </plugin>
313
314             <plugin>
315                 <groupId>com.mycila</groupId>
316                 <artifactId>license-maven-plugin</artifactId>
317                 <version>3.0</version>
318                 <configuration>
319                     <header>License.txt</header>
320                     <includes>
321                         <include>src/main/java/**</include>
322                         <include>src/test/java/**</include>
323                         <include>pom.xml</include>
324                     </includes>
325                     <skipExistingHeaders>true</skipExistingHeaders>
326                 </configuration>
327                 <executions>
328                     <execution>
329                         <goals>
330                             <!-- Set goal to "format" to auto update license header. To verify only, set goal to "check". -->
331                             <goal>check</goal>
332                         </goals>
333                         <phase>process-sources</phase>
334                     </execution>
335                 </executions>
336             </plugin>
337         </plugins>
338     </build>
339 </project>