1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 * ============LICENSE_START=======================================================
\r
5 * ================================================================================
\r
6 * Copyright 2018-2019 TechMahindra
\r
7 *=================================================================================
\r
8 * Licensed under the Apache License, Version 2.0 (the "License");
\r
9 * you may not use this file except in compliance with the License.
\r
10 * You may obtain a copy of the License at
\r
12 * http://www.apache.org/licenses/LICENSE-2.0
\r
14 * Unless required by applicable law or agreed to in writing, software
\r
15 * distributed under the License is distributed on an "AS IS" BASIS,
\r
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
17 * See the License for the specific language governing permissions and
\r
18 * limitations under the License.
\r
19 * ============LICENSE_END=========================================================
\r
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
\r
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
\r
25 <modelVersion>4.0.0</modelVersion>
\r
27 <groupId>org.onap.dcaegen2.services.mapper.vesadapter</groupId>
\r
28 <artifactId>UniversalVesAdapter</artifactId>
\r
29 <version>1.0.1-SNAPSHOT</version>
\r
33 <groupId>org.onap.dcaegen2.services.mapper</groupId>
\r
34 <artifactId>mapper</artifactId>
\r
35 <version>1.0.1-SNAPSHOT</version>
\r
40 <!-- PROJECT SETTINGS -->
\r
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
42 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
\r
43 <java.version>8</java.version>
\r
44 <docker.image.name>onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor</docker.image.name>
\r
46 <!-- PLUGIN SETTINGS -->
\r
47 <dependency.locations.enabled>false</dependency.locations.enabled>
\r
49 <!-- NEXUS RELATED SETTINGS -->
\r
50 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
51 <snapshots.path>content/repositories/snapshots/</snapshots.path>
\r
52 <releases.path>content/repositories/releases/</releases.path>
\r
54 content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
\r
56 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
\r
58 <!-- DCAE SDK version -->
\r
59 <sdk.version>1.1.6</sdk.version>
\r
63 <!-- Junit, Mockito, PowerMock -->
\r
65 <groupId>junit</groupId>
\r
66 <artifactId>junit</artifactId>
\r
67 <version>4.12</version>
\r
71 <groupId>org.mockito</groupId>
\r
72 <artifactId>mockito-core</artifactId>
\r
73 <version>2.0.5-beta</version>
\r
78 <groupId>org.powermock</groupId>
\r
79 <artifactId>powermock-api-mockito</artifactId>
\r
80 <version>1.6.2</version>
\r
84 <groupId>org.powermock</groupId>
\r
85 <artifactId>powermock-module-junit4</artifactId>
\r
86 <version>1.6.2</version>
\r
90 <groupId>org.javassist</groupId>
\r
91 <artifactId>javassist</artifactId>
\r
92 <version>3.18.2-GA</version>
\r
95 <groupId>com.googlecode.json-simple</groupId>
\r
96 <artifactId>json-simple</artifactId>
\r
97 <version>1.1.1</version>
\r
100 <groupId>com.google.guava</groupId>
\r
101 <artifactId>guava</artifactId>
\r
104 <groupId>commons-configuration</groupId>
\r
105 <artifactId>commons-configuration</artifactId>
\r
106 <version>1.10</version>
\r
109 <groupId>com.google.code.gson</groupId>
\r
110 <artifactId>gson</artifactId>
\r
111 <version>2.8.5</version>
\r
114 <groupId>com.google.inject</groupId>
\r
115 <artifactId>guice</artifactId>
\r
116 <version>4.2.0</version>
\r
119 <groupId>org.apache.commons</groupId>
\r
120 <artifactId>commons-lang3</artifactId>
\r
121 <version>3.5</version>
\r
124 <groupId>com.google.inject.extensions</groupId>
\r
125 <artifactId>guice-assistedinject</artifactId>
\r
126 <version>4.2.0</version>
\r
129 <groupId>org.milyn</groupId>
\r
130 <artifactId>milyn-smooks-all</artifactId>
\r
131 <version>1.7.0</version>
\r
134 <groupId>javax.servlet</groupId>
\r
135 <artifactId>servlet-api</artifactId>
\r
138 <groupId>ognl</groupId>
\r
139 <artifactId>ognl</artifactId>
\r
142 <groupId>javax.jms</groupId>
\r
143 <artifactId>jms</artifactId>
\r
148 <groupId>ognl</groupId>
\r
149 <artifactId>ognl</artifactId>
\r
150 <version>3.1.12</version>
\r
153 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
\r
154 <artifactId>dmaapClient</artifactId>
\r
155 <version>1.1.3</version>
\r
158 <groupId>javax.jms</groupId>
\r
159 <artifactId>jms</artifactId>
\r
163 <!-- Database dependency -->
\r
165 <groupId>org.postgresql</groupId>
\r
166 <artifactId>postgresql</artifactId>
\r
167 <version>42.2.5</version>
\r
170 <groupId>org.springframework</groupId>
\r
171 <artifactId>spring-jdbc</artifactId>
\r
172 <version>5.1.3.RELEASE</version>
\r
175 <groupId>org.springframework.boot</groupId>
\r
176 <artifactId>spring-boot-starter-web</artifactId>
\r
177 <version>2.1.1.RELEASE</version>
\r
180 <groupId>org.springframework.boot</groupId>
\r
181 <artifactId>spring-boot-starter-test</artifactId>
\r
182 <version>2.1.1.RELEASE</version>
\r
183 <scope>test</scope>
\r
186 <groupId>org.springframework.data</groupId>
\r
187 <artifactId>spring-data-commons</artifactId>
\r
188 <version>2.1.3.RELEASE</version>
\r
190 <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
\r
192 <groupId>org.slf4j</groupId>
\r
193 <artifactId>slf4j-api</artifactId>
\r
194 <version>1.7.25</version>
\r
197 <groupId>org.codehaus.groovy</groupId>
\r
198 <artifactId>groovy-all</artifactId>
\r
199 <version>2.4.14</version>
\r
202 <groupId>com.jayway.jsonpath</groupId>
\r
203 <artifactId>json-path</artifactId>
\r
204 <version>2.4.0</version>
\r
205 <scope>test</scope>
\r
208 <groupId>com.fasterxml.jackson.core</groupId>
\r
209 <artifactId>jackson-databind</artifactId>
\r
210 <version>2.9.7</version>
\r
213 <groupId>hsqldb</groupId>
\r
214 <artifactId>hsqldb</artifactId>
\r
215 <version>1.8.0.10</version>
\r
216 <scope>test</scope>
\r
218 <!-- https://mvnrepository.com/artifact/xalan/xalan -->
\r
220 <groupId>xalan</groupId>
\r
221 <artifactId>xalan</artifactId>
\r
222 <version>2.7.2</version>
\r
224 <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
\r
226 <groupId>xerces</groupId>
\r
227 <artifactId>xercesImpl</artifactId>
\r
228 <version>2.12.0</version>
\r
230 <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
\r
232 <groupId>com.thoughtworks.xstream</groupId>
\r
233 <artifactId>xstream</artifactId>
\r
234 <version>1.4.10</version>
\r
236 <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
\r
238 <groupId>xml-apis</groupId>
\r
239 <artifactId>xml-apis</artifactId>
\r
240 <version>1.4.01</version>
\r
242 <!-- http client -->
\r
244 <groupId>org.apache.httpcomponents</groupId>
\r
245 <artifactId>httpclient</artifactId>
\r
246 <version>${httpclient.version}</version>
\r
247 <scope>compile</scope>
\r
250 <groupId>org.apache.httpcomponents</groupId>
\r
251 <artifactId>httpmime</artifactId>
\r
252 <version>${httpclient.version}</version>
\r
253 <scope>compile</scope>
\r
255 <!-- <dependency> <groupId>org.onap.aai.event-client</groupId> <artifactId>event-client-dmaap</artifactId>
\r
256 <version>1.2.0</version> </dependency> -->
\r
258 <groupId>org.springframework.boot</groupId>
\r
259 <artifactId>spring-boot-configuration-processor</artifactId>
\r
260 <optional>true</optional>
\r
261 <version>2.1.1.RELEASE</version>
\r
264 <!-- DCAE sdk dependency -->
\r
267 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
\r
268 <artifactId>cbs-client</artifactId>
\r
269 <version>${sdk.version}</version>
\r
278 <artifactId>maven-assembly-plugin</artifactId>
\r
279 <version>3.1.0</version>
\r
282 <groupId>com.spotify</groupId>
\r
283 <artifactId>docker-maven-plugin</artifactId>
\r
284 <version>1.0.0</version>
\r
287 </pluginManagement>
\r
289 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId>
\r
290 <configuration> <reuseForks>false</reuseForks> <forkCount>1</forkCount> </configuration>
\r
296 <artifactId>maven-assembly-plugin</artifactId>
\r
299 <descriptor>src/assembly/dep.xml</descriptor>
\r
301 <attach>false</attach>
\r
302 <appendAssemblyId>false</appendAssemblyId>
\r
303 <updateOnly>true</updateOnly>
\r
307 <id>make-assembly</id>
\r
308 <phase>package</phase>
\r
310 <goal>single</goal>
\r
316 <groupId>com.spotify</groupId>
\r
317 <artifactId>docker-maven-plugin</artifactId>
\r
318 <version>1.0.0</version>
\r
320 <skipDockerBuild>false</skipDockerBuild>
\r
321 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
\r
322 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
\r
325 <tag>${project.version}-${maven.build.timestamp}Z</tag>
\r
326 <tag>${project.version}</tag>
\r
328 <baseImage>alpine:3.8</baseImage>
\r
330 <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
\r
332 <workdir>/opt/app/VESAdapter</workdir>
\r
335 <targetPath>.</targetPath>
\r
336 <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
\r
340 <run>chmod +x bin/run.sh</run>
\r
342 <![CDATA[apt-get update && apt-get install -y curl && apt-get install -y openjdk-8-jdk && apt-get install -y vim && apt-get clean all]]>
\r
346 <expose>8080</expose>
\r
347 <expose>8443</expose>
\r
349 <entryPoint>bin/run.sh</entryPoint>
\r
352 <!--<executions> <execution> <id>build-image</id> <phase>package</phase>
\r
353 <goals> <goal>build</goal> </goals> </execution> <execution> <id>tag-and-push-image-latest</id>
\r
354 <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image>
\r
355 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
\r
356 <pushImage>true</pushImage> </configuration> </execution> <execution> <id>tag-and-push-image-with-version</id>
\r
357 <phase>deploy</phase> <goals> <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image>
\r
358 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}
\r
359 </newName> <pushImage>true</pushImage> </configuration> </execution> <execution>
\r
360 <id>tag-and-push-image-with-version-and-date</id> <phase>deploy</phase> <goals>
\r
361 <goal>tag</goal> </goals> <configuration> <image>${docker.image.name}:latest</image>
\r
362 <newName> ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z
\r
363 </newName> <pushImage>true</pushImage> </configuration> </execution> </executions> -->
\r
366 <groupId>org.springframework.boot</groupId>
\r
367 <artifactId>spring-boot-maven-plugin</artifactId>
\r
368 <version>2.1.1.RELEASE</version>
\r
372 <goal>repackage</goal>
\r
375 <mainClass>org.onap.universalvesadapter.Application</mainClass>
\r
381 <groupId>org.codehaus.mojo</groupId>
\r
382 <artifactId>build-helper-maven-plugin</artifactId>
\r
383 <version>1.9.1</version>
\r
386 <id>add-source</id>
\r
387 <phase>generate-sources</phase>
\r
389 <goal>add-source</goal>
\r
393 <source>src/gen/java</source>
\r
397 <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal>
\r
398 </goals> <configuration> <name>docker.version</name> <value>${project.version}</value>
\r
399 <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement>
\r
400 <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
\r
404 <!-- <finalName>UniversalVesAdapter</finalName> -->
\r
409 <id>with-system-proxy</id>
\r
413 <groupId>com.spotify</groupId>
\r
414 <artifactId>docker-maven-plugin</artifactId>
\r
417 <http_proxy>${env.http_proxy}</http_proxy>
\r
429 <id>spring-releases</id>
\r
430 <url>https://repo.spring.io/libs-release</url>
\r
433 <pluginRepositories>
\r
435 <id>spring-releases</id>
\r
436 <url>https://repo.spring.io/libs-release</url>
\r
437 </pluginRepository>
\r
438 </pluginRepositories>
\r