blob: ae5e7cd8df3a8686950a8d37717d6ec6643e7429 [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-->
Steve Smokowskief768a72017-02-09 15:43:35 -050022<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">
24 <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>
29 <version>1.1.0</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>
Jimmy Forsyth543c8a02018-05-23 13:58:17 -040035 <version>1.3.0-SNAPSHOT</version>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000036
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010037 <dependencyManagement>
38 <dependencies>
39 <dependency>
40 <groupId>org.springframework.boot</groupId>
41 <artifactId>spring-boot-dependencies</artifactId>
42 <version>${spring-boot.version}</version>
43 <type>pom</type>
44 <scope>import</scope>
45 </dependency>
46 </dependencies>
47 </dependencyManagement>
48
Steve Smokowskief768a72017-02-09 15:43:35 -050049 <properties>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010050 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
Blackwell, Ian (ib733q)65757e72018-04-05 11:52:58 +010051 <nexusproxy>https://nexus.onap.org</nexusproxy>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010052 <docker.location>${basedir}/target</docker.location>
53 <spring-boot.version>1.5.12.RELEASE</spring-boot.version>
54 <apache.commons-text.version>1.1</apache.commons-text.version>
55 <hamcrest-all.version>1.3</hamcrest-all.version>
mark.j.leonardf979f0c2018-05-01 10:59:43 +010056 <babel.version>1.2.0</babel.version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010057 <aai.rest.client.version>1.2.1</aai.rest.client.version>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +010058 <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
mark.j.leonardddecfbc2018-05-01 11:57:53 +010059 <logback.version>1.2.3</logback.version>
Steve Smokowskief768a72017-02-09 15:43:35 -050060 </properties>
Steve Smokowskief768a72017-02-09 15:43:35 -050061
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010062 <distributionManagement>
63 <repository>
64 <id>ecomp-releases</id>
65 <name>ECOMP Release Repository</name>
66 <url>${nexusproxy}/content/repositories/releases/</url>
67 </repository>
68 <snapshotRepository>
69 <id>ecomp-snapshots</id>
70 <name>ECOMP Snapshot Repository</name>
71 <url>${nexusproxy}/content/repositories/snapshots/</url>
72 </snapshotRepository>
73 </distributionManagement>
74
Steve Smokowskief768a72017-02-09 15:43:35 -050075 <dependencies>
Steve Smokowskief768a72017-02-09 15:43:35 -050076 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010077 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-starter-web</artifactId>
79 </dependency>
80 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010081 <groupId>org.onap.aai</groupId>
82 <artifactId>babel</artifactId>
83 <version>${babel.version}</version>
84 <classifier>client</classifier>
85 <exclusions>
86 <exclusion>
87 <groupId>*</groupId>
88 <artifactId>*</artifactId>
89 </exclusion>
90 </exclusions>
91 </dependency>
92 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010093 <groupId>org.glassfish.jersey.core</groupId>
94 <artifactId>jersey-common</artifactId>
95 <scope>test</scope>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010096 </dependency>
97 <dependency>
98 <groupId>org.onap.aai</groupId>
99 <artifactId>rest-client</artifactId>
100 <version>${aai.rest.client.version}</version>
101 </dependency>
102 <dependency>
103 <groupId>com.google.code.gson</groupId>
104 <artifactId>gson</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100105 </dependency>
106
107 <!-- Test dependencies -->
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100108 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500109 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100110 <groupId>com.mikesamuel</groupId>
111 <artifactId>json-sanitizer</artifactId>
112 <version>1.2.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500113 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100114
Steve Smokowskief768a72017-02-09 15:43:35 -0500115 <!-- Common logging framework -->
116 <dependency>
Arul.Nambiaf1121f2017-09-21 10:39:37 -0400117 <groupId>org.onap.aai.logging-service</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500118 <artifactId>common-logging</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100119 <version>1.2.2</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500120 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500121 <dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400122 <groupId>ch.qos.logback</groupId>
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100123 <artifactId>logback-classic</artifactId>
124 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
125 </dependency>
126 <dependency>
127 <groupId>ch.qos.logback</groupId>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400128 <artifactId>logback-core</artifactId>
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100129 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400130 </dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400131 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100132 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000133 <artifactId>sdc-distribution-client</artifactId>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +0100134 <version>${sdc-distribution-client.version}</version>
Lee, Tian (tl5884)952a19d2017-08-18 16:45:23 +0100135 </dependency>
136 <dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500137 <groupId>org.json</groupId>
138 <artifactId>json</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100139 <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500140 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500141 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000142 <groupId>org.eclipse.jetty</groupId>
143 <artifactId>jetty-security</artifactId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500144 </dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000145 <dependency>
146 <groupId>org.springframework</groupId>
147 <artifactId>spring-webmvc</artifactId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000148 </dependency>
149 <dependency>
150 <groupId>jline</groupId>
151 <artifactId>jline</artifactId>
152 <version>2.12.1</version>
153 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100154 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100155 <groupId>commons-io</groupId>
156 <artifactId>commons-io</artifactId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100157 <version>2.4</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100158 </dependency>
159 <dependency>
160 <groupId>org.apache.commons</groupId>
161 <artifactId>commons-text</artifactId>
162 <version>${apache.commons-text.version}</version>
163 </dependency>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +0100164
165 <!-- Test dependencies -->
166 <dependency>
167 <groupId>junit</groupId>
168 <artifactId>junit</artifactId>
169 <scope>test</scope>
170 </dependency>
171 <dependency>
172 <groupId>org.hamcrest</groupId>
173 <artifactId>hamcrest-all</artifactId>
174 <version>${hamcrest-all.version}</version>
175 <scope>test</scope>
176 </dependency>
177 <dependency>
178 <groupId>org.mockito</groupId>
179 <artifactId>mockito-core</artifactId>
180 <scope>test</scope>
181 </dependency>
182 <dependency>
183 <groupId>org.springframework.boot</groupId>
184 <artifactId>spring-boot-starter-test</artifactId>
185 <scope>test</scope>
186 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500187 </dependencies>
Steve Smokowskie6908712017-02-10 16:08:20 -0500188
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100189 <!-- Plugins and repositories -->
190 <pluginRepositories>
191 <pluginRepository>
192 <id>central</id>
193 <url>http://repo1.maven.org/maven2</url>
194 </pluginRepository>
195 <pluginRepository>
196 <id>EvoSuite</id>
197 <name>EvoSuite Repository</name>
198 <url>http://www.evosuite.org/m2</url>
199 </pluginRepository>
200 </pluginRepositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000201
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100202 <repositories>
203 <repository>
204 <id>central</id>
205 <name>Maven 2 repository 2</name>
206 <url>http://repo2.maven.org/maven2/</url>
207 </repository>
208 <repository>
209 <id>ecomp-releases</id>
210 <name>ECOMP Release Repository</name>
211 <url>${nexusproxy}/content/repositories/releases/</url>
212 </repository>
213 <repository>
214 <id>ecomp-snapshots</id>
215 <name>ECOMP Snapshot Repository</name>
216 <url>${nexusproxy}/content/repositories/snapshots/</url>
217 </repository>
218 <repository>
219 <id>ecomp-staging</id>
220 <name>ECOMP Staging Repository</name>
221 <url>${nexusproxy}/content/repositories/staging/</url>
222 </repository>
223 </repositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000224
Steve Smokowskief768a72017-02-09 15:43:35 -0500225 <build>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100226 <finalName>model-loader</finalName>
Steve Smokowskief768a72017-02-09 15:43:35 -0500227 <plugins>
228 <plugin>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100229 <groupId>org.springframework.boot</groupId>
230 <artifactId>spring-boot-maven-plugin</artifactId>
231 <version>${spring-boot.version}</version>
232 <configuration>
233 <executable>true</executable>
234 </configuration>
235 <executions>
236 <execution>
237 <goals>
238 <goal>repackage</goal>
239 </goals>
240 </execution>
241 </executions>
242 </plugin>
243 <plugin>
Steve Smokowskief768a72017-02-09 15:43:35 -0500244 <groupId>org.apache.maven.plugins</groupId>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000245 <artifactId>maven-resources-plugin</artifactId>
246 <version>2.7</version>
247 <executions>
248 <execution>
249 <id>copy-docker-file</id>
250 <phase>package</phase>
251 <goals>
252 <goal>copy-resources</goal>
253 </goals>
254 <configuration>
255 <outputDirectory>target</outputDirectory>
256 <overwrite>true</overwrite>
257 <resources>
258 <resource>
259 <directory>${basedir}/src/main/docker</directory>
260 <filtering>true</filtering>
261 <includes>
262 <include>**/*</include>
263 </includes>
264 </resource>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400265 <resource>
266 <directory>${basedir}/src/main/bin/</directory>
267 </resource>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000268 </resources>
269 </configuration>
270 </execution>
271 </executions>
272 </plugin>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100273 <plugin>
274 <groupId>com.mycila</groupId>
275 <artifactId>license-maven-plugin</artifactId>
276 <version>3.0</version>
277 <configuration>
278 <header>License.txt</header>
279 <includes>
280 <include>src/main/java/**</include>
281 <include>src/test/java/**</include>
282 <include>version/properties</include>
283 <include>pom.xml</include>
284 </includes>
285 <skipExistingHeaders>true</skipExistingHeaders>
286 </configuration>
287 <executions>
288 <execution>
289 <goals>
290 <!-- Set goal to "format" to auto update license headers -->
291 <goal>check</goal>
292 </goals>
293 <phase>process-sources</phase>
294 </execution>
295 </executions>
296 </plugin>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000297 <plugin>
298 <groupId>com.spotify</groupId>
299 <artifactId>docker-maven-plugin</artifactId>
300 <version>0.4.11</version>
Mohammed Naserf2d42f22018-04-16 13:40:08 -0700301 <dependencies>
302 <dependency>
303 <groupId>com.github.jnr</groupId>
304 <artifactId>jnr-unixsocket</artifactId>
305 <version>0.13</version>
306 </dependency>
307 </dependencies>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000308 <configuration>
Venkata Harish K Kajur61293a32017-02-20 23:58:13 +0000309 <verbose>true</verbose>
310 <serverId>docker-hub</serverId>
Blackwell, Ian (ib733q)30cffeb2018-04-04 13:04:04 +0100311 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000312 <dockerDirectory>${docker.location}</dockerDirectory>
313 <imageTags>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000314 <imageTag>latest</imageTag>
315 </imageTags>
316 <forceTags>true</forceTags>
317 </configuration>
318 </plugin>
319 <plugin>
320 <groupId>org.apache.maven.plugins</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000321 <artifactId>maven-deploy-plugin</artifactId>
322 <configuration>
323 <skip>true</skip>
324 </configuration>
325 </plugin>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000326 </plugins>
Steve Smokowskief768a72017-02-09 15:43:35 -0500327 </build>
Steve Smokowskief768a72017-02-09 15:43:35 -0500328</project>