pom updates for version settings
[dmaap/datarouter.git] / datarouter-prov / pom.xml
1 <!--
2   ============LICENSE_START==================================================
3   * org.onap.dmaap
4   * ===========================================================================
5   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6   * Modifications Copyright (C) 2018 Nokia. 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   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22   *
23 -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.dmaap.datarouter</groupId>
28         <artifactId>parent</artifactId>
29         <version>${revision}</version>
30         <relativePath>../pom.xml</relativePath>
31     </parent>
32     <artifactId>datarouter-prov</artifactId>
33     <packaging>jar</packaging>
34     <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
35     <properties>
36         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
37         <docker.location>${basedir}/target/${project.artifactId}</docker.location>
38         <datarouter.prov.image.name>${docker.image.root}${project.artifactId}</datarouter.prov.image.name>
39         <sonar.exclusions>**/src/main/java/org/onap/dmaap/datarouter/reports/**</sonar.exclusions>
40         <sonar.language>java</sonar.language>
41         <sonar.skip>false</sonar.skip>
42     </properties>
43     <dependencies>
44         <dependency>
45             <groupId>org.hamcrest</groupId>
46             <artifactId>hamcrest-library</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.slf4j</groupId>
50             <artifactId>slf4j-api</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>commons-codec</groupId>
54             <artifactId>commons-codec</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>ch.qos.logback</groupId>
58             <artifactId>logback-classic</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>ch.qos.logback</groupId>
62             <artifactId>logback-core</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.json</groupId>
66             <artifactId>json</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>com.intellij</groupId>
70             <artifactId>annotations</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>javax.servlet</groupId>
74             <artifactId>javax.servlet-api</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>javax.mail</groupId>
78             <artifactId>javax.mail-api</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>com.att.eelf</groupId>
82             <artifactId>eelf-core</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>org.onap.aaf.authz</groupId>
86             <artifactId>aaf-cadi-core</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>org.eclipse.jetty</groupId>
90             <artifactId>jetty-server</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>org.eclipse.jetty</groupId>
94             <artifactId>jetty-continuation</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.eclipse.jetty</groupId>
98             <artifactId>jetty-util</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.eclipse.jetty</groupId>
102             <artifactId>jetty-servlet</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.eclipse.jetty</groupId>
106             <artifactId>jetty-http</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>org.eclipse.jetty</groupId>
110             <artifactId>jetty-io</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>commons-io</groupId>
114             <artifactId>commons-io</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.apache.httpcomponents</groupId>
118             <artifactId>httpcore</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.apache.httpcomponents</groupId>
122             <artifactId>httpclient</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.sonatype.http-testing-harness</groupId>
126             <artifactId>junit-runner</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>junit</groupId>
130             <artifactId>junit</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>org.mockito</groupId>
134             <artifactId>mockito-core</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>org.powermock</groupId>
138             <artifactId>powermock-module-junit4</artifactId>
139         </dependency>
140         <dependency>
141             <groupId>org.powermock</groupId>
142             <artifactId>powermock-api-mockito</artifactId>
143         </dependency>
144         <dependency>
145             <groupId>org.powermock</groupId>
146             <artifactId>powermock-api-support</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>org.powermock</groupId>
150             <artifactId>powermock-core</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.apache.commons</groupId>
154             <artifactId>commons-lang3</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.mariadb.jdbc</groupId>
158             <artifactId>mariadb-java-client</artifactId>
159             <version>2.2.5</version>
160         </dependency>
161         <dependency>
162             <groupId>com.h2database</groupId>
163             <artifactId>h2</artifactId>
164             <version>1.4.197</version>
165         </dependency>
166         <dependency>
167             <groupId>org.hibernate</groupId>
168             <artifactId>hibernate-entitymanager</artifactId>
169             <version>5.2.9.Final</version>
170         </dependency>
171         <dependency>
172             <groupId>org.hamcrest</groupId>
173             <artifactId>hamcrest-core</artifactId>
174             <version>1.3</version>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>org.hibernate.javax.persistence</groupId>
179             <artifactId>hibernate-jpa-2.1-api</artifactId>
180             <version>1.0.2.Final</version>
181         </dependency>
182     </dependencies>
183     <profiles>
184         <profile>
185             <id>docker</id>
186             <properties>
187                 <skipTests>true</skipTests>
188             </properties>
189             <build>
190                 <plugins>
191                     <plugin>
192                         <groupId>org.codehaus.gmaven</groupId>
193                         <artifactId>gmaven-plugin</artifactId>
194                     </plugin>
195                     <plugin>
196                         <groupId>io.fabric8</groupId>
197                         <artifactId>docker-maven-plugin</artifactId>
198                         <configuration>
199                             <images>
200                                 <image>
201                                     <name>${datarouter.prov.image.name}</name>
202                                     <build>
203                                         <cleanup>try</cleanup>
204                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
205                                         <dockerFile>Dockerfile</dockerFile>
206                                         <tags>
207                                             <tag>${dockertag1}</tag>
208                                             <tag>${dockertag2}</tag>
209                                         </tags>
210                                     </build>
211                                 </image>
212                             </images>
213                         </configuration>
214                         <executions>
215                             <execution>
216                                 <id>generate-images</id>
217                                 <phase>install</phase>
218                                 <goals>
219                                     <goal>build</goal>
220                                 </goals>
221                             </execution>
222                             <execution>
223                                 <id>push-images</id>
224                                 <phase>deploy</phase>
225                                 <goals>
226                                     <goal>push</goal>
227                                 </goals>
228                             </execution>
229                         </executions>
230                     </plugin>
231                 </plugins>
232             </build>
233         </profile>
234     </profiles>
235     <build>
236         <finalName>datarouter-prov</finalName>
237         <resources>
238             <resource>
239                 <directory>src/main/resources</directory>
240                 <filtering>true</filtering>
241                 <includes>
242                     <include>**/*.properties</include>
243                 </includes>
244             </resource>
245             <resource>
246                 <directory>src/main/resources</directory>
247                 <filtering>true</filtering>
248                 <includes>
249                     <include>**/provserver.properties</include>
250                 </includes>
251             </resource>
252             <resource>
253                 <directory>src/main/resources</directory>
254                 <filtering>true</filtering>
255                 <includes>
256                     <include>**/EelfMessages.properties</include>
257                 </includes>
258             </resource>
259         </resources>
260         <plugins>
261             <plugin>
262                 <artifactId>maven-assembly-plugin</artifactId>
263                 <version>2.4</version>
264                 <configuration>
265                     <descriptorRefs>
266                         <descriptorRef>jar-with-dependencies</descriptorRef>
267                     </descriptorRefs>
268                     <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
269                     <archive>
270                         <manifest>
271                             <addClasspath>true</addClasspath>
272                             <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
273                         </manifest>
274                     </archive>
275                 </configuration>
276                 <executions>
277                     <execution>
278                         <id>make-assembly</id>
279                         <!-- this is used for inheritance merges -->
280                         <phase>package</phase>
281                         <!-- bind to the packaging phase -->
282                         <goals>
283                             <goal>single</goal>
284                         </goals>
285                     </execution>
286                 </executions>
287             </plugin>
288             <plugin>
289                 <groupId>org.apache.maven.plugins</groupId>
290                 <artifactId>maven-compiler-plugin</artifactId>
291             </plugin>
292             <!-- Copy files to docker-stage to be included in image -->
293             <plugin>
294                 <artifactId>maven-resources-plugin</artifactId>
295                 <version>2.7</version>
296                 <executions>
297                     <execution>
298                         <id>copy-dockerfile</id>
299                         <phase>validate</phase>
300                         <goals>
301                             <goal>copy-resources</goal>
302                         </goals>
303                         <configuration>
304                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
305                             <overwrite>true</overwrite>
306                             <resources>
307                                 <resource>
308                                     <directory>${basedir}/src/main/resources/docker</directory>
309                                     <filtering>true</filtering>
310                                     <includes>
311                                         <include>Dockerfile</include>
312                                     </includes>
313                                 </resource>
314                             </resources>
315                         </configuration>
316                     </execution>
317                     <execution>
318                         <id>copy-startup-script</id>
319                         <phase>validate</phase>
320                         <goals>
321                             <goal>copy-resources</goal>
322                         </goals>
323                         <configuration>
324                             <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
325                             <overwrite>true</overwrite>
326                             <resources>
327                                 <resource>
328                                     <directory>${basedir}/src/main/resources/docker</directory>
329                                     <filtering>true</filtering>
330                                     <includes>
331                                         <include>startup.sh</include>
332                                     </includes>
333                                 </resource>
334                             </resources>
335                         </configuration>
336                     </execution>
337                     <execution>
338                         <id>copy-resources-2</id>
339                         <phase>validate</phase>
340                         <goals>
341                             <goal>copy-resources</goal>
342                         </goals>
343                         <configuration>
344                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
345                             <resources>
346                                 <resource>
347                                     <directory>${basedir}/src/main/resources</directory>
348                                     <includes>
349                                         <include>misc/**</include>
350                                         <include>**/**</include>
351                                     </includes>
352                                 </resource>
353                             </resources>
354                         </configuration>
355                     </execution>
356                     <execution>
357                         <id>copy-resources-3</id>
358                         <phase>validate</phase>
359                         <goals>
360                             <goal>copy-resources</goal>
361                         </goals>
362                         <configuration>
363                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
364                             <resources>
365                                 <resource>
366                                     <directory>${basedir}/data</directory>
367                                     <includes>
368                                         <include>misc/**</include>
369                                         <include>**/**</include>
370                                     </includes>
371                                 </resource>
372                             </resources>
373                         </configuration>
374                     </execution>
375                     <execution>
376                         <id>copy-resources-4</id>
377                         <phase>validate</phase>
378                         <goals>
379                             <goal>copy-resources</goal>
380                         </goals>
381                         <configuration>
382                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
383                             <resources>
384                                 <resource>
385                                     <directory>${basedir}/aaf_certs</directory>
386                                     <includes>
387                                         <include>misc/**</include>
388                                         <include>**/**</include>
389                                     </includes>
390                                 </resource>
391                             </resources>
392                         </configuration>
393                     </execution>
394                 </executions>
395             </plugin>
396             <plugin>
397                 <groupId>org.apache.maven.plugins</groupId>
398                 <artifactId>maven-dependency-plugin</artifactId>
399                 <executions>
400                     <execution>
401                         <id>copy-dependencies</id>
402                         <phase>package</phase>
403                         <configuration>
404                             <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
405                         </configuration>
406                     </execution>
407                 </executions>
408             </plugin>
409             <plugin>
410                 <groupId>org.apache.maven.plugins</groupId>
411                 <artifactId>maven-javadoc-plugin</artifactId>
412             </plugin>
413             <plugin>
414                 <groupId>org.apache.maven.plugins</groupId>
415                 <artifactId>maven-source-plugin</artifactId>
416             </plugin>
417             <plugin>
418                 <groupId>org.codehaus.mojo</groupId>
419                 <artifactId>cobertura-maven-plugin</artifactId>
420             </plugin>
421             <plugin>
422                 <groupId>org.sonatype.plugins</groupId>
423                 <artifactId>nexus-staging-maven-plugin</artifactId>
424             </plugin>
425             <plugin>
426                 <groupId>org.jacoco</groupId>
427                 <artifactId>jacoco-maven-plugin</artifactId>
428                 <configuration>
429                     <excludes>
430                         <exclude>**/src/main/java/org/onap/dmaap/datarouter/reports/**</exclude>
431                     </excludes>
432                 </configuration>
433             </plugin>
434             <plugin>
435                 <groupId>org.codehaus.mojo</groupId>
436                 <artifactId>properties-maven-plugin</artifactId>
437             </plugin>
438         </plugins>
439     </build>
440 </project>