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