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