Fix networkId issue while making call to oof
[dcaegen2/services/son-handler.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /*******************************************************************************
4  *  ============LICENSE_START=======================================================
5  *  son-handler
6  *  ================================================================================
7  *   Copyright (C) 2019-2020 Wipro Limited.
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  *******************************************************************************/
23   -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26         <modelVersion>4.0.0</modelVersion>
27         <groupId>org.onap.dcaegen2.services.son-handler</groupId>
28         <artifactId>son-handler</artifactId>
29         <name>dcaegen2-services-son-handler</name>
30         <version>2.0.3-SNAPSHOT</version>
31
32         <!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId>
33                 <version>2.0.4.RELEASE</version> </parent -->
34
35         <parent>
36                 <groupId>org.onap.oparent</groupId>
37                 <artifactId>oparent</artifactId>
38                 <version>2.0.0</version>
39                 <relativePath />
40         </parent>
41
42
43         <properties>
44                 <sdk.version>1.1.4</sdk.version>
45                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46                 <maven.compiler.source>1.8</maven.compiler.source>
47                 <maven.compiler.target>1.8</maven.compiler.target>
48                 <docker.image.name>onap/org.onap.dcaegen2.services.son-handler</docker.image.name>
49                 <!-- NEXUS RELATED SETTINGS -->
50                 <nexusproxy>https://nexus.onap.org</nexusproxy>
51                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
52                 <releases.path>content/repositories/releases/</releases.path>
53                 <site.path>content/sites/site/org/onap/dcaegen2/services/son-handler/${project.artifactId}/${project.version}</site.path>
54                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
55                 <sonar.coverage.jacoco.xmlReportPaths>
56                   ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
57                 </sonar.coverage.jacoco.xmlReportPaths>
58         </properties>
59
60         <dependencies>
61                 <!-- cbs client -->
62                 <dependency>
63                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
64                         <artifactId>cbs-client</artifactId>
65                         <version>${sdk.version}</version>
66                 </dependency>
67
68                 <dependency>
69                         <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
70                         <artifactId>crypt-password</artifactId>
71                         <version>${sdk.version}</version>
72                 </dependency>
73                 <dependency>
74                         <!-- Import dependency management from Spring Boot -->
75                         <groupId>org.springframework.boot</groupId>
76                         <artifactId>spring-boot-dependencies</artifactId>
77                         <version>2.0.4.RELEASE</version>
78                         <type>pom</type>
79                         <scope>import</scope>
80                 </dependency>
81                 <dependency>
82                         <groupId>com.att.nsa</groupId>
83                         <artifactId>cambriaClient</artifactId>
84                         <version>0.0.1</version>
85                 </dependency>
86                 <dependency>
87                         <groupId>junit</groupId>
88                         <artifactId>junit</artifactId>
89                         <scope>test</scope>
90                 </dependency>
91                 <dependency>
92                         <groupId>com.fasterxml.jackson.core</groupId>
93                         <artifactId>jackson-core</artifactId>
94                         <version>2.9.9</version>
95                 </dependency>
96                 <dependency>
97                         <groupId>com.fasterxml.jackson.core</groupId>
98                         <artifactId>jackson-databind</artifactId>
99                         <version>2.9.9</version>
100                 </dependency>
101                 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
102                 <dependency>
103                         <groupId>javax.json</groupId>
104                         <artifactId>javax.json-api</artifactId>
105                         <version>1.1.2</version>
106                 </dependency>
107                 <dependency>
108                         <groupId>org.springframework.boot</groupId>
109                         <artifactId>spring-boot-starter-web</artifactId>
110                         <version>2.0.4.RELEASE</version>
111                 </dependency>
112                 <dependency>
113                         <groupId>org.postgresql</groupId>
114                         <artifactId>postgresql</artifactId>
115                         <version>42.2.5</version>
116                 </dependency>
117                 <dependency>
118                         <groupId>org.springframework.boot</groupId>
119                         <artifactId>spring-boot-starter-data-jpa</artifactId>
120                         <version>2.0.9.RELEASE</version>
121                 </dependency>
122                 <dependency>
123                         <groupId>org.springframework.data</groupId>
124                         <artifactId>spring-data-commons-core</artifactId>
125                         <version>1.4.0.RELEASE</version>
126                 </dependency>
127
128                 <dependency>
129                         <groupId>org.hibernate.javax.persistence</groupId>
130                         <artifactId>hibernate-jpa-2.0-api</artifactId>
131                         <version>1.0.1.Final</version>
132                 </dependency>
133                 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
134                 <dependency>
135                         <groupId>org.springframework</groupId>
136                         <artifactId>spring-beans</artifactId>
137                         <version>5.0.10.RELEASE</version>
138                 </dependency>
139
140                 <dependency>
141                         <groupId>org.springframework.boot</groupId>
142                         <artifactId>spring-boot-starter-test</artifactId>
143                         <version>2.0.4.RELEASE</version>
144                         <scope>test</scope>
145                         <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
146                                 </exclusion> </exclusions -->
147                 </dependency>
148                 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
149
150                 <dependency>
151                         <groupId>org.mockito</groupId>
152                         <artifactId>mockito-core</artifactId>
153                         <version>1.10.16</version>
154                         <scope>test</scope>
155                 </dependency>
156
157
158                 <dependency>
159                         <groupId>junit</groupId>
160                         <artifactId>junit</artifactId>
161                         <version>4.12</version>
162                         <scope>test</scope>
163                 </dependency>
164                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
165                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
166                 <dependency>
167                         <groupId>org.powermock</groupId>
168                         <artifactId>powermock-api-mockito</artifactId>
169                         <version>1.6.4</version>
170                         <scope>test</scope>
171                 </dependency>
172                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
173                 <dependency>
174                         <groupId>org.powermock</groupId>
175                         <artifactId>powermock-module-junit4</artifactId>
176                         <version>1.6.4</version>
177                         <scope>test</scope>
178                 </dependency>
179
180                 <dependency>
181                     <groupId>org.functionaljava</groupId>
182                     <artifactId>functionaljava</artifactId>
183                     <version>3.0</version>
184             </dependency>
185             <dependency>
186                     <groupId>org.springframework</groupId>
187                     <artifactId>spring-core</artifactId>
188                     <version>5.0.9.RELEASE</version>
189             </dependency>
190             <dependency>
191                     <groupId>org.springframework</groupId>
192                     <artifactId>spring-expression</artifactId>
193                     <version>5.0.9.RELEASE</version>
194             </dependency>
195             <dependency>
196                     <groupId>org.springframework</groupId>
197                     <artifactId>spring-web</artifactId>
198                     <version>5.0.10.RELEASE</version>
199             </dependency>
200             <dependency>
201                     <groupId>org.springframework</groupId>
202                     <artifactId>spring-webmvc</artifactId>
203                     <version>5.0.9.RELEASE</version>
204             </dependency>
205             <dependency>
206                     <groupId>org.apache.tomcat.embed</groupId>
207                     <artifactId>tomcat-embed-core</artifactId>
208                     <version>9.0.16</version>
209             </dependency>
210             <dependency>
211                     <groupId>org.apache.httpcomponents</groupId>
212                     <artifactId>httpclient</artifactId>
213                 <version>4.5.7</version>
214             </dependency>
215
216            <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
217             <dependency>
218                    <groupId>commons-beanutils</groupId>
219                    <artifactId>commons-beanutils</artifactId>
220                    <version>1.9.4</version>
221             </dependency>
222             <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
223             <dependency>
224                    <groupId>org.eclipse.jetty</groupId>
225                    <artifactId>jetty-server</artifactId>
226                    <version>9.4.17.v20190418</version>
227             </dependency>
228             <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
229             <dependency>
230                    <groupId>org.webjars</groupId>
231                    <artifactId>bootstrap</artifactId>
232                    <version>4.3.1</version>
233             </dependency>
234
235         </dependencies>
236
237         <build>
238                 <plugins>
239
240                         <!--plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
241                                 <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution>
242                                 <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId>
243                                 <versionRange>2.17,)</versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter>
244                                 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
245                                 </configuration> </plugin -->
246                         <plugin>
247                                 <groupId>org.springframework.boot</groupId>
248                                 <artifactId>spring-boot-maven-plugin</artifactId>
249                                 <version>2.0.4.RELEASE</version>
250                                 <executions>
251                                         <execution>
252                                                 <goals>
253                                                         <goal>repackage</goal>
254                                                 </goals>
255                                         </execution>
256                                 </executions>
257                         </plugin>
258                         <plugin>
259                                 <groupId>com.spotify</groupId>
260                                 <artifactId>docker-maven-plugin</artifactId>
261                                 <configuration>
262                                         <serverId>${onap.nexus.dockerregistry.daily}</serverId>
263
264                                         <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
265                                         <imageTags>
266                                                 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
267                                                 <imageTag>${project.version}</imageTag>
268                                                 <imageTag>latest</imageTag>
269                                         </imageTags>
270                                         <baseImage>openjdk:8-alpine</baseImage>
271                                         <user>sonhms</user>
272                                         <resources>
273                                                 <resource>
274                                                         <targetPath>/bin</targetPath>
275                                                         <directory>${project.build.directory}</directory>
276                                                         <include>${project.artifactId}-${project.version}.jar</include>
277                                                 </resource>
278                                         </resources>
279                                         <runs>
280                                                 <!-- Maven is loosing file permissions during artifacts copy -->
281                                                 <run>adduser --disabled-password sonhms </run>
282                                                 <run>mv /bin/*.jar /bin/application.jar</run>
283                                                 <run>chmod -R 777 /bin</run>
284                                         </runs>
285                                         <exposes>
286                                                 <expose>8080</expose>
287                                         </exposes>
288                                         <entryPoint>java -jar /bin/application.jar</entryPoint>
289                                 </configuration>
290 <!--
291                                 <executions>
292                                         <execution>
293                                                 <id>build-image</id>
294                                                 <phase>package</phase>
295                                                 <goals>
296                                                         <goal>build</goal>
297                                                 </goals>
298                                         </execution>
299                                         <execution>
300                                                 <id>tag-and-push-image-latest</id>
301                                                 <phase>deploy</phase>
302                                                 <goals>
303                                                         <goal>tag</goal>
304                                                 </goals>
305                                                 <configuration>
306                                                         <image>${docker.image.name}:latest</image>
307                                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
308                                                         <pushImage>true</pushImage>
309                                                 </configuration>
310                                         </execution>
311                                         <execution>
312                                                 <id>tag-and-push-image-with-version</id>
313                                                 <phase>deploy</phase>
314                                                 <goals>
315                                                         <goal>tag</goal>
316                                                 </goals>
317                                                 <configuration>
318                                                         <image>${docker.image.name}:latest</image>
319                                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
320                                                         <pushImage>true</pushImage>
321                                                 </configuration>
322                                         </execution>
323                                         <execution>
324                                                 <id>tag-and-push-image-with-version-and-date</id>
325                                                 <phase>deploy</phase>
326                                                 <goals>
327                                                         <goal>tag</goal>
328                                                 </goals>
329                                                 <configuration>
330                                                         <image>${docker.image.name}:latest</image>
331                                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
332                                                         <pushImage>true</pushImage>
333                                                 </configuration>
334                                         </execution>
335                                 </executions>
336 -->
337                         </plugin>
338                 </plugins>
339         </build>
340 </project>
341
342