1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!-- * ============LICENSE_START=======================================================
\r
3 * ONAP : DCAEGEN2/services/mapper * ================================================================================
\r
4 * Copyright 2018 TechMahindra *=================================================================================
\r
5 * Licensed under the Apache License, Version 2.0 (the "License"); * you may
\r
6 not use this file except in compliance with the License. * You may obtain
\r
7 a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *
\r
8 * Unless required by applicable law or agreed to in writing, software * distributed
\r
9 under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES
\r
10 OR CONDITIONS OF ANY KIND, either express or implied. * See the License for
\r
11 the specific language governing permissions and * limitations under the License.
\r
12 * ============LICENSE_END========================================================= -->
\r
13 <project xmlns="http://maven.apache.org/POM/4.0.0"
\r
14 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
15 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
\r
16 <modelVersion>4.0.0</modelVersion>
\r
18 <groupId>org.onap.dcaegen2.services.mapper.vesadapter</groupId>
\r
19 <artifactId>UniversalVesAdapter</artifactId>
\r
20 <version>0.0.1-SNAPSHOT</version>
\r
24 <groupId>org.onap.dcaegen2.services.mapper</groupId>
\r
25 <artifactId>mapper</artifactId>
\r
26 <version>0.0.1-SNAPSHOT</version>
\r
31 <!-- PROJECT SETTINGS -->
\r
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
33 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
\r
34 <java.version>8</java.version>
\r
35 <docker.image.name>onap/org.onap.dcaegen2.services.mapper.vesadapter.universalvesadaptor</docker.image.name>
\r
37 <!-- PLUGIN SETTINGS -->
\r
38 <dependency.locations.enabled>false</dependency.locations.enabled>
\r
40 <!-- NEXUS RELATED SETTINGS -->
\r
41 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
42 <snapshots.path>content/repositories/snapshots/</snapshots.path>
\r
43 <releases.path>content/repositories/releases/</releases.path>
\r
45 content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
\r
47 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
\r
51 <!-- Junit, Mockito, PowerMock -->
\r
53 <groupId>junit</groupId>
\r
54 <artifactId>junit</artifactId>
\r
55 <version>4.12</version>
\r
59 <groupId>org.mockito</groupId>
\r
60 <artifactId>mockito-core</artifactId>
\r
61 <version>2.0.5-beta</version>
\r
66 <groupId>org.powermock</groupId>
\r
67 <artifactId>powermock-api-mockito</artifactId>
\r
68 <version>1.6.2</version>
\r
72 <groupId>org.powermock</groupId>
\r
73 <artifactId>powermock-module-junit4</artifactId>
\r
74 <version>1.6.2</version>
\r
78 <groupId>org.javassist</groupId>
\r
79 <artifactId>javassist</artifactId>
\r
80 <version>3.18.2-GA</version>
\r
83 <groupId>com.googlecode.json-simple</groupId>
\r
84 <artifactId>json-simple</artifactId>
\r
85 <version>1.1.1</version>
\r
88 <groupId>com.google.guava</groupId>
\r
89 <artifactId>guava</artifactId>
\r
92 <groupId>commons-configuration</groupId>
\r
93 <artifactId>commons-configuration</artifactId>
\r
94 <version>1.10</version>
\r
97 <groupId>com.google.code.gson</groupId>
\r
98 <artifactId>gson</artifactId>
\r
99 <version>2.8.5</version>
\r
102 <groupId>com.google.inject</groupId>
\r
103 <artifactId>guice</artifactId>
\r
104 <version>4.2.0</version>
\r
107 <groupId>org.apache.commons</groupId>
\r
108 <artifactId>commons-lang3</artifactId>
\r
109 <version>3.5</version>
\r
112 <groupId>com.google.inject.extensions</groupId>
\r
113 <artifactId>guice-assistedinject</artifactId>
\r
114 <version>4.2.0</version>
\r
117 <groupId>org.milyn</groupId>
\r
118 <artifactId>milyn-smooks-all</artifactId>
\r
119 <version>1.7.0</version>
\r
122 <groupId>javax.servlet</groupId>
\r
123 <artifactId>servlet-api</artifactId>
\r
126 <groupId>ognl</groupId>
\r
127 <artifactId>ognl</artifactId>
\r
130 <groupId>javax.jms</groupId>
\r
131 <artifactId>jms</artifactId>
\r
136 <groupId>ognl</groupId>
\r
137 <artifactId>ognl</artifactId>
\r
138 <version>3.1.12</version>
\r
141 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
\r
142 <artifactId>dmaapClient</artifactId>
\r
143 <version>1.1.3</version>
\r
146 <groupId>javax.jms</groupId>
\r
147 <artifactId>jms</artifactId>
\r
151 <!-- Database dependency -->
\r
153 <groupId>org.postgresql</groupId>
\r
154 <artifactId>postgresql</artifactId>
\r
155 <version>42.2.5</version>
\r
158 <groupId>org.springframework</groupId>
\r
159 <artifactId>spring-jdbc</artifactId>
\r
160 <version>5.1.3.RELEASE</version>
\r
163 <groupId>org.springframework.boot</groupId>
\r
164 <artifactId>spring-boot-starter-web</artifactId>
\r
165 <version>2.1.1.RELEASE</version>
\r
168 <groupId>org.springframework.boot</groupId>
\r
169 <artifactId>spring-boot-starter-test</artifactId>
\r
170 <version>2.1.1.RELEASE</version>
\r
171 <scope>test</scope>
\r
174 <groupId>org.springframework.data</groupId>
\r
175 <artifactId>spring-data-commons</artifactId>
\r
176 <version>2.1.3.RELEASE</version>
\r
178 <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
\r
180 <groupId>org.slf4j</groupId>
\r
181 <artifactId>slf4j-api</artifactId>
\r
182 <version>1.7.25</version>
\r
185 <groupId>org.codehaus.groovy</groupId>
\r
186 <artifactId>groovy-all</artifactId>
\r
187 <version>2.4.14</version>
\r
190 <groupId>com.jayway.jsonpath</groupId>
\r
191 <artifactId>json-path</artifactId>
\r
192 <version>2.4.0</version>
\r
193 <scope>test</scope>
\r
196 <groupId>com.fasterxml.jackson.core</groupId>
\r
197 <artifactId>jackson-databind</artifactId>
\r
198 <version>2.9.7</version>
\r
201 <groupId>hsqldb</groupId>
\r
202 <artifactId>hsqldb</artifactId>
\r
203 <version>1.8.0.10</version>
\r
204 <scope>test</scope>
\r
206 <!-- https://mvnrepository.com/artifact/xalan/xalan -->
\r
208 <groupId>xalan</groupId>
\r
209 <artifactId>xalan</artifactId>
\r
210 <version>2.7.2</version>
\r
212 <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
\r
214 <groupId>xerces</groupId>
\r
215 <artifactId>xercesImpl</artifactId>
\r
216 <version>2.12.0</version>
\r
218 <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
\r
220 <groupId>com.thoughtworks.xstream</groupId>
\r
221 <artifactId>xstream</artifactId>
\r
222 <version>1.4.10</version>
\r
224 <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
\r
226 <groupId>xml-apis</groupId>
\r
227 <artifactId>xml-apis</artifactId>
\r
228 <version>1.4.01</version>
\r
230 <!-- http client -->
\r
232 <groupId>org.apache.httpcomponents</groupId>
\r
233 <artifactId>httpclient</artifactId>
\r
234 <version>${httpclient.version}</version>
\r
235 <scope>compile</scope>
\r
238 <groupId>org.apache.httpcomponents</groupId>
\r
239 <artifactId>httpmime</artifactId>
\r
240 <version>${httpclient.version}</version>
\r
241 <scope>compile</scope>
\r
243 <!-- <dependency> <groupId>org.onap.aai.event-client</groupId> <artifactId>event-client-dmaap</artifactId>
\r
244 <version>1.2.0</version> </dependency> -->
\r
246 <groupId>org.springframework.boot</groupId>
\r
247 <artifactId>spring-boot-configuration-processor</artifactId>
\r
248 <optional>true</optional>
\r
249 <version>2.1.1.RELEASE</version>
\r
257 <artifactId>maven-assembly-plugin</artifactId>
\r
258 <version>3.1.0</version>
\r
261 <groupId>com.spotify</groupId>
\r
262 <artifactId>docker-maven-plugin</artifactId>
\r
263 <version>1.0.0</version>
\r
266 </pluginManagement>
\r
269 <groupId>org.apache.maven.plugins</groupId>
\r
270 <artifactId>maven-surefire-plugin</artifactId>
\r
272 <reuseForks>false</reuseForks>
\r
273 <forkCount>1</forkCount>
\r
277 <artifactId>maven-assembly-plugin</artifactId>
\r
280 <descriptor>src/assembly/dep.xml</descriptor>
\r
282 <attach>false</attach>
\r
283 <appendAssemblyId>false</appendAssemblyId>
\r
284 <updateOnly>true</updateOnly>
\r
288 <id>make-assembly</id>
\r
289 <phase>package</phase>
\r
291 <goal>single</goal>
\r
297 <groupId>com.spotify</groupId>
\r
298 <artifactId>docker-maven-plugin</artifactId>
\r
299 <version>1.0.0</version>
\r
301 <skipDockerBuild>false</skipDockerBuild>
\r
302 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
\r
303 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
\r
306 <tag>${project.version}-${maven.build.timestamp}Z</tag>
\r
307 <tag>${project.version}</tag>
\r
309 <baseImage>ubuntu:16.04</baseImage>
\r
311 <HOSTALIASES>/etc/host.aliases</HOSTALIASES>
\r
313 <workdir>/opt/app/VESAdapter</workdir>
\r
316 <targetPath>.</targetPath>
\r
317 <directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
\r
321 <run>chmod +x bin/run.sh</run>
\r
323 <![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
327 <expose>8080</expose>
\r
328 <expose>8443</expose>
\r
330 <entryPoint>bin/run.sh</entryPoint>
\r
335 <id>build-image</id>
\r
336 <phase>package</phase>
\r
342 <id>tag-and-push-image-latest</id>
\r
343 <phase>deploy</phase>
\r
348 <image>${docker.image.name}:latest</image>
\r
349 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
\r
350 <pushImage>true</pushImage>
\r
354 <id>tag-and-push-image-with-version</id>
\r
355 <phase>deploy</phase>
\r
360 <image>${docker.image.name}:latest</image>
\r
361 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}
\r
363 <pushImage>true</pushImage>
\r
367 <id>tag-and-push-image-with-version-and-date</id>
\r
368 <phase>deploy</phase>
\r
373 <image>${docker.image.name}:latest</image>
\r
375 ${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z
\r
377 <pushImage>true</pushImage>
\r
383 <groupId>org.springframework.boot</groupId>
\r
384 <artifactId>spring-boot-maven-plugin</artifactId>
\r
385 <version>2.1.1.RELEASE</version>
\r
389 <goal>repackage</goal>
\r
392 <mainClass>org.onap.universalvesadapter.Application</mainClass>
\r
398 <groupId>org.codehaus.mojo</groupId>
\r
399 <artifactId>build-helper-maven-plugin</artifactId>
\r
400 <version>1.9.1</version>
\r
403 <id>add-source</id>
\r
404 <phase>generate-sources</phase>
\r
406 <goal>add-source</goal>
\r
410 <source>src/gen/java</source>
\r
414 <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal>
\r
415 </goals> <configuration> <name>docker.version</name> <value>${project.version}</value>
\r
416 <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement>
\r
417 <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
\r
421 <!-- <finalName>UniversalVesAdapter</finalName> -->
\r
426 <id>with-system-proxy</id>
\r
430 <groupId>com.spotify</groupId>
\r
431 <artifactId>docker-maven-plugin</artifactId>
\r
434 <http_proxy>${env.http_proxy}</http_proxy>
\r
446 <id>spring-releases</id>
\r
447 <url>https://repo.spring.io/libs-release</url>
\r
450 <pluginRepositories>
\r
452 <id>spring-releases</id>
\r
453 <url>https://repo.spring.io/libs-release</url>
\r
454 </pluginRepository>
\r
455 </pluginRepositories>
\r