Add support for loading VNF Catalog XML files
[aai/model-loader.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     ============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
12
13           http://www.apache.org/licenses/LICENSE-2.0
14
15     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 -->
22 <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>
25
26         <parent>
27                 <groupId>org.onap.oparent</groupId>
28                 <artifactId>oparent</artifactId>
29                 <version>1.1.1</version>
30                 <relativePath />
31         </parent>
32
33         <groupId>org.onap.aai.model-loader</groupId>
34         <artifactId>model-loader</artifactId>
35         <version>1.3.0-SNAPSHOT</version>
36
37         <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
49         <properties>
50                 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
51                 <nexusproxy>https://nexus.onap.org</nexusproxy>
52                 <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                 <commons-compress.version>1.14</commons-compress.version>
56                 <hamcrest-all.version>1.3</hamcrest-all.version>
57                 <babel.version>1.2.0</babel.version>
58                 <aai.rest.client.version>1.2.1</aai.rest.client.version>
59                 <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
60                 <logback.version>1.2.3</logback.version>
61         </properties>
62
63     <distributionManagement>
64         <repository>
65             <id>ecomp-releases</id>
66             <name>ECOMP Release Repository</name>
67             <url>${nexusproxy}/content/repositories/releases/</url>
68         </repository>
69         <snapshotRepository>
70             <id>ecomp-snapshots</id>
71             <name>ECOMP Snapshot Repository</name>
72             <url>${nexusproxy}/content/repositories/snapshots/</url>
73         </snapshotRepository>
74     </distributionManagement>
75
76         <dependencies>
77                 <dependency>
78                         <groupId>org.springframework.boot</groupId>
79                         <artifactId>spring-boot-starter-web</artifactId>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.onap.aai</groupId>
83                         <artifactId>babel</artifactId>
84                         <version>${babel.version}</version>
85                         <classifier>client</classifier>
86                         <exclusions>
87                                 <exclusion>
88                                         <groupId>*</groupId>
89                                         <artifactId>*</artifactId>
90                                 </exclusion>
91                         </exclusions>
92                 </dependency>
93                 <dependency>
94                         <groupId>org.glassfish.jersey.core</groupId>
95                         <artifactId>jersey-common</artifactId>
96                         <scope>test</scope>
97                 </dependency>
98                 <dependency>
99                         <groupId>org.onap.aai</groupId>
100                         <artifactId>rest-client</artifactId>
101                         <version>${aai.rest.client.version}</version>
102                 </dependency>
103                 <dependency>
104                         <groupId>com.google.code.gson</groupId>
105                         <artifactId>gson</artifactId>
106                 </dependency>
107
108                 <!-- Test dependencies -->
109                 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
110                 <dependency>
111                         <groupId>com.mikesamuel</groupId>
112                         <artifactId>json-sanitizer</artifactId>
113                         <version>1.2.0</version>
114                 </dependency>
115
116                 <!-- Common logging framework -->
117                 <dependency>
118                         <groupId>org.onap.aai.logging-service</groupId>
119                         <artifactId>common-logging</artifactId>
120                         <version>1.2.2</version>
121                 </dependency>
122                 <dependency>
123                         <groupId>ch.qos.logback</groupId>
124                         <artifactId>logback-classic</artifactId>
125                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
126                 </dependency>
127                 <dependency>
128                         <groupId>ch.qos.logback</groupId>
129                         <artifactId>logback-core</artifactId>
130                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
131                 </dependency>
132                 <dependency>
133                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
134                         <artifactId>sdc-distribution-client</artifactId>
135                         <version>${sdc-distribution-client.version}</version>
136                 </dependency>
137                 <dependency>
138                         <groupId>org.json</groupId>
139                         <artifactId>json</artifactId>
140                         <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
141                 </dependency>
142                 <dependency>
143                         <groupId>org.eclipse.jetty</groupId>
144                         <artifactId>jetty-security</artifactId>
145                 </dependency>
146                 <dependency>
147                         <groupId>org.springframework</groupId>
148                         <artifactId>spring-webmvc</artifactId>
149                 </dependency>
150                 <dependency>
151                         <groupId>jline</groupId>
152                         <artifactId>jline</artifactId>
153                         <version>2.12.1</version>
154                 </dependency>
155                 <dependency>
156                         <groupId>org.apache.commons</groupId>
157                         <artifactId>commons-compress</artifactId>
158                         <version>${commons-compress.version}</version>
159                 </dependency>
160                 <dependency>
161                         <groupId>commons-io</groupId>
162                         <artifactId>commons-io</artifactId>
163                         <version>2.4</version>
164                 </dependency>
165                 <dependency>
166                         <groupId>org.apache.commons</groupId>
167                         <artifactId>commons-text</artifactId>
168                         <version>${apache.commons-text.version}</version>
169                 </dependency>
170                 
171         <!-- Test dependencies -->
172         <dependency>
173             <groupId>junit</groupId>
174             <artifactId>junit</artifactId>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>org.hamcrest</groupId>
179             <artifactId>hamcrest-all</artifactId>
180             <version>${hamcrest-all.version}</version>
181             <scope>test</scope>
182         </dependency>
183         <dependency>
184             <groupId>org.mockito</groupId>
185             <artifactId>mockito-core</artifactId>
186             <scope>test</scope>
187         </dependency>
188         <dependency>
189             <groupId>org.springframework.boot</groupId>
190             <artifactId>spring-boot-starter-test</artifactId>
191             <scope>test</scope>
192         </dependency>
193         </dependencies>
194
195     <!-- Plugins and repositories -->
196     <pluginRepositories>
197         <pluginRepository>
198             <id>central</id>
199             <url>http://repo1.maven.org/maven2</url>
200         </pluginRepository>
201         <pluginRepository>
202             <id>EvoSuite</id>
203             <name>EvoSuite Repository</name>
204             <url>http://www.evosuite.org/m2</url>
205         </pluginRepository>
206     </pluginRepositories>
207
208     <repositories>
209         <repository>
210             <id>central</id>
211             <name>Maven 2 repository 2</name>
212             <url>http://repo2.maven.org/maven2/</url>
213         </repository>
214         <repository>
215             <id>ecomp-releases</id>
216             <name>ECOMP Release Repository</name>
217             <url>${nexusproxy}/content/repositories/releases/</url>
218         </repository>
219         <repository>
220             <id>ecomp-snapshots</id>
221             <name>ECOMP Snapshot Repository</name>
222             <url>${nexusproxy}/content/repositories/snapshots/</url>
223         </repository>
224         <repository>
225             <id>ecomp-staging</id>
226             <name>ECOMP Staging Repository</name>
227             <url>${nexusproxy}/content/repositories/staging/</url>
228         </repository>
229     </repositories>
230
231         <build>
232                 <finalName>model-loader</finalName>
233                 <plugins>
234                         <plugin>
235                                 <groupId>org.springframework.boot</groupId>
236                                 <artifactId>spring-boot-maven-plugin</artifactId>
237                                 <version>${spring-boot.version}</version>
238                                 <configuration>
239                                         <executable>true</executable>
240                                 </configuration>
241                                 <executions>
242                                         <execution>
243                                                 <goals>
244                                                         <goal>repackage</goal>
245                                                 </goals>
246                                         </execution>
247                                 </executions>
248                         </plugin>
249                         <plugin>
250                                 <groupId>org.apache.maven.plugins</groupId>
251                                 <artifactId>maven-resources-plugin</artifactId>
252                                 <version>2.7</version>
253                                 <executions>
254                                         <execution>
255                                                 <id>copy-docker-file</id>
256                                                 <phase>package</phase>
257                                                 <goals>
258                                                         <goal>copy-resources</goal>
259                                                 </goals>
260                                                 <configuration>
261                                                         <outputDirectory>target</outputDirectory>
262                                                         <overwrite>true</overwrite>
263                                                         <resources>
264                                                                 <resource>
265                                                                         <directory>${basedir}/src/main/docker</directory>
266                                                                         <filtering>true</filtering>
267                                                                         <includes>
268                                                                                 <include>**/*</include>
269                                                                         </includes>
270                                                                 </resource>
271                                                                 <resource>
272                                                                         <directory>${basedir}/src/main/bin/</directory>
273                                                                 </resource>
274                                                         </resources>
275                                                 </configuration>
276                                         </execution>
277                                 </executions>
278                         </plugin>
279             <plugin>
280                 <groupId>com.mycila</groupId>
281                 <artifactId>license-maven-plugin</artifactId>
282                 <version>3.0</version>
283                 <configuration>
284                     <header>License.txt</header>
285                     <includes>
286                         <include>src/main/java/**</include>
287                         <include>src/test/java/**</include>
288                         <include>version/properties</include>
289                         <include>pom.xml</include>
290                     </includes>
291                     <skipExistingHeaders>true</skipExistingHeaders>
292                 </configuration>
293                 <executions>
294                     <execution>
295                         <goals>
296                             <!-- Set goal to "format" to auto update license headers -->
297                             <goal>check</goal>
298                         </goals>
299                         <phase>process-sources</phase>
300                     </execution>
301                 </executions>
302             </plugin>
303                         <plugin>
304                                 <groupId>com.spotify</groupId>
305                                 <artifactId>docker-maven-plugin</artifactId>
306                                 <version>0.4.11</version>
307                                 <dependencies>
308                                         <dependency>
309                                                 <groupId>com.github.jnr</groupId>
310                                                 <artifactId>jnr-unixsocket</artifactId>
311                                                 <version>0.13</version>
312                                         </dependency>
313                                 </dependencies>
314                                 <configuration>
315                                         <verbose>true</verbose>
316                                         <serverId>docker-hub</serverId>
317                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
318                                         <dockerDirectory>${docker.location}</dockerDirectory>
319                                         <imageTags>
320                                                 <imageTag>latest</imageTag>
321                                         </imageTags>
322                                         <forceTags>true</forceTags>
323                                 </configuration>
324                         </plugin>
325                         <plugin>
326                                 <groupId>org.apache.maven.plugins</groupId>
327                                 <artifactId>maven-deploy-plugin</artifactId>
328                                 <configuration>
329                                         <skip>true</skip>
330                                 </configuration>
331                         </plugin>
332                 </plugins>
333         </build>
334 </project>