Address NexusIQ issues
[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>com.google.guava</groupId>
135             <artifactId>guava</artifactId>
136             <version>25.1-jre</version>
137         </dependency>
138
139         <dependency>
140             <groupId>org.eclipse.persistence</groupId>
141             <artifactId>eclipselink</artifactId>
142             <version>2.6.2</version>
143         </dependency>
144
145         <dependency>
146             <groupId>org.glassfish.jersey.core</groupId>
147             <artifactId>jersey-client</artifactId>
148         </dependency>
149
150         <dependency>
151             <groupId>org.glassfish.jersey.inject</groupId>
152             <artifactId>jersey-hk2</artifactId>
153             <version>2.26</version>
154         </dependency>
155
156         <dependency>
157             <groupId>com.google.code.gson</groupId>
158             <artifactId>gson</artifactId>
159         </dependency>
160
161         <dependency>
162             <groupId>org.onap.aai.aai-common</groupId>
163             <artifactId>aai-schema</artifactId>
164             <version>${aaiCommonVersion}</version>
165         </dependency>
166
167         <dependency>
168             <groupId>org.onap.aai.event-client</groupId>
169             <artifactId>event-client-api</artifactId>
170             <version>1.2.2</version>
171         </dependency>
172
173         <dependency>
174             <groupId>org.onap.aai.event-client</groupId>
175             <artifactId>event-client-dmaap</artifactId>
176             <version>1.2.2</version>
177         </dependency>
178
179         <dependency>
180             <groupId>org.onap.aai.event-client</groupId>
181             <artifactId>event-client-kafka</artifactId>
182             <version>1.2.2</version>
183         </dependency>
184
185         <dependency>
186             <groupId>org.apache.httpcomponents</groupId>
187             <artifactId>httpclient</artifactId>
188             <version>4.5.3</version>
189         </dependency>
190
191         <dependency>
192             <groupId>org.apache.httpcomponents</groupId>
193             <artifactId>httpcore</artifactId>
194             <version>4.4.1</version>
195         </dependency>
196
197         <dependency>
198             <groupId>org.json</groupId>
199             <artifactId>json</artifactId>
200             <version>20160212</version>
201         </dependency>
202
203         <dependency>
204             <groupId>org.skyscreamer</groupId>
205             <artifactId>jsonassert</artifactId>
206             <scope>test</scope>
207         </dependency>
208     </dependencies>
209
210
211     <build>
212         <finalName>${project.artifactId}</finalName>
213         <plugins>
214             <plugin>
215                 <groupId>org.springframework.boot</groupId>
216                 <artifactId>spring-boot-maven-plugin</artifactId>
217                 <version>2.0.3.RELEASE</version>
218                 <executions>
219                     <execution>
220                         <goals>
221                             <goal>repackage</goal>
222                         </goals>
223                     </execution>
224                 </executions>
225             </plugin>
226
227             <plugin>
228                 <groupId>org.apache.maven.plugins</groupId>
229                 <artifactId>maven-resources-plugin</artifactId>
230                 <version>2.7</version>
231                 <executions>
232                     <execution>
233                         <id>copy-docker-file</id>
234                         <phase>package</phase>
235                         <goals>
236                             <goal>copy-resources</goal>
237                         </goals>
238                         <configuration>
239                             <outputDirectory>target</outputDirectory>
240                             <overwrite>true</overwrite>
241                             <resources>
242                                 <resource>
243                                     <directory>${basedir}/src/main/docker</directory>
244                                     <filtering>true</filtering>
245                                     <includes>
246                                         <include>**/*</include>
247                                     </includes>
248                                 </resource>
249                                 <resource>
250                                     <directory>${basedir}</directory>
251                                     <filtering>true</filtering>
252                                     <includes>
253                                         <include>bundleconfig-local/**</include>
254                                     </includes>
255                                 </resource>
256                                 <resource>
257                                     <directory>${basedir}/src/main/bin/</directory>
258                                 </resource>
259                             </resources>
260                         </configuration>
261                     </execution>
262                 </executions>
263             </plugin>
264
265             <plugin>
266                 <groupId>org.jacoco</groupId>
267                 <artifactId>jacoco-maven-plugin</artifactId>
268                 <executions>
269                     <execution>
270                         <id>prepare-agent</id>
271                         <goals>
272                             <goal>prepare-agent</goal>
273                         </goals>
274                     </execution>
275                     <execution>
276                         <id>report</id>
277                         <phase>package</phase>
278                         <goals>
279                             <goal>report</goal>
280                         </goals>
281                     </execution>
282                 </executions>
283             </plugin>
284
285             <plugin>
286                 <groupId>org.apache.maven.plugins</groupId>
287                 <artifactId>maven-dependency-plugin</artifactId>
288                 <executions>
289                     <execution>
290                         <id>unpack</id>
291                         <phase>prepare-package</phase>
292                         <goals>
293                             <goal>unpack</goal>
294                         </goals>
295                         <configuration>
296                             <artifactItems>
297                                 <artifactItem>
298                                     <groupId>org.onap.aai.aai-common</groupId>
299                                     <artifactId>aai-schema</artifactId>
300                                     <version>${aaiCommonVersion}</version>
301                                     <type>jar</type>
302                                     <includes>oxm/</includes>
303                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
304                                 </artifactItem>
305                                 <artifactItem>
306                                     <groupId>org.onap.aai.aai-common</groupId>
307                                     <artifactId>aai-core</artifactId>
308                                     <version>${aaiCommonVersion}</version>
309                                     <type>jar</type>
310                                     <includes>dbedgerules/</includes>
311                                     <excludes>**/*.ftlh</excludes>
312                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
313                                 </artifactItem>
314                             </artifactItems>
315                         </configuration>
316                     </execution>
317                 </executions>
318             </plugin>
319
320             <plugin>
321                 <groupId>com.mycila</groupId>
322                 <artifactId>license-maven-plugin</artifactId>
323                 <version>3.0</version>
324                 <configuration>
325                     <header>License.txt</header>
326                     <includes>
327                         <include>src/main/java/**</include>
328                         <include>src/test/java/**</include>
329                         <include>pom.xml</include>
330                     </includes>
331                     <skipExistingHeaders>true</skipExistingHeaders>
332                 </configuration>
333                 <executions>
334                     <execution>
335                         <goals>
336                             <!-- Set goal to "format" to auto update license header. To verify only, set goal to "check". -->
337                             <goal>check</goal>
338                         </goals>
339                         <phase>process-sources</phase>
340                     </execution>
341                 </executions>
342             </plugin>
343         </plugins>
344     </build>
345 </project>