blob: 2f45b7ec2c2523b0760a0c028918349ad7fa67ec [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>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000029 <version>1.2.1</version>
30 <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>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000036 <version>1.4.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>
jimmyd51609d2018-12-17 13:51:13 -050054 <spring-boot.version>1.5.18.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>
Steve Smokowskief768a72017-02-09 15:43:35 -050062 </properties>
Steve Smokowskief768a72017-02-09 15:43:35 -050063
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000064 <distributionManagement>
65 <repository>
66 <id>ecomp-releases</id>
67 <name>ECOMP Release Repository</name>
68 <url>${nexusproxy}/content/repositories/releases/</url>
69 </repository>
70 <snapshotRepository>
71 <id>ecomp-snapshots</id>
72 <name>ECOMP Snapshot Repository</name>
73 <url>${nexusproxy}/content/repositories/snapshots/</url>
74 </snapshotRepository>
75 </distributionManagement>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010076
Steve Smokowskief768a72017-02-09 15:43:35 -050077 <dependencies>
Steve Smokowskief768a72017-02-09 15:43:35 -050078 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010079 <groupId>org.springframework.boot</groupId>
jimmyf3b10772018-12-20 15:18:47 -050080 <artifactId>spring-boot-starter-jetty</artifactId>
81 </dependency>
82 <dependency>
83 <groupId>org.springframework.boot</groupId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010084 <artifactId>spring-boot-starter-web</artifactId>
jimmyf3b10772018-12-20 15:18:47 -050085 <exclusions>
86 <exclusion>
87 <groupId>org.springframework.boot</groupId>
88 <artifactId>spring-boot-starter-tomcat</artifactId>
89 </exclusion>
90 </exclusions>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010091 </dependency>
92 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010093 <groupId>org.onap.aai</groupId>
94 <artifactId>babel</artifactId>
95 <version>${babel.version}</version>
96 <classifier>client</classifier>
97 <exclusions>
98 <exclusion>
99 <groupId>*</groupId>
100 <artifactId>*</artifactId>
101 </exclusion>
102 </exclusions>
103 </dependency>
104 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100105 <groupId>org.glassfish.jersey.core</groupId>
106 <artifactId>jersey-common</artifactId>
107 <scope>test</scope>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100108 </dependency>
109 <dependency>
110 <groupId>org.onap.aai</groupId>
111 <artifactId>rest-client</artifactId>
112 <version>${aai.rest.client.version}</version>
113 </dependency>
114 <dependency>
115 <groupId>com.google.code.gson</groupId>
116 <artifactId>gson</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100117 </dependency>
118
119 <!-- Test dependencies -->
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100120 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500121 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100122 <groupId>com.mikesamuel</groupId>
123 <artifactId>json-sanitizer</artifactId>
124 <version>1.2.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500125 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100126
Steve Smokowskief768a72017-02-09 15:43:35 -0500127 <!-- Common logging framework -->
128 <dependency>
Arul.Nambiaf1121f2017-09-21 10:39:37 -0400129 <groupId>org.onap.aai.logging-service</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500130 <artifactId>common-logging</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100131 <version>1.2.2</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500132 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500133 <dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400134 <groupId>ch.qos.logback</groupId>
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100135 <artifactId>logback-classic</artifactId>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000136 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$ -->
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100137 </dependency>
138 <dependency>
139 <groupId>ch.qos.logback</groupId>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400140 <artifactId>logback-core</artifactId>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000141 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$ -->
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400142 </dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400143 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100144 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000145 <artifactId>sdc-distribution-client</artifactId>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +0100146 <version>${sdc-distribution-client.version}</version>
Lee, Tian (tl5884)952a19d2017-08-18 16:45:23 +0100147 </dependency>
148 <dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500149 <groupId>org.json</groupId>
150 <artifactId>json</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100151 <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500152 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500153 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000154 <groupId>org.eclipse.jetty</groupId>
155 <artifactId>jetty-security</artifactId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500156 </dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000157 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000158 <groupId>jline</groupId>
159 <artifactId>jline</artifactId>
160 <version>2.12.1</version>
161 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100162 <dependency>
mark.j.leonard7e6fe8c2018-06-07 16:45:38 +0100163 <groupId>org.apache.commons</groupId>
164 <artifactId>commons-compress</artifactId>
165 <version>${commons-compress.version}</version>
166 </dependency>
167 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100168 <groupId>commons-io</groupId>
169 <artifactId>commons-io</artifactId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100170 <version>2.4</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100171 </dependency>
172 <dependency>
173 <groupId>org.apache.commons</groupId>
174 <artifactId>commons-text</artifactId>
175 <version>${apache.commons-text.version}</version>
176 </dependency>
Gary Wu1c792412018-08-24 15:15:28 -0700177
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000178 <!-- Test dependencies -->
179 <dependency>
180 <groupId>junit</groupId>
181 <artifactId>junit</artifactId>
182 <scope>test</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.hamcrest</groupId>
186 <artifactId>hamcrest-all</artifactId>
187 <version>${hamcrest-all.version}</version>
188 <scope>test</scope>
189 </dependency>
190 <dependency>
191 <groupId>org.mockito</groupId>
192 <artifactId>mockito-core</artifactId>
193 <scope>test</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.springframework.boot</groupId>
197 <artifactId>spring-boot-starter-test</artifactId>
198 <scope>test</scope>
199 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500200 </dependencies>
Steve Smokowskie6908712017-02-10 16:08:20 -0500201
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000202 <!-- Plugins and repositories -->
203 <pluginRepositories>
204 <pluginRepository>
205 <id>central</id>
206 <url>http://repo1.maven.org/maven2</url>
207 </pluginRepository>
208 <pluginRepository>
209 <id>EvoSuite</id>
210 <name>EvoSuite Repository</name>
211 <url>http://www.evosuite.org/m2</url>
212 </pluginRepository>
213 </pluginRepositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000214
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000215 <repositories>
216 <repository>
217 <id>central</id>
218 <name>Maven 2 repository 2</name>
219 <url>http://repo2.maven.org/maven2/</url>
220 </repository>
221 <repository>
222 <id>ecomp-releases</id>
223 <name>ECOMP Release Repository</name>
224 <url>${nexusproxy}/content/repositories/releases/</url>
225 </repository>
226 <repository>
227 <id>ecomp-snapshots</id>
228 <name>ECOMP Snapshot Repository</name>
229 <url>${nexusproxy}/content/repositories/snapshots/</url>
230 </repository>
231 <repository>
232 <id>ecomp-staging</id>
233 <name>ECOMP Staging Repository</name>
234 <url>${nexusproxy}/content/repositories/staging/</url>
235 </repository>
236 </repositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000237
Steve Smokowskief768a72017-02-09 15:43:35 -0500238 <build>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100239 <finalName>model-loader</finalName>
Steve Smokowskief768a72017-02-09 15:43:35 -0500240 <plugins>
241 <plugin>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100242 <groupId>org.springframework.boot</groupId>
243 <artifactId>spring-boot-maven-plugin</artifactId>
244 <version>${spring-boot.version}</version>
245 <configuration>
246 <executable>true</executable>
247 </configuration>
248 <executions>
249 <execution>
250 <goals>
251 <goal>repackage</goal>
252 </goals>
253 </execution>
254 </executions>
255 </plugin>
256 <plugin>
Steve Smokowskief768a72017-02-09 15:43:35 -0500257 <groupId>org.apache.maven.plugins</groupId>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000258 <artifactId>maven-resources-plugin</artifactId>
259 <version>2.7</version>
260 <executions>
261 <execution>
262 <id>copy-docker-file</id>
263 <phase>package</phase>
264 <goals>
265 <goal>copy-resources</goal>
266 </goals>
267 <configuration>
268 <outputDirectory>target</outputDirectory>
269 <overwrite>true</overwrite>
270 <resources>
271 <resource>
272 <directory>${basedir}/src/main/docker</directory>
273 <filtering>true</filtering>
274 <includes>
275 <include>**/*</include>
276 </includes>
277 </resource>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400278 <resource>
279 <directory>${basedir}/src/main/bin/</directory>
280 </resource>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000281 </resources>
282 </configuration>
283 </execution>
284 </executions>
285 </plugin>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000286 <plugin>
287 <groupId>com.mycila</groupId>
288 <artifactId>license-maven-plugin</artifactId>
289 <version>3.0</version>
290 <configuration>
291 <header>License.txt</header>
292 <includes>
293 <include>src/main/java/**</include>
294 <include>src/test/java/**</include>
295 <include>version/properties</include>
296 <include>pom.xml</include>
297 </includes>
298 <skipExistingHeaders>true</skipExistingHeaders>
299 </configuration>
300 <executions>
301 <execution>
302 <goals>
303 <!-- Set goal to "format" to auto update license headers -->
304 <goal>check</goal>
305 </goals>
306 <phase>process-sources</phase>
307 </execution>
308 </executions>
309 </plugin>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000310 <plugin>
311 <groupId>com.spotify</groupId>
312 <artifactId>docker-maven-plugin</artifactId>
313 <version>0.4.11</version>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000314 <configuration>
Venkata Harish K Kajur61293a32017-02-20 23:58:13 +0000315 <verbose>true</verbose>
316 <serverId>docker-hub</serverId>
Blackwell, Ian (ib733q)30cffeb2018-04-04 13:04:04 +0100317 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000318 <dockerDirectory>${docker.location}</dockerDirectory>
319 <imageTags>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000320 <imageTag>latest</imageTag>
321 </imageTags>
322 <forceTags>true</forceTags>
323 </configuration>
324 </plugin>
325 <plugin>
326 <groupId>org.apache.maven.plugins</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000327 <artifactId>maven-deploy-plugin</artifactId>
328 <configuration>
329 <skip>true</skip>
330 </configuration>
331 </plugin>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000332 </plugins>
Steve Smokowskief768a72017-02-09 15:43:35 -0500333 </build>
Steve Smokowskief768a72017-02-09 15:43:35 -0500334</project>