Use managed guava version
[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" 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.2.0</version>
29                 <relativePath/>
30         </parent>
31
32         <groupId>org.onap.aai.model-loader</groupId>
33         <artifactId>model-loader</artifactId>
34         <version>1.3.0-SNAPSHOT</version>
35
36         <dependencyManagement>
37                 <dependencies>
38                         <dependency>
39                                 <groupId>org.springframework.boot</groupId>
40                                 <artifactId>spring-boot-dependencies</artifactId>
41                                 <version>${spring-boot.version}</version>
42                                 <type>pom</type>
43                                 <scope>import</scope>
44                         </dependency>
45                 </dependencies>
46         </dependencyManagement>
47
48         <properties>
49                 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
50                 <nexusproxy>https://nexus.onap.org</nexusproxy>
51                 <docker.location>${basedir}/target</docker.location>
52                 <spring-boot.version>1.5.14.RELEASE</spring-boot.version>
53                 <apache.commons-text.version>1.1</apache.commons-text.version>
54                 <commons-compress.version>1.17</commons-compress.version>
55                 <hamcrest-all.version>1.3</hamcrest-all.version>
56                 <babel.version>1.2.0</babel.version>
57                 <aai.rest.client.version>1.2.1</aai.rest.client.version>
58                 <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
59                 <logback.version>1.2.3</logback.version>
60         </properties>
61
62     <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
75         <dependencies>
76                 <dependency>
77                         <groupId>org.springframework.boot</groupId>
78                         <artifactId>spring-boot-starter-web</artifactId>
79                 </dependency>
80                 <dependency>
81                         <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>
93                         <groupId>org.glassfish.jersey.core</groupId>
94                         <artifactId>jersey-common</artifactId>
95                         <scope>test</scope>
96                 </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>
105                 </dependency>
106
107                 <!-- Test dependencies -->
108                 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
109                 <dependency>
110                         <groupId>com.mikesamuel</groupId>
111                         <artifactId>json-sanitizer</artifactId>
112                         <version>1.2.0</version>
113                 </dependency>
114
115                 <!-- Common logging framework -->
116                 <dependency>
117                         <groupId>org.onap.aai.logging-service</groupId>
118                         <artifactId>common-logging</artifactId>
119                         <version>1.2.2</version>
120                 </dependency>
121                 <dependency>
122                         <groupId>ch.qos.logback</groupId>
123                         <artifactId>logback-classic</artifactId>
124                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
125                 </dependency>
126                 <dependency>
127                         <groupId>ch.qos.logback</groupId>
128                         <artifactId>logback-core</artifactId>
129                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
130                 </dependency>
131                 <dependency>
132                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
133                         <artifactId>sdc-distribution-client</artifactId>
134                         <version>${sdc-distribution-client.version}</version>
135                 </dependency>
136                 <dependency>
137                         <groupId>org.json</groupId>
138                         <artifactId>json</artifactId>
139                         <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
140                 </dependency>
141                 <dependency>
142                         <groupId>org.eclipse.jetty</groupId>
143                         <artifactId>jetty-security</artifactId>
144                 </dependency>
145                 <dependency>
146                         <groupId>jline</groupId>
147                         <artifactId>jline</artifactId>
148                         <version>2.12.1</version>
149                 </dependency>
150                 <dependency>
151                         <groupId>org.apache.commons</groupId>
152                         <artifactId>commons-compress</artifactId>
153                         <version>${commons-compress.version}</version>
154                 </dependency>
155                 <dependency>
156                         <groupId>commons-io</groupId>
157                         <artifactId>commons-io</artifactId>
158                         <version>2.4</version>
159                 </dependency>
160                 <dependency>
161                         <groupId>org.apache.commons</groupId>
162                         <artifactId>commons-text</artifactId>
163                         <version>${apache.commons-text.version}</version>
164                 </dependency>
165
166         <!-- Test dependencies -->
167         <dependency>
168             <groupId>junit</groupId>
169             <artifactId>junit</artifactId>
170             <scope>test</scope>
171         </dependency>
172         <dependency>
173             <groupId>org.hamcrest</groupId>
174             <artifactId>hamcrest-all</artifactId>
175             <version>${hamcrest-all.version}</version>
176             <scope>test</scope>
177         </dependency>
178         <dependency>
179             <groupId>org.mockito</groupId>
180             <artifactId>mockito-core</artifactId>
181             <scope>test</scope>
182         </dependency>
183         <dependency>
184             <groupId>org.springframework.boot</groupId>
185             <artifactId>spring-boot-starter-test</artifactId>
186             <scope>test</scope>
187         </dependency>
188         </dependencies>
189
190     <!-- Plugins and repositories -->
191     <pluginRepositories>
192         <pluginRepository>
193             <id>central</id>
194             <url>http://repo1.maven.org/maven2</url>
195         </pluginRepository>
196         <pluginRepository>
197             <id>EvoSuite</id>
198             <name>EvoSuite Repository</name>
199             <url>http://www.evosuite.org/m2</url>
200         </pluginRepository>
201     </pluginRepositories>
202
203     <repositories>
204         <repository>
205             <id>central</id>
206             <name>Maven 2 repository 2</name>
207             <url>http://repo2.maven.org/maven2/</url>
208         </repository>
209         <repository>
210             <id>ecomp-releases</id>
211             <name>ECOMP Release Repository</name>
212             <url>${nexusproxy}/content/repositories/releases/</url>
213         </repository>
214         <repository>
215             <id>ecomp-snapshots</id>
216             <name>ECOMP Snapshot Repository</name>
217             <url>${nexusproxy}/content/repositories/snapshots/</url>
218         </repository>
219         <repository>
220             <id>ecomp-staging</id>
221             <name>ECOMP Staging Repository</name>
222             <url>${nexusproxy}/content/repositories/staging/</url>
223         </repository>
224     </repositories>
225
226         <build>
227                 <finalName>model-loader</finalName>
228                 <plugins>
229                         <plugin>
230                                 <groupId>org.springframework.boot</groupId>
231                                 <artifactId>spring-boot-maven-plugin</artifactId>
232                                 <version>${spring-boot.version}</version>
233                                 <configuration>
234                                         <executable>true</executable>
235                                 </configuration>
236                                 <executions>
237                                         <execution>
238                                                 <goals>
239                                                         <goal>repackage</goal>
240                                                 </goals>
241                                         </execution>
242                                 </executions>
243                         </plugin>
244                         <plugin>
245                                 <groupId>org.apache.maven.plugins</groupId>
246                                 <artifactId>maven-resources-plugin</artifactId>
247                                 <version>2.7</version>
248                                 <executions>
249                                         <execution>
250                                                 <id>copy-docker-file</id>
251                                                 <phase>package</phase>
252                                                 <goals>
253                                                         <goal>copy-resources</goal>
254                                                 </goals>
255                                                 <configuration>
256                                                         <outputDirectory>target</outputDirectory>
257                                                         <overwrite>true</overwrite>
258                                                         <resources>
259                                                                 <resource>
260                                                                         <directory>${basedir}/src/main/docker</directory>
261                                                                         <filtering>true</filtering>
262                                                                         <includes>
263                                                                                 <include>**/*</include>
264                                                                         </includes>
265                                                                 </resource>
266                                                                 <resource>
267                                                                         <directory>${basedir}/src/main/bin/</directory>
268                                                                 </resource>
269                                                         </resources>
270                                                 </configuration>
271                                         </execution>
272                                 </executions>
273                         </plugin>
274             <plugin>
275                 <groupId>com.mycila</groupId>
276                 <artifactId>license-maven-plugin</artifactId>
277                 <version>3.0</version>
278                 <configuration>
279                     <header>License.txt</header>
280                     <includes>
281                         <include>src/main/java/**</include>
282                         <include>src/test/java/**</include>
283                         <include>version/properties</include>
284                         <include>pom.xml</include>
285                     </includes>
286                     <skipExistingHeaders>true</skipExistingHeaders>
287                 </configuration>
288                 <executions>
289                     <execution>
290                         <goals>
291                             <!-- Set goal to "format" to auto update license headers -->
292                             <goal>check</goal>
293                         </goals>
294                         <phase>process-sources</phase>
295                     </execution>
296                 </executions>
297             </plugin>
298                         <plugin>
299                                 <groupId>com.spotify</groupId>
300                                 <artifactId>docker-maven-plugin</artifactId>
301                                 <version>0.4.11</version>
302                                 <configuration>
303                                         <verbose>true</verbose>
304                                         <serverId>docker-hub</serverId>
305                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
306                                         <dockerDirectory>${docker.location}</dockerDirectory>
307                                         <imageTags>
308                                                 <imageTag>latest</imageTag>
309                                         </imageTags>
310                                         <forceTags>true</forceTags>
311                                 </configuration>
312                         </plugin>
313                         <plugin>
314                                 <groupId>org.apache.maven.plugins</groupId>
315                                 <artifactId>maven-deploy-plugin</artifactId>
316                                 <configuration>
317                                         <skip>true</skip>
318                                 </configuration>
319                         </plugin>
320                 </plugins>
321         </build>
322 </project>