Upversion commons-compress for NexusIQ
[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         <name>aai-model-loader</name>
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.15.RELEASE</spring-boot.version>
54                 <apache.commons-text.version>1.1</apache.commons-text.version>
55                 <commons-compress.version>1.18</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>jline</groupId>
148                         <artifactId>jline</artifactId>
149                         <version>2.12.1</version>
150                 </dependency>
151                 <dependency>
152                         <groupId>org.apache.commons</groupId>
153                         <artifactId>commons-compress</artifactId>
154                         <version>${commons-compress.version}</version>
155                 </dependency>
156                 <dependency>
157                         <groupId>commons-io</groupId>
158                         <artifactId>commons-io</artifactId>
159                         <version>2.4</version>
160                 </dependency>
161                 <dependency>
162                         <groupId>org.apache.commons</groupId>
163                         <artifactId>commons-text</artifactId>
164                         <version>${apache.commons-text.version}</version>
165                 </dependency>
166
167         <!-- Test dependencies -->
168         <dependency>
169             <groupId>junit</groupId>
170             <artifactId>junit</artifactId>
171             <scope>test</scope>
172         </dependency>
173         <dependency>
174             <groupId>org.hamcrest</groupId>
175             <artifactId>hamcrest-all</artifactId>
176             <version>${hamcrest-all.version}</version>
177             <scope>test</scope>
178         </dependency>
179         <dependency>
180             <groupId>org.mockito</groupId>
181             <artifactId>mockito-core</artifactId>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.springframework.boot</groupId>
186             <artifactId>spring-boot-starter-test</artifactId>
187             <scope>test</scope>
188         </dependency>
189         </dependencies>
190
191     <!-- Plugins and repositories -->
192     <pluginRepositories>
193         <pluginRepository>
194             <id>central</id>
195             <url>http://repo1.maven.org/maven2</url>
196         </pluginRepository>
197         <pluginRepository>
198             <id>EvoSuite</id>
199             <name>EvoSuite Repository</name>
200             <url>http://www.evosuite.org/m2</url>
201         </pluginRepository>
202     </pluginRepositories>
203
204     <repositories>
205         <repository>
206             <id>central</id>
207             <name>Maven 2 repository 2</name>
208             <url>http://repo2.maven.org/maven2/</url>
209         </repository>
210         <repository>
211             <id>ecomp-releases</id>
212             <name>ECOMP Release Repository</name>
213             <url>${nexusproxy}/content/repositories/releases/</url>
214         </repository>
215         <repository>
216             <id>ecomp-snapshots</id>
217             <name>ECOMP Snapshot Repository</name>
218             <url>${nexusproxy}/content/repositories/snapshots/</url>
219         </repository>
220         <repository>
221             <id>ecomp-staging</id>
222             <name>ECOMP Staging Repository</name>
223             <url>${nexusproxy}/content/repositories/staging/</url>
224         </repository>
225     </repositories>
226
227         <build>
228                 <finalName>model-loader</finalName>
229                 <plugins>
230                         <plugin>
231                                 <groupId>org.springframework.boot</groupId>
232                                 <artifactId>spring-boot-maven-plugin</artifactId>
233                                 <version>${spring-boot.version}</version>
234                                 <configuration>
235                                         <executable>true</executable>
236                                 </configuration>
237                                 <executions>
238                                         <execution>
239                                                 <goals>
240                                                         <goal>repackage</goal>
241                                                 </goals>
242                                         </execution>
243                                 </executions>
244                         </plugin>
245                         <plugin>
246                                 <groupId>org.apache.maven.plugins</groupId>
247                                 <artifactId>maven-resources-plugin</artifactId>
248                                 <version>2.7</version>
249                                 <executions>
250                                         <execution>
251                                                 <id>copy-docker-file</id>
252                                                 <phase>package</phase>
253                                                 <goals>
254                                                         <goal>copy-resources</goal>
255                                                 </goals>
256                                                 <configuration>
257                                                         <outputDirectory>target</outputDirectory>
258                                                         <overwrite>true</overwrite>
259                                                         <resources>
260                                                                 <resource>
261                                                                         <directory>${basedir}/src/main/docker</directory>
262                                                                         <filtering>true</filtering>
263                                                                         <includes>
264                                                                                 <include>**/*</include>
265                                                                         </includes>
266                                                                 </resource>
267                                                                 <resource>
268                                                                         <directory>${basedir}/src/main/bin/</directory>
269                                                                 </resource>
270                                                         </resources>
271                                                 </configuration>
272                                         </execution>
273                                 </executions>
274                         </plugin>
275             <plugin>
276                 <groupId>com.mycila</groupId>
277                 <artifactId>license-maven-plugin</artifactId>
278                 <version>3.0</version>
279                 <configuration>
280                     <header>License.txt</header>
281                     <includes>
282                         <include>src/main/java/**</include>
283                         <include>src/test/java/**</include>
284                         <include>version/properties</include>
285                         <include>pom.xml</include>
286                     </includes>
287                     <skipExistingHeaders>true</skipExistingHeaders>
288                 </configuration>
289                 <executions>
290                     <execution>
291                         <goals>
292                             <!-- Set goal to "format" to auto update license headers -->
293                             <goal>check</goal>
294                         </goals>
295                         <phase>process-sources</phase>
296                     </execution>
297                 </executions>
298             </plugin>
299                         <plugin>
300                                 <groupId>com.spotify</groupId>
301                                 <artifactId>docker-maven-plugin</artifactId>
302                                 <version>0.4.11</version>
303                                 <configuration>
304                                         <verbose>true</verbose>
305                                         <serverId>docker-hub</serverId>
306                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
307                                         <dockerDirectory>${docker.location}</dockerDirectory>
308                                         <imageTags>
309                                                 <imageTag>latest</imageTag>
310                                         </imageTags>
311                                         <forceTags>true</forceTags>
312                                 </configuration>
313                         </plugin>
314                         <plugin>
315                                 <groupId>org.apache.maven.plugins</groupId>
316                                 <artifactId>maven-deploy-plugin</artifactId>
317                                 <configuration>
318                                         <skip>true</skip>
319                                 </configuration>
320                         </plugin>
321                 </plugins>
322         </build>
323 </project>