Fix spotify entrypoint
[dcaegen2/services/mapper.git] / UniversalVesAdapter / pom.xml
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>
17
18         <groupId>org.onap.dcaegen2.services.mapper.vesadapter</groupId>
19         <artifactId>UniversalVesAdapter</artifactId>
20         <version>0.0.1</version>
21
22
23         <parent>
24                 <groupId>org.onap.dcaegen2.services.mapper</groupId>
25                 <artifactId>mapper</artifactId>
26                 <version>0.0.1-SNAPSHOT</version>
27         </parent>
28
29         <dependencies>
30                 <dependency>
31                         <groupId>com.google.guava</groupId>
32                         <artifactId>guava</artifactId>
33                         <version>25.1-jre</version>
34                 </dependency>
35
36                 <dependency>
37                         <groupId>com.google.code.gson</groupId>
38                         <artifactId>gson</artifactId>
39                         <version>2.8.5</version>
40                 </dependency>
41
42                 <dependency>
43                         <groupId>com.google.inject</groupId>
44                         <artifactId>guice</artifactId>
45                         <version>4.2.0</version>
46                 </dependency>
47                 <dependency>
48
49                         <groupId>org.apache.commons</groupId>
50                         <artifactId>commons-lang3</artifactId>
51                         <version>3.5</version>
52                 </dependency>
53                 <dependency>
54                         <groupId>com.google.inject.extensions</groupId>
55                         <artifactId>guice-assistedinject</artifactId>
56                         <version>4.2.0</version>
57                 </dependency>
58                 <dependency>
59                         <groupId>org.milyn</groupId>
60                         <artifactId>milyn-smooks-all</artifactId>
61                         <version>1.7.0</version>
62                         <exclusions>
63                                 <exclusion>
64                                         <groupId>javax.servlet</groupId>
65                                         <artifactId>servlet-api</artifactId>
66                                 </exclusion>
67                         </exclusions>
68                 </dependency>
69                 <dependency>
70                         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
71                         <artifactId>dmaapClient</artifactId>
72                         <version>1.1.3</version>
73                 </dependency>
74                 <!-- Database dependency -->
75                 <dependency>
76                         <groupId>org.postgresql</groupId>
77                         <artifactId>postgresql</artifactId>
78                         <version>42.2.4</version>
79                 </dependency>
80
81                 <dependency>
82                         <groupId>org.springframework</groupId>
83                         <artifactId>spring-jdbc</artifactId>
84                         <version>5.0.7.RELEASE</version>
85                 </dependency>
86                 <dependency>
87                         <groupId>org.springframework.boot</groupId>
88                         <artifactId>spring-boot-starter-web</artifactId>
89                         <version>2.0.3.RELEASE</version>
90                 </dependency>
91                 <dependency>
92                         <groupId>org.springframework.boot</groupId>
93                         <artifactId>spring-boot-starter-test</artifactId>
94                         <version>2.0.3.RELEASE</version>
95                         <scope>test</scope>
96                 </dependency>
97                 <dependency>
98                         <groupId>org.springframework.data</groupId>
99                         <artifactId>spring-data-commons</artifactId>
100                         <version>2.0.6.RELEASE</version>
101                 </dependency>
102
103                 <dependency>
104                         <groupId>com.jayway.jsonpath</groupId>
105                         <artifactId>json-path</artifactId>
106                         <version>2.4.0</version>
107                         <scope>test</scope>
108                 </dependency>
109
110                 <dependency>
111                         <groupId>com.fasterxml.jackson.core</groupId>
112                         <artifactId>jackson-databind</artifactId>
113                         <version>2.9.5</version>
114                 </dependency>
115
116
117                 <dependency>
118                         <groupId>hsqldb</groupId>
119                         <artifactId>hsqldb</artifactId>
120                         <version>1.8.0.10</version>
121                         <scope>test</scope>
122                 </dependency>
123
124                 <!-- https://mvnrepository.com/artifact/xalan/xalan -->
125                 <dependency>
126                         <groupId>xalan</groupId>
127                         <artifactId>xalan</artifactId>
128                         <version>2.7.2</version>
129                 </dependency>
130
131                 <!-- https://mvnrepository.com/artifact/xerces/xercesImpl -->
132                 <dependency>
133                         <groupId>xerces</groupId>
134                         <artifactId>xercesImpl</artifactId>
135                         <version>2.11.0-atlassian-01</version>
136                 </dependency>
137
138                 <!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
139                 <dependency>
140                         <groupId>com.thoughtworks.xstream</groupId>
141                         <artifactId>xstream</artifactId>
142                         <version>1.4.10</version>
143                 </dependency>
144                 <!-- https://mvnrepository.com/artifact/xml-apis/xml-apis -->
145                 <dependency>
146                         <groupId>xml-apis</groupId>
147                         <artifactId>xml-apis</artifactId>
148                         <version>1.4.01</version>
149                 </dependency>
150                 <!-- http client -->
151                 <dependency>
152                         <groupId>org.apache.httpcomponents</groupId>
153                         <artifactId>httpclient</artifactId>
154                         <version>${httpclient.version}</version>
155                         <scope>compile</scope>
156                 </dependency>
157
158                 <dependency>
159                         <groupId>org.apache.httpcomponents</groupId>
160                         <artifactId>httpmime</artifactId>
161                         <version>${httpclient.version}</version>
162                         <scope>compile</scope>
163                 </dependency>
164                 <!-- <dependency> <groupId>org.onap.aai.event-client</groupId> <artifactId>event-client-dmaap</artifactId> 
165                         <version>1.2.0</version> </dependency> -->
166
167                 <dependency>
168                         <groupId>org.springframework.boot</groupId>
169                         <artifactId>spring-boot-configuration-processor</artifactId>
170                         <optional>true</optional>
171                         <version>2.0.4.RELEASE</version>
172                 </dependency>
173         </dependencies>
174
175         <properties>
176                 <java.version>1.8</java.version>
177         </properties>
178
179
180         <build>
181                 <plugins>
182                         <plugin>
183                                 <groupId>org.apache.maven.plugins</groupId>
184                                 <artifactId>maven-surefire-plugin</artifactId>
185                                 <configuration>
186                                         <reuseForks>false</reuseForks>
187                                         <forkCount>1</forkCount>
188                                 </configuration>
189                         </plugin>
190                         <plugin>
191                                 <groupId>org.springframework.boot</groupId>
192                                 <artifactId>spring-boot-maven-plugin</artifactId>
193                                 <version>2.0.0.RELEASE</version>
194                                 <executions>
195                                         <execution>
196                                                 <goals>
197                                                         <goal>repackage</goal>
198                                                 </goals>
199                                                 <configuration>
200                                                         <mainClass>org.onap.universalvesadapter.Application</mainClass>
201                                                 </configuration>
202                                         </execution>
203                                 </executions>
204                         </plugin>
205                         <plugin>
206                                 <groupId>com.spotify</groupId>
207                                 <artifactId>docker-maven-plugin</artifactId>
208                                 <version>${docker.maven.version}</version>
209                                 <configuration>
210                                         <skipDockerBuild>false</skipDockerBuild>
211                                         <imageName>${onap.nexus.dockerregistry.daily}/onap/${project.groupId}.universalvesadaptor</imageName>
212                                         <baseImage>openjdk:8-jre</baseImage>
213                                         <entryPoint>["java", "-jar", "/opt/${project.build.finalName}.jar", "server"]</entryPoint>
214                                         <resources>
215                                                 <resource>
216                                                         <targetPath>/opt</targetPath>
217                                                         <directory>${project.build.directory}</directory>
218                                                         <include>${project.build.finalName}.jar</include>
219                                                 </resource>
220                                         </resources>
221                                         <exposes>
222                                                 <expose>8080</expose>
223                                         </exposes>
224                                         <imageTags>
225                                                 <!--imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag -->
226                                                 <imageTag>${project.version}</imageTag>
227                                                 <imageTag>latest</imageTag>
228                                         </imageTags>
229                                         <serverId>${onap.nexus.dockerregistry.daily}</serverId>
230                                 </configuration>
231                         </plugin>
232                         <plugin>
233                                 <groupId>org.codehaus.mojo</groupId>
234                                 <artifactId>build-helper-maven-plugin</artifactId>
235                                 <version>1.9.1</version>
236                                 <executions>
237                                         <execution>
238                                                 <id>add-source</id>
239                                                 <phase>generate-sources</phase>
240                                                 <goals>
241                                                         <goal>add-source</goal>
242                                                 </goals>
243                                                 <configuration>
244                                                         <sources>
245                                                                 <source>src/gen/java</source>
246                                                         </sources>
247                                                 </configuration>
248                                         </execution>
249                                         <!-- <execution> <id>regex-property</id> <goals> <goal>regex-property</goal> 
250                                                 </goals> <configuration> <name>docker.version</name> <value>${project.version}</value> 
251                                                 <regex>(^[0-9]+.[0-9]+.[0-9]+$)</regex> <replacement>$1-STAGING</replacement> 
252                                                 <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> -->
253                                 </executions>
254                         </plugin>
255                 </plugins>
256                 <finalName>UniversalVesAdapter</finalName>
257         </build>
258
259         <repositories>
260                 <repository>
261                         <id>spring-releases</id>
262                         <url>https://repo.spring.io/libs-release</url>
263                 </repository>
264         </repositories>
265         <pluginRepositories>
266                 <pluginRepository>
267                         <id>spring-releases</id>
268                         <url>https://repo.spring.io/libs-release</url>
269                 </pluginRepository>
270         </pluginRepositories>
271 </project>