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