1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ============LICENSE_START=======================================================
3 * ONAP : DCAEGEN2/services/mapper * ================================================================================
4 * Copyright 2018 TechMahindra *=================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License"); * you may
6 not use this file except in compliance with the License. * You may obtain
7 a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *
8 * Unless required by applicable law or agreed to in writing, software * distributed
9 under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES
10 OR CONDITIONS OF ANY KIND, either express or implied. * See the License for
11 the specific language governing permissions and * limitations under the License.
12 * ============LICENSE_END========================================================= -->
13 <project xmlns="http://maven.apache.org/POM/4.0.0"
14 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
16 <modelVersion>4.0.0</modelVersion>
18 <groupId>org.onap.dcaegen2.services.mapper.vesadapter</groupId>
19 <artifactId>UniversalVesAdapter</artifactId>
20 <version>0.0.1-SNAPSHOT</version>
24 <groupId>org.onap.dcaegen2.services.mapper</groupId>
25 <artifactId>mapper</artifactId>
26 <version>0.0.1-SNAPSHOT</version>
31 <!-- PROJECT SETTINGS -->
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
34 <java.version>8</java.version>
35 <docker.image.name>onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor</docker.image.name>
37 <!-- PLUGIN SETTINGS -->
38 <dependency.locations.enabled>false</dependency.locations.enabled>
40 <!-- NEXUS RELATED SETTINGS -->
41 <nexusproxy>https://nexus.onap.org</nexusproxy>
42 <snapshots.path>content/repositories/snapshots/</snapshots.path>
43 <releases.path>content/repositories/releases/</releases.path>
45 content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
47 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
52 <groupId>com.google.guava</groupId>
53 <artifactId>guava</artifactId>
56 <groupId>commons-configuration</groupId>
57 <artifactId>commons-configuration</artifactId>
58 <version>1.10</version>
61 <groupId>com.google.code.gson</groupId>
62 <artifactId>gson</artifactId>
63 <version>2.8.5</version>
66 <groupId>com.google.inject</groupId>
67 <artifactId>guice</artifactId>
68 <version>4.2.0</version>
71 <groupId>org.apache.commons</groupId>
72 <artifactId>commons-lang3</artifactId>
73 <version>3.5</version>
76 <groupId>com.google.inject.extensions</groupId>
77 <artifactId>guice-assistedinject</artifactId>
78 <version>4.2.0</version>
81 <groupId>org.milyn</groupId>
82 <artifactId>milyn-smooks-all</artifactId>
83 <version>1.7.0</version>
86 <groupId>javax.servlet</groupId>
87 <artifactId>servlet-api</artifactId>
90 <groupId>ognl</groupId>
91 <artifactId>ognl</artifactId>
94 <groupId>javax.jms</groupId>
95 <artifactId>jms</artifactId>
100 <groupId>ognl</groupId>
101 <artifactId>ognl</artifactId>
102 <version>3.1.12</version>
105 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
106 <artifactId>dmaapClient</artifactId>
107 <version>1.1.3</version>
110 <groupId>javax.jms</groupId>
111 <artifactId>jms</artifactId>
115 <!-- Database dependency -->
117 <groupId>org.postgresql</groupId>
118 <artifactId>postgresql</artifactId>
119 <version>42.2.5</version>
122 <groupId>org.springframework</groupId>
123 <artifactId>spring-jdbc</artifactId>
124 <version>5.1.3.RELEASE</version>
127 <groupId>org.springframework.boot</groupId>
128 <artifactId>spring-boot-starter-web</artifactId>
129 <version>2.1.1.RELEASE</version>
132 <groupId>org.springframework.boot</groupId>
133 <artifactId>spring-boot-starter-test</artifactId>
134 <version>2.1.1.RELEASE</version>
138 <groupId>org.springframework.data</groupId>
139 <artifactId>spring-data-commons</artifactId>
140 <version>2.1.3.RELEASE</version>
142 <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
144 <groupId>org.slf4j</groupId>
145 <artifactId>slf4j-api</artifactId>
146 <version>1.7.25</version>
149 <groupId>org.codehaus.groovy</groupId>
150 <artifactId>groovy-all</artifactId>
151 <version>2.4.14</version>
154 <groupId>com.jayway.jsonpath</groupId>
155 <artifactId>json-path</artifactId>
156 <version>2.4.0</version>
160 <groupId>com.fasterxml.jackson.core</groupId>
161 <artifactId>jackson-databind</artifactId>
162 <version>2.9.6</version>
165 <groupId>hsqldb</groupId>
166 <artifactId>hsqldb</artifactId>
167 <version>1.8.0.10</version>
170 <!-- https://mvnrepository.com/artifact/xalan/xalan -->
172 <groupId>xalan</groupId>
173 <artifactId>xalan</artifactId>
174 <version>2.7.2</version>
176 <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
178 <groupId>xerces</groupId>
179 <artifactId>xercesImpl</artifactId>
180 <version>2.12.0</version>
182 <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
184 <groupId>com.thoughtworks.xstream</groupId>
185 <artifactId>xstream</artifactId>
186 <version>1.4.10</version>
188 <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
190 <groupId>xml-apis</groupId>
191 <artifactId>xml-apis</artifactId>
192 <version>1.4.01</version>
196 <groupId>org.apache.httpcomponents</groupId>
197 <artifactId>httpclient</artifactId>
198 <version>${httpclient.version}</version>
199 <scope>compile</scope>
202 <groupId>org.apache.httpcomponents</groupId>
203 <artifactId>httpmime</artifactId>
204 <version>${httpclient.version}</version>
205 <scope>compile</scope>
207 <!-- <dependency> <groupId>org.onap.aai.event-client</groupId> <artifactId>event-client-dmaap</artifactId>
208 <version>1.2.0</version> </dependency> -->
210 <groupId>org.springframework.boot</groupId>
211 <artifactId>spring-boot-configuration-processor</artifactId>
212 <optional>true</optional>
213 <version>2.1.1.RELEASE</version>
221 <artifactId>maven-assembly-plugin</artifactId>
222 <version>3.1.0</version>
225 <groupId>com.spotify</groupId>
226 <artifactId>docker-maven-plugin</artifactId>
227 <version>1.0.0</version>
233 <groupId>org.apache.maven.plugins</groupId>
234 <artifactId>maven-surefire-plugin</artifactId>
236 <reuseForks>false</reuseForks>
237 <forkCount>1</forkCount>
241 <artifactId>maven-assembly-plugin</artifactId>
244 <descriptor>src/assembly/dep.xml</descriptor>
246 <attach>false</attach>
247 <appendAssemblyId>false</appendAssemblyId>
248 <updateOnly>true</updateOnly>
252 <id>make-assembly</id>
253 <phase>package</phase>
261 <groupId>com.spotify</groupId>
262 <artifactId>docker-maven-plugin</artifactId>
263 <version>1.0.0</version>
265 <skipDockerBuild>false</skipDockerBuild>
266 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
267 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
270 <tag>${project.version}-${maven.build.timestamp}Z</tag>
271 <tag>${project.version}</tag>
273 <baseImage>ubuntu:16.04</baseImage>
275 <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
277 <workdir>/opt/app/VESAdapter</workdir>
280 <targetPath>.</targetPath>
281 <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
285 <run>chmod +x bin/run.sh</run>
287 <![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]]>
291 <expose>8080</expose>
292 <expose>8443</expose>
294 <entryPoint>bin/run.sh</entryPoint>
300 <phase>package</phase>
306 <id>tag-and-push-image-latest</id>
307 <phase>deploy</phase>
312 <image>${docker.image.name}:latest</image>
313 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
314 <pushImage>true</pushImage>
318 <id>tag-and-push-image-with-version</id>
319 <phase>deploy</phase>
324 <image>${docker.image.name}:latest</image>
325 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}
327 <pushImage>true</pushImage>
331 <id>tag-and-push-image-with-version-and-date</id>
332 <phase>deploy</phase>
337 <image>${docker.image.name}:latest</image>
339 ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z
341 <pushImage>true</pushImage>
347 <groupId>org.springframework.boot</groupId>
348 <artifactId>spring-boot-maven-plugin</artifactId>
349 <version>2.1.1.RELEASE</version>
353 <goal>repackage</goal>
356 <mainClass>org.onap.universalvesadapter.Application</mainClass>
362 <groupId>org.codehaus.mojo</groupId>
363 <artifactId>build-helper-maven-plugin</artifactId>
364 <version>1.9.1</version>
368 <phase>generate-sources</phase>
370 <goal>add-source</goal>
374 <source>src/gen/java</source>
378 <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal>
379 </goals> <configuration> <name>docker.version</name> <value>${project.version}</value>
380 <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement>
381 <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
385 <!-- <finalName>UniversalVesAdapter</finalName> -->
390 <id>with-system-proxy</id>
394 <groupId>com.spotify</groupId>
395 <artifactId>docker-maven-plugin</artifactId>
398 <http_proxy>${env.http_proxy}</http_proxy>
410 <id>spring-releases</id>
411 <url>https://repo.spring.io/libs-release</url>
416 <id>spring-releases</id>
417 <url>https://repo.spring.io/libs-release</url>
419 </pluginRepositories>