blob: 8dc1cd1e308968340fbfd9ce9ae1e36d01680016 [file] [log] [blame]
mark.j.leonard6e4f04a2018-04-26 16:53:12 +01001<?xml version="1.0" encoding="UTF-8"?>
Steve Smokowskief768a72017-02-09 15:43:35 -05002<!--
mark.j.leonard6e4f04a2018-04-26 16:53:12 +01003 ============LICENSE_START=======================================================
4 org.onap.aai
5 ================================================================================
6 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7 Copyright © 2017-2018 European Software Marketing Ltd.
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
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010012
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010013 http://www.apache.org/licenses/LICENSE-2.0
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010014
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010015 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-->
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Steve Smokowskief768a72017-02-09 15:43:35 -050024 <modelVersion>4.0.0</modelVersion>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000025
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040026 <parent>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010027 <groupId>org.onap.oparent</groupId>
28 <artifactId>oparent</artifactId>
Jimmy Forsyth3481baf2019-07-03 14:20:04 -040029 <version>2.0.0</version>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000030 <relativePath />
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040031 </parent>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000032
Arul.Nambi059f42e2017-09-13 15:13:29 -040033 <groupId>org.onap.aai.model-loader</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -050034 <artifactId>model-loader</artifactId>
Gildas Lanilis5cb976c2018-09-06 11:21:12 -070035 <name>aai-model-loader</name>
Jimmy Forsythbab0c4c2019-06-19 16:39:59 -040036 <version>1.5.0-SNAPSHOT</version>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000037
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010038 <dependencyManagement>
39 <dependencies>
40 <dependency>
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-dependencies</artifactId>
43 <version>${spring-boot.version}</version>
44 <type>pom</type>
45 <scope>import</scope>
46 </dependency>
47 </dependencies>
48 </dependencyManagement>
49
Steve Smokowskief768a72017-02-09 15:43:35 -050050 <properties>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010051 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
Blackwell, Ian (ib733q)65757e72018-04-05 11:52:58 +010052 <nexusproxy>https://nexus.onap.org</nexusproxy>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010053 <docker.location>${basedir}/target</docker.location>
Lee, Tian (tl5884)378fac32019-08-07 16:53:09 +010054 <spring-boot.version>2.1.6.RELEASE</spring-boot.version>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010055 <apache.commons-text.version>1.1</apache.commons-text.version>
Lee, Tian (tl5884)bab607d2018-09-19 13:53:23 +010056 <commons-compress.version>1.18</commons-compress.version>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010057 <hamcrest-all.version>1.3</hamcrest-all.version>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000058 <babel.version>1.3.1</babel.version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010059 <aai.rest.client.version>1.2.1</aai.rest.client.version>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +010060 <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
mark.j.leonardddecfbc2018-05-01 11:57:53 +010061 <logback.version>1.2.3</logback.version>
Dmitry Puzikov86359a22019-04-16 16:52:05 +020062 <!-- docker related properties -->
63 <docker.fabric.version>0.28.0</docker.fabric.version>
64 <aai.docker.version>1.0.0</aai.docker.version>
65 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
66 <aai.docker.namespace>onap</aai.docker.namespace>
67 <aai.base.image>alpine</aai.base.image>
68 <aai.base.image.version>1.6.0</aai.base.image.version>
69 <!-- This will be used for the docker images as the default format of maven build has issues -->
70 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Steve Smokowskief768a72017-02-09 15:43:35 -050071 </properties>
Steve Smokowskief768a72017-02-09 15:43:35 -050072
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000073 <distributionManagement>
74 <repository>
75 <id>ecomp-releases</id>
76 <name>ECOMP Release Repository</name>
77 <url>${nexusproxy}/content/repositories/releases/</url>
78 </repository>
79 <snapshotRepository>
80 <id>ecomp-snapshots</id>
81 <name>ECOMP Snapshot Repository</name>
82 <url>${nexusproxy}/content/repositories/snapshots/</url>
83 </snapshotRepository>
84 </distributionManagement>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010085
Dmitry Puzikov86359a22019-04-16 16:52:05 +020086 <profiles>
87 <!-- Docker profile to be used for building docker image and pushing to nexus -->
88 <profile>
89 <id>docker</id>
90 <build>
91 <plugins>
92 <plugin>
93 <groupId>org.codehaus.mojo</groupId>
94 <artifactId>build-helper-maven-plugin</artifactId>
95 <version>3.0.0</version>
96 <executions>
97 <execution>
98 <phase>pre-clean</phase>
99 <id>parse-version</id>
100 <goals>
101 <goal>parse-version</goal>
102 </goals>
103 </execution>
104 </executions>
105 </plugin>
106 <plugin>
107 <groupId>org.codehaus.groovy.maven</groupId>
108 <artifactId>gmaven-plugin</artifactId>
109 <version>1.0</version>
110 <executions>
111 <execution>
112 <phase>pre-clean</phase>
113 <goals>
114 <goal>execute</goal>
115 </goals>
116 <configuration>
117 <source>
118 def userAaiBaseImage = session.userProperties['aai.base.image'];
119 def userAaiCommonVersion = session.userProperties['aai.base.image.version'];
120 if (userAaiCommonVersion != null) {
121 project.properties['aai.base.image.version'] = userAaiCommonVersion;
122 }
123 if (userAaiBaseImage != null) {
124 project.properties['aai.base.image'] = userAaiBaseImage;
125 }
126 log.info 'Base image flavour: ' + project.properties['aai.base.image'];
127 log.info 'Base image version: ' + project.properties['aai.base.image.version'];
128 </source>
129 </configuration>
130 </execution>
131 </executions>
132 </plugin>
133 <plugin>
134 <groupId>io.fabric8</groupId>
135 <artifactId>docker-maven-plugin</artifactId>
136 <version>${docker.fabric.version}</version>
137 <configuration>
138 <verbose>true</verbose>
139 <apiVersion>1.23</apiVersion>
140 <images>
141 <image>
142 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
143 <build>
144 <filter>@</filter>
145 <tags>
146 <tag>latest</tag>
147 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
148 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
149 </tags>
150 <cleanup>try</cleanup>
151 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
152 <assembly>
153 <inline>
154 <fileSets>
155 <fileSet>
156 <directory>${aai.build.directory}</directory>
157 <outputDirectory>/${project.artifactId}</outputDirectory>
158 </fileSet>
159 </fileSets>
160 </inline>
161 </assembly>
162 </build>
163 </image>
164 </images>
165 </configuration>
166 <executions>
167 <execution>
168 <id>clean-images</id>
169 <phase>pre-clean</phase>
170 <goals>
171 <goal>remove</goal>
172 </goals>
173 <configuration>
174 <removeAll>true</removeAll>
175 </configuration>
176 </execution>
177 <execution>
178 <id>generate-images</id>
179 <phase>package</phase>
180 <goals>
181 <goal>build</goal>
182 </goals>
183 </execution>
184 <execution>
185 <id>push-images</id>
186 <phase>deploy</phase>
187 <goals>
188 <goal>push</goal>
189 </goals>
190 </execution>
191 </executions>
192 </plugin>
193 </plugins>
194 </build>
195 </profile>
196 </profiles>
197
Steve Smokowskief768a72017-02-09 15:43:35 -0500198 <dependencies>
Steve Smokowskief768a72017-02-09 15:43:35 -0500199 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100200 <groupId>org.springframework.boot</groupId>
jimmyf3b10772018-12-20 15:18:47 -0500201 <artifactId>spring-boot-starter-jetty</artifactId>
202 </dependency>
203 <dependency>
204 <groupId>org.springframework.boot</groupId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100205 <artifactId>spring-boot-starter-web</artifactId>
jimmyf3b10772018-12-20 15:18:47 -0500206 <exclusions>
207 <exclusion>
208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-starter-tomcat</artifactId>
210 </exclusion>
211 </exclusions>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100212 </dependency>
213 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100214 <groupId>org.onap.aai</groupId>
215 <artifactId>babel</artifactId>
216 <version>${babel.version}</version>
217 <classifier>client</classifier>
218 <exclusions>
219 <exclusion>
220 <groupId>*</groupId>
221 <artifactId>*</artifactId>
222 </exclusion>
223 </exclusions>
224 </dependency>
225 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100226 <groupId>org.glassfish.jersey.core</groupId>
227 <artifactId>jersey-common</artifactId>
228 <scope>test</scope>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100229 </dependency>
230 <dependency>
231 <groupId>org.onap.aai</groupId>
232 <artifactId>rest-client</artifactId>
233 <version>${aai.rest.client.version}</version>
234 </dependency>
235 <dependency>
236 <groupId>com.google.code.gson</groupId>
237 <artifactId>gson</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100238 </dependency>
239
240 <!-- Test dependencies -->
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100241 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500242 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100243 <groupId>com.mikesamuel</groupId>
244 <artifactId>json-sanitizer</artifactId>
245 <version>1.2.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500246 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100247
Steve Smokowskief768a72017-02-09 15:43:35 -0500248 <!-- Common logging framework -->
249 <dependency>
Arul.Nambiaf1121f2017-09-21 10:39:37 -0400250 <groupId>org.onap.aai.logging-service</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500251 <artifactId>common-logging</artifactId>
Jimmy Forsythbab0c4c2019-06-19 16:39:59 -0400252 <version>1.5.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500253 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500254 <dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400255 <groupId>ch.qos.logback</groupId>
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100256 <artifactId>logback-classic</artifactId>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000257 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$ -->
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100258 </dependency>
259 <dependency>
260 <groupId>ch.qos.logback</groupId>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400261 <artifactId>logback-core</artifactId>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000262 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$ -->
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400263 </dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400264 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100265 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000266 <artifactId>sdc-distribution-client</artifactId>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +0100267 <version>${sdc-distribution-client.version}</version>
Lee, Tian (tl5884)952a19d2017-08-18 16:45:23 +0100268 </dependency>
269 <dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500270 <groupId>org.json</groupId>
271 <artifactId>json</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100272 <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500273 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500274 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000275 <groupId>org.eclipse.jetty</groupId>
276 <artifactId>jetty-security</artifactId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500277 </dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000278 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000279 <groupId>jline</groupId>
280 <artifactId>jline</artifactId>
281 <version>2.12.1</version>
282 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100283 <dependency>
mark.j.leonard7e6fe8c2018-06-07 16:45:38 +0100284 <groupId>org.apache.commons</groupId>
285 <artifactId>commons-compress</artifactId>
286 <version>${commons-compress.version}</version>
287 </dependency>
288 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100289 <groupId>commons-io</groupId>
290 <artifactId>commons-io</artifactId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100291 <version>2.4</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100292 </dependency>
293 <dependency>
294 <groupId>org.apache.commons</groupId>
295 <artifactId>commons-text</artifactId>
296 <version>${apache.commons-text.version}</version>
297 </dependency>
Gary Wu1c792412018-08-24 15:15:28 -0700298
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000299 <!-- Test dependencies -->
300 <dependency>
301 <groupId>junit</groupId>
302 <artifactId>junit</artifactId>
303 <scope>test</scope>
304 </dependency>
305 <dependency>
306 <groupId>org.hamcrest</groupId>
307 <artifactId>hamcrest-all</artifactId>
308 <version>${hamcrest-all.version}</version>
309 <scope>test</scope>
310 </dependency>
311 <dependency>
312 <groupId>org.mockito</groupId>
313 <artifactId>mockito-core</artifactId>
314 <scope>test</scope>
315 </dependency>
316 <dependency>
317 <groupId>org.springframework.boot</groupId>
318 <artifactId>spring-boot-starter-test</artifactId>
319 <scope>test</scope>
320 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500321 </dependencies>
Steve Smokowskie6908712017-02-10 16:08:20 -0500322
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000323 <!-- Plugins and repositories -->
324 <pluginRepositories>
325 <pluginRepository>
326 <id>central</id>
327 <url>http://repo1.maven.org/maven2</url>
328 </pluginRepository>
329 <pluginRepository>
330 <id>EvoSuite</id>
331 <name>EvoSuite Repository</name>
332 <url>http://www.evosuite.org/m2</url>
333 </pluginRepository>
334 </pluginRepositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000335
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000336 <repositories>
337 <repository>
338 <id>central</id>
339 <name>Maven 2 repository 2</name>
340 <url>http://repo2.maven.org/maven2/</url>
341 </repository>
342 <repository>
343 <id>ecomp-releases</id>
344 <name>ECOMP Release Repository</name>
345 <url>${nexusproxy}/content/repositories/releases/</url>
346 </repository>
347 <repository>
348 <id>ecomp-snapshots</id>
349 <name>ECOMP Snapshot Repository</name>
350 <url>${nexusproxy}/content/repositories/snapshots/</url>
351 </repository>
352 <repository>
353 <id>ecomp-staging</id>
354 <name>ECOMP Staging Repository</name>
355 <url>${nexusproxy}/content/repositories/staging/</url>
356 </repository>
357 </repositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000358
Steve Smokowskief768a72017-02-09 15:43:35 -0500359 <build>
360 <plugins>
361 <plugin>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100362 <groupId>org.springframework.boot</groupId>
363 <artifactId>spring-boot-maven-plugin</artifactId>
364 <version>${spring-boot.version}</version>
365 <configuration>
366 <executable>true</executable>
367 </configuration>
368 <executions>
369 <execution>
370 <goals>
371 <goal>repackage</goal>
372 </goals>
373 </execution>
374 </executions>
375 </plugin>
376 <plugin>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000377 <groupId>com.mycila</groupId>
378 <artifactId>license-maven-plugin</artifactId>
379 <version>3.0</version>
380 <configuration>
381 <header>License.txt</header>
382 <includes>
383 <include>src/main/java/**</include>
384 <include>src/test/java/**</include>
385 <include>version/properties</include>
386 <include>pom.xml</include>
387 </includes>
388 <skipExistingHeaders>true</skipExistingHeaders>
389 </configuration>
390 <executions>
391 <execution>
392 <goals>
393 <!-- Set goal to "format" to auto update license headers -->
394 <goal>check</goal>
395 </goals>
396 <phase>process-sources</phase>
397 </execution>
398 </executions>
399 </plugin>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000400 <plugin>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-deploy-plugin</artifactId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000403 <configuration>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200404 <skip>true</skip>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000405 </configuration>
406 </plugin>
407 <plugin>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200408 <artifactId>maven-assembly-plugin</artifactId>
409 <configuration>
410 <descriptors>
411 <descriptor>src/main/assembly/descriptor.xml</descriptor>
412 </descriptors>
413 </configuration>
414 <executions>
415 <execution>
416 <id>make-assembly</id>
417 <phase>package</phase>
418 <goals>
419 <goal>single</goal>
420 </goals>
421 </execution>
422 </executions>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000423 </plugin>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000424 </plugins>
Steve Smokowskief768a72017-02-09 15:43:35 -0500425 </build>
Steve Smokowskief768a72017-02-09 15:43:35 -0500426</project>