Fixing the docker jenkins job
[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         <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.0.3.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>dom4j</groupId>
90             <artifactId>dom4j</artifactId>
91         </dependency>
92
93         <dependency>
94             <groupId>commons-io</groupId>
95             <artifactId>commons-io</artifactId>
96             <version>2.4</version>
97         </dependency>
98
99         <dependency>
100             <groupId>org.onap.aai.aai-common</groupId>
101             <artifactId>aai-schema-ingest</artifactId>
102             <version>${aaiCommonVersion}</version>
103         </dependency>
104
105         <!-- Common logging framework -->
106         <dependency>
107             <groupId>org.onap.aai.logging-service</groupId>
108             <artifactId>common-logging</artifactId>
109             <version>1.2.2</version>
110         </dependency>
111
112         <dependency>
113             <groupId>org.onap.aai.logging-service</groupId>
114             <artifactId>logging-api</artifactId>
115             <version>1.2.2</version>
116         </dependency>
117
118         <dependency>
119             <groupId>ch.qos.logback</groupId>
120             <artifactId>logback-core</artifactId>
121         </dependency>
122
123         <dependency>
124             <groupId>org.onap.aai.aai-common</groupId>
125             <artifactId>aai-core</artifactId>
126             <version>${aaiCommonVersion}</version>
127             <exclusions>
128                 <exclusion>
129                     <groupId>*</groupId>
130                     <artifactId>*</artifactId>
131                 </exclusion>
132             </exclusions>
133         </dependency>
134
135         <dependency>
136             <groupId>com.google.guava</groupId>
137             <artifactId>guava</artifactId>
138             <version>25.1-jre</version>
139         </dependency>
140
141         <dependency>
142             <groupId>org.eclipse.persistence</groupId>
143             <artifactId>eclipselink</artifactId>
144             <version>2.6.2</version>
145         </dependency>
146
147         <dependency>
148             <groupId>org.glassfish.jersey.core</groupId>
149             <artifactId>jersey-client</artifactId>
150         </dependency>
151
152         <dependency>
153             <groupId>org.glassfish.jersey.inject</groupId>
154             <artifactId>jersey-hk2</artifactId>
155             <version>2.26</version>
156         </dependency>
157
158         <dependency>
159             <groupId>com.google.code.gson</groupId>
160             <artifactId>gson</artifactId>
161         </dependency>
162
163         <dependency>
164             <groupId>org.onap.aai.aai-common</groupId>
165             <artifactId>aai-schema</artifactId>
166             <version>${aaiCommonVersion}</version>
167         </dependency>
168
169         <dependency>
170             <groupId>org.onap.aai.event-client</groupId>
171             <artifactId>event-client-api</artifactId>
172             <version>1.2.2</version>
173         </dependency>
174
175         <dependency>
176             <groupId>org.onap.aai.event-client</groupId>
177             <artifactId>event-client-dmaap</artifactId>
178             <version>1.2.2</version>
179         </dependency>
180
181         <dependency>
182             <groupId>org.onap.aai.event-client</groupId>
183             <artifactId>event-client-kafka</artifactId>
184             <version>1.2.2</version>
185         </dependency>
186
187         <dependency>
188             <groupId>org.apache.httpcomponents</groupId>
189             <artifactId>httpclient</artifactId>
190             <version>4.5.3</version>
191         </dependency>
192
193         <dependency>
194             <groupId>org.apache.httpcomponents</groupId>
195             <artifactId>httpcore</artifactId>
196             <version>4.4.1</version>
197         </dependency>
198
199         <dependency>
200             <groupId>org.json</groupId>
201             <artifactId>json</artifactId>
202             <version>20160212</version>
203         </dependency>
204
205         <dependency>
206             <groupId>org.skyscreamer</groupId>
207             <artifactId>jsonassert</artifactId>
208             <scope>test</scope>
209         </dependency>
210     </dependencies>
211
212
213     <build>
214         <finalName>${project.artifactId}</finalName>
215         <plugins>
216             <plugin>
217                 <groupId>org.springframework.boot</groupId>
218                 <artifactId>spring-boot-maven-plugin</artifactId>
219                 <version>2.0.3.RELEASE</version>
220                 <executions>
221                     <execution>
222                         <goals>
223                             <goal>repackage</goal>
224                         </goals>
225                     </execution>
226                 </executions>
227             </plugin>
228
229             <plugin>
230                 <groupId>org.apache.maven.plugins</groupId>
231                 <artifactId>maven-resources-plugin</artifactId>
232                 <version>2.7</version>
233                 <executions>
234                     <execution>
235                         <id>copy-docker-file</id>
236                         <phase>package</phase>
237                         <goals>
238                             <goal>copy-resources</goal>
239                         </goals>
240                         <configuration>
241                             <outputDirectory>target</outputDirectory>
242                             <overwrite>true</overwrite>
243                             <resources>
244                                 <resource>
245                                     <directory>${basedir}/src/main/docker</directory>
246                                     <filtering>true</filtering>
247                                     <includes>
248                                         <include>**/*</include>
249                                     </includes>
250                                 </resource>
251                                 <resource>
252                                     <directory>${basedir}</directory>
253                                     <filtering>true</filtering>
254                                     <includes>
255                                         <include>bundleconfig-local/**</include>
256                                     </includes>
257                                 </resource>
258                                 <resource>
259                                     <directory>${basedir}/src/main/bin/</directory>
260                                 </resource>
261                             </resources>
262                         </configuration>
263                     </execution>
264                 </executions>
265             </plugin>
266
267             <plugin>
268                 <groupId>org.jacoco</groupId>
269                 <artifactId>jacoco-maven-plugin</artifactId>
270                 <executions>
271                     <execution>
272                         <id>prepare-agent</id>
273                         <goals>
274                             <goal>prepare-agent</goal>
275                         </goals>
276                     </execution>
277                     <execution>
278                         <id>report</id>
279                         <phase>package</phase>
280                         <goals>
281                             <goal>report</goal>
282                         </goals>
283                     </execution>
284                 </executions>
285             </plugin>
286
287             <plugin>
288                 <groupId>org.apache.maven.plugins</groupId>
289                 <artifactId>maven-dependency-plugin</artifactId>
290                 <executions>
291                     <execution>
292                         <id>unpack</id>
293                         <phase>prepare-package</phase>
294                         <goals>
295                             <goal>unpack</goal>
296                         </goals>
297                         <configuration>
298                             <artifactItems>
299                                 <artifactItem>
300                                     <groupId>org.onap.aai.aai-common</groupId>
301                                     <artifactId>aai-schema</artifactId>
302                                     <version>${aaiCommonVersion}</version>
303                                     <type>jar</type>
304                                     <includes>oxm/</includes>
305                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
306                                 </artifactItem>
307                                 <artifactItem>
308                                     <groupId>org.onap.aai.aai-common</groupId>
309                                     <artifactId>aai-core</artifactId>
310                                     <version>${aaiCommonVersion}</version>
311                                     <type>jar</type>
312                                     <includes>dbedgerules/</includes>
313                                     <excludes>**/*.ftlh</excludes>
314                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
315                                 </artifactItem>
316                             </artifactItems>
317                         </configuration>
318                     </execution>
319                 </executions>
320             </plugin>
321
322             <plugin>
323                 <groupId>com.spotify</groupId>
324                 <artifactId>docker-maven-plugin</artifactId>
325                 <version>0.4.11</version>
326                 <configuration>
327                     <verbose>true</verbose>
328                     <serverId>docker-hub</serverId>
329                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
330                     <dockerDirectory>${docker.location}</dockerDirectory>
331                     <imageTags>
332                         <imageTag>latest</imageTag>
333                     </imageTags>
334                     <forceTags>true</forceTags>
335                 </configuration>
336             </plugin>
337
338             <plugin>
339                 <groupId>com.mycila</groupId>
340                 <artifactId>license-maven-plugin</artifactId>
341                 <version>3.0</version>
342                 <configuration>
343                     <header>License.txt</header>
344                     <includes>
345                         <include>src/main/java/**</include>
346                         <include>src/test/java/**</include>
347                         <include>pom.xml</include>
348                     </includes>
349                     <skipExistingHeaders>true</skipExistingHeaders>
350                 </configuration>
351                 <executions>
352                     <execution>
353                         <goals>
354                             <!-- Set goal to "format" to auto update license header. To verify only, set goal to "check". -->
355                             <goal>check</goal>
356                         </goals>
357                         <phase>process-sources</phase>
358                     </execution>
359                 </executions>
360             </plugin>
361         </plugins>
362     </build>
363 </project>