blob: 84c9539bc1a7df255dd5be749c0c69c8526bbf1b [file] [log] [blame]
elinuxhenrikd661dbc2018-08-17 12:34:58 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ Datafile Collector Service
5 ~ ================================================================================
6 ~ Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
7 ~ ================================================================================
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
11 ~
12 ~ http://www.apache.org/licenses/LICENSE-2.0
13 ~
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
19 ~ ============LICENSE_END=========================================================
20 -->
21<project xmlns="http://maven.apache.org/POM/4.0.0"
22 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <parent>
25 <artifactId>datafile</artifactId>
26 <groupId>org.onap.dcaegen2.collectors</groupId>
27 <version>1.0.0-SNAPSHOT</version>
28 </parent>
29 <modelVersion>4.0.0</modelVersion>
30
31 <artifactId>datafile-app-server</artifactId>
32 <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
33 <packaging>jar</packaging>
34 <properties>
35 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
36 <project.fatJar.finalName>datafile-app-server</project.fatJar.finalName>
37 <nexusproxy>https://nexus.onap.org</nexusproxy>
38 <snapshots.path>content/repositories/snapshots/</snapshots.path>
39 <releases.path>content/repositories/releases/</releases.path>
40 <docker.repo.url>${onap.nexus.dockerregistry.daily}</docker.repo.url>
41 <nexus.staging>false</nexus.staging>
42 </properties>
43 <build>
44 <plugins>
45 <plugin>
46 <groupId>org.apache.maven.plugins</groupId>
47 <artifactId>maven-compiler-plugin</artifactId>
48 </plugin>
49 <plugin>
50 <groupId>org.apache.maven.plugins</groupId>
51 <artifactId>maven-resources-plugin</artifactId>
52 <executions>
53 <execution>
54 <id>custom-resources</id>
55 <phase>process-resources</phase>
56 <goals>
57 <goal>copy-resources</goal>
58 </goals>
59 <configuration>
60 <outputDirectory>${project.build.directory}/config</outputDirectory>
61 <resources>
62 <resource>
63 <directory>${project.basedir}/config</directory>
64 <filtering>true</filtering>
65 </resource>
66 </resources>
67 <encoding>UTF-8</encoding>
68 </configuration>
69 </execution>
70 </executions>
71 </plugin>
72 <plugin>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-maven-plugin</artifactId>
75 <executions>
76 <execution>
77 <goals>
78 <goal>repackage</goal>
79 </goals>
80 </execution>
81 </executions>
82 <configuration>
83 <finalName>${project.fatJar.finalName}</finalName>
84 <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass>
85 </configuration>
86 </plugin>
87 <!-- This plugin may go away in favor of a custom Dockerfile provided by Carsten and co. -->
88 <plugin>
89 <groupId>com.spotify</groupId>
90 <artifactId>docker-maven-plugin</artifactId>
91 <configuration>
92 <skipDockerBuild>false</skipDockerBuild>
93 <imageName>
94 ${docker.repo.url}/onap/${project.groupId}.${project.artifactId}
95 </imageName>
96 <baseImage>openjdk:8-jre-alpine</baseImage>
97 <entryPoint>["java", "-jar", "/opt/${project.fatJar.finalName}.jar"]</entryPoint>
98 <resources>
99 <resource>
100 <targetPath>/opt</targetPath>
101 <directory>${project.build.directory}</directory>
102 <include>${project.fatJar.finalName}.jar</include>
103 </resource>
104 <resource>
105 <targetPath>/config</targetPath>
106 <directory>${project.build.directory}/config</directory>
107 <include>*</include>
108 </resource>
109 </resources>
110 <exposes>
111 <expose>8100</expose>
112 <expose>8433</expose>
113 </exposes>
114 <imageTags>
115 <imageTag>${project.version}-SNAPSHOT-${maven.build.timestamp}Z</imageTag>
116 <imageTag>${project.version}</imageTag>
117 <imageTag>latest</imageTag>
118 </imageTags>
119 <serverId>${docker.repo.url}</serverId>
120 </configuration>
121 </plugin>
122 <plugin>
123 <groupId>org.sonatype.plugins</groupId>
124 <artifactId>nexus-staging-maven-plugin</artifactId>
125 <version>1.6.7</version>
126 <extensions>true</extensions>
127 <configuration>
128 <serverId>ecomp-staging</serverId>
129 <nexusUrl>${nexusproxy}</nexusUrl>
130 <stagingProfileId>176c31dfe190a</stagingProfileId>
131 <skipNexusStagingDeployMojo>${nexus.staging}</skipNexusStagingDeployMojo>
132 </configuration>
133 </plugin>
134 </plugins>
135 </build>
136 <dependencies>
137
138 <!--DEVELOPMENT DEPENDENCIES-->
139 <dependency>
140 <groupId>org.springframework.boot</groupId>
141 <artifactId>spring-boot-starter-web</artifactId>
142 </dependency>
143 <dependency>
144 <groupId>org.springframework.boot</groupId>
145 <artifactId>spring-boot-starter-webflux</artifactId>
146 </dependency>
147 <dependency>
148 <groupId>com.spotify</groupId>
149 <artifactId>docker-maven-plugin</artifactId>
150 <exclusions>
151 <exclusion>
152 <groupId>com.fasterxml.jackson.core</groupId>
153 <artifactId>jackson-databind</artifactId>
154 </exclusion>
155 </exclusions>
156 </dependency>
157 <dependency>
158 <groupId>io.projectreactor</groupId>
159 <artifactId>reactor-core</artifactId>
160 </dependency>
161 <dependency>
162 <groupId>org.bouncycastle</groupId>
163 <artifactId>bcprov-jdk15on</artifactId>
164 </dependency>
165 <dependency>
166 <groupId>org.bouncycastle</groupId>
167 <artifactId>bcpkix-jdk15on</artifactId>
168 </dependency>
169 <dependency>
170 <groupId>org.codehaus.plexus</groupId>
171 <artifactId>plexus-utils</artifactId>
172 </dependency>
173 <dependency>
174 <groupId>org.apache.tomcat.embed</groupId>
175 <artifactId>tomcat-embed-core</artifactId>
176 </dependency>
177 <dependency>
178 <groupId>org.apache.tomcat.embed</groupId>
179 <artifactId>tomcat-embed-el</artifactId>
180 </dependency>
181 <dependency>
182 <groupId>org.apache.tomcat.embed</groupId>
183 <artifactId>tomcat-embed-websocket</artifactId>
184 </dependency>
185 <dependency>
186 <groupId>org.immutables</groupId>
187 <artifactId>value</artifactId>
188 </dependency>
189 <dependency>
190 <groupId>org.immutables</groupId>
191 <artifactId>gson</artifactId>
192 </dependency>
193 <dependency>
194 <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
195 <artifactId>datafile-commons</artifactId>
196 <version>1.0.0-SNAPSHOT</version>
197 </dependency>
198
199
200 <!-- LOGGING DEPENDENCIES-->
201 <dependency>
202 <groupId>ch.qos.logback</groupId>
203 <artifactId>logback-classic</artifactId>
204 </dependency>
205 <dependency>
206 <groupId>org.slf4j</groupId>
207 <artifactId>jul-to-slf4j</artifactId>
208 </dependency>
209 <dependency>
210 <groupId>org.slf4j</groupId>
211 <artifactId>log4j-over-slf4j</artifactId>
212 </dependency>
213
214 <!--TESTS DEPENDENCIES -->
215 <dependency>
216 <groupId>io.projectreactor</groupId>
217 <artifactId>reactor-test</artifactId>
218 <scope>test</scope>
219 </dependency>
220 <dependency>
221 <groupId>org.junit.jupiter</groupId>
222 <artifactId>junit-jupiter-engine</artifactId>
223 <scope>test</scope>
224 </dependency>
225 <dependency>
226 <groupId>org.junit.vintage</groupId>
227 <artifactId>junit-vintage-engine</artifactId>
228 <scope>test</scope>
229 </dependency>
230 <dependency>
231 <groupId>org.springframework</groupId>
232 <artifactId>spring-test</artifactId>
233 <scope>test</scope>
234 </dependency>
235 <dependency>
236 <groupId>org.junit.platform</groupId>
237 <artifactId>junit-platform-launcher</artifactId>
238 </dependency>
239 <dependency>
240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot-starter-test</artifactId>
242 <scope>test</scope>
243 </dependency>
244 <dependency>
245 <groupId>org.mockito</groupId>
246 <artifactId>mockito-core</artifactId>
247 <scope>test</scope>
248 </dependency>
249 <dependency>
250 <groupId>org.glassfish.jersey.connectors</groupId>
251 <artifactId>jersey-apache-connector</artifactId>
252 <scope>test</scope>
253 </dependency>
254 <dependency>
255 <groupId>org.testng</groupId>
256 <artifactId>testng</artifactId>
257 </dependency>
258 <dependency>
259 <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
260 <artifactId>datafile-aai-client</artifactId>
261 <version>${project.parent.version}</version>
262 </dependency>
263 <dependency>
264 <groupId>org.onap.dcaegen2.collectors.datafile</groupId>
265 <artifactId>datafile-dmaap-client</artifactId>
266 <version>${project.parent.version}</version>
267 </dependency>
268
269 <!--REQUIRED TO GENERATE DOCUMENTATION -->
270 <dependency>
271 <groupId>io.springfox</groupId>
272 <artifactId>springfox-swagger2</artifactId>
273 </dependency>
274 <dependency>
275 <groupId>io.springfox</groupId>
276 <artifactId>springfox-swagger-ui</artifactId>
277 </dependency>
278 </dependencies>
279 <dependencyManagement>
280 <dependencies>
281 <dependency>
282 <!-- IMPORT DEPENDENCY MANAGEMENT FROM SPRING BOOT -->
283 <groupId>org.springframework.boot</groupId>
284 <artifactId>spring-boot-dependencies</artifactId>
285 <version>2.0.1.RELEASE</version>
286 <type>pom</type>
287 <scope>import</scope>
288 </dependency>
289 </dependencies>
290 </dependencyManagement>
291</project>