Update AAF certs with year duration
[dmaap/datarouter.git] / datarouter-node / 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>1.0.9-SNAPSHOT</version>
30         <relativePath>../pom.xml</relativePath>
31     </parent>
32     <artifactId>datarouter-node</artifactId>
33     <packaging>jar</packaging>
34     <name>datarouter-node</name>
35     <url>https://github.com/att/DMAAP_DATAROUTER</url>
36     <properties>
37         <sonar.skip>false</sonar.skip>
38         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
39         <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40         <docker.location>${basedir}/target/${artifactId}</docker.location>
41         <datarouter.node.image.name>onap/dmaap/datarouter-node</datarouter.node.image.name>
42     </properties>
43     <dependencies>
44         <dependency>
45             <groupId>com.google.guava</groupId>
46             <artifactId>guava</artifactId>
47             <version>${google.guava.version}</version>
48         </dependency>
49         <dependency>
50             <groupId>commons-codec</groupId>
51             <artifactId>commons-codec</artifactId>
52             <version>${commons-codec.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>junit</groupId>
56             <artifactId>junit</artifactId>
57             <version>4.10</version>
58             <scope>test</scope>
59         </dependency>
60         <dependency>
61             <groupId>org.json</groupId>
62             <artifactId>json</artifactId>
63             <version>20160810</version>
64         </dependency>
65         <dependency>
66             <groupId>javax.mail</groupId>
67             <artifactId>javax.mail-api</artifactId>
68             <version>${javax.mail-api.version}</version>
69         </dependency>
70         <dependency>
71             <groupId>com.att.eelf</groupId>
72             <artifactId>eelf-core</artifactId>
73             <version>0.0.1</version>
74         </dependency>
75         <dependency>
76             <groupId>com.thoughtworks.xstream</groupId>
77             <artifactId>xstream</artifactId>
78             <version>${thoughtworks.version}</version>
79         </dependency>
80         <dependency>
81             <groupId>ch.qos.logback</groupId>
82             <artifactId>logback-classic</artifactId>
83             <version>${qos.logback.version}</version>
84             <scope>compile</scope>
85         </dependency>
86         <dependency>
87             <groupId>ch.qos.logback</groupId>
88             <artifactId>logback-core</artifactId>
89             <version>${qos.logback.version}</version>
90             <scope>compile</scope>
91         </dependency>
92         <dependency>
93             <groupId>org.eclipse.jetty</groupId>
94             <artifactId>jetty-server</artifactId>
95             <version>${jetty.version}</version>
96         </dependency>
97         <dependency>
98             <groupId>org.eclipse.jetty</groupId>
99             <artifactId>jetty-continuation</artifactId>
100             <version>${jetty.version}</version>
101         </dependency>
102         <dependency>
103             <groupId>org.eclipse.jetty</groupId>
104             <artifactId>jetty-util</artifactId>
105             <version>${jetty.version}</version>
106         </dependency>
107         <dependency>
108             <groupId>org.eclipse.jetty</groupId>
109             <artifactId>jetty-deploy</artifactId>
110             <version>${jetty.version}</version>
111         </dependency>
112         <dependency>
113             <groupId>org.eclipse.jetty</groupId>
114             <artifactId>jetty-servlet</artifactId>
115             <version>${jetty.version}</version>
116         </dependency>
117         <dependency>
118             <groupId>org.eclipse.jetty</groupId>
119             <artifactId>jetty-servlets</artifactId>
120             <version>${jetty.version}</version>
121         </dependency>
122         <dependency>
123             <groupId>org.eclipse.jetty</groupId>
124             <artifactId>jetty-http</artifactId>
125             <version>${jetty.version}</version>
126         </dependency>
127         <dependency>
128             <groupId>org.eclipse.jetty</groupId>
129             <artifactId>jetty-security</artifactId>
130             <version>${jetty.version}</version>
131         </dependency>
132         <dependency>
133             <groupId>org.eclipse.jetty</groupId>
134             <artifactId>jetty-websocket</artifactId>
135             <version>${jetty.websocket.version}</version>
136         </dependency>
137         <dependency>
138             <groupId>org.eclipse.jetty</groupId>
139             <artifactId>jetty-io</artifactId>
140             <version>${jetty.version}</version>
141         </dependency>
142         <dependency>
143             <groupId>org.apache.commons</groupId>
144             <artifactId>commons-io</artifactId>
145             <version>1.3.2</version>
146         </dependency>
147         <dependency>
148             <groupId>commons-lang</groupId>
149             <artifactId>commons-lang</artifactId>
150             <version>2.4</version>
151         </dependency>
152         <dependency>
153             <groupId>commons-io</groupId>
154             <artifactId>commons-io</artifactId>
155             <version>2.1</version>
156             <scope>compile</scope>
157         </dependency>
158         <dependency>
159             <groupId>org.apache.httpcomponents</groupId>
160             <artifactId>httpcore</artifactId>
161             <version>4.4</version>
162         </dependency>
163         <dependency>
164             <groupId>org.mozilla</groupId>
165             <artifactId>rhino</artifactId>
166             <version>1.7R3</version>
167         </dependency>
168         <dependency>
169             <groupId>org.apache.james</groupId>
170             <artifactId>apache-mime4j-core</artifactId>
171             <version>0.7</version>
172         </dependency>
173         <dependency>
174             <groupId>org.apache.httpcomponents</groupId>
175             <artifactId>httpclient</artifactId>
176             <version>4.5.3</version>
177         </dependency>
178         <dependency>
179             <groupId>org.sonatype.http-testing-harness</groupId>
180             <artifactId>junit-runner</artifactId>
181             <version>0.11</version>
182             <exclusions>
183                 <exclusion>
184                     <groupId>org.databene</groupId>
185                     <artifactId>contiperf</artifactId>
186                 </exclusion>
187             </exclusions>
188         </dependency>
189         <dependency>
190             <groupId>log4j</groupId>
191             <artifactId>log4j</artifactId>
192             <version>1.2.17</version>
193             <scope>compile</scope>
194         </dependency>
195         <dependency>
196             <groupId>org.mockito</groupId>
197             <artifactId>mockito-core</artifactId>
198             <version>1.10.19</version>
199             <scope>test</scope>
200         </dependency>
201         <dependency>
202             <groupId>org.powermock</groupId>
203             <artifactId>powermock-module-junit4</artifactId>
204             <version>1.6.4</version>
205             <scope>test</scope>
206         </dependency>
207         <dependency>
208             <groupId>org.powermock</groupId>
209             <artifactId>powermock-api-mockito</artifactId>
210             <version>1.6.4</version>
211             <scope>test</scope>
212         </dependency>
213         <dependency>
214             <groupId>org.apache.commons</groupId>
215             <artifactId>commons-lang3</artifactId>
216             <version>3.0</version>
217         </dependency>
218     </dependencies>
219     <profiles>
220         <profile>
221             <id>docker</id>
222             <properties>
223                 <skipDockerBuild>false</skipDockerBuild>
224                 <skipDockerTag>false</skipDockerTag>
225                 <skipTests>true</skipTests>
226             </properties>
227             <build>
228                 <plugins>
229                     <plugin>
230                         <groupId>com.spotify</groupId>
231                         <artifactId>docker-maven-plugin</artifactId>
232                         <version>${docker.maven.plugin.version}</version>
233                         <configuration>
234                             <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}:${project.version}</imageName>
235                             <baseImage>java:8</baseImage>
236                             <serverId>${onap.nexus.dockerregistry.daily}</serverId>
237                             <skipDockerBuild>false</skipDockerBuild>
238                             <forceTags>true</forceTags>
239                             <entryPoint>["/startup.sh", "start"]</entryPoint>
240                             <resources>
241                                 <resource>
242                                     <targetPath>/opt</targetPath>
243                                     <directory>${project.build.directory}/opt</directory>
244                                 </resource>
245                                 <resource>
246                                     <targetPath>/</targetPath>
247                                     <directory>${docker.location}</directory>
248                                     <include>startup.sh</include>
249                                 </resource>
250                             </resources>
251                             <runs>
252                                 <run>chmod 0700 /startup.sh</run>
253                             </runs>
254                             <exposes>
255                                 <expose>8080</expose>
256                                 <expose>8443</expose>
257                             </exposes>
258                         </configuration>
259                     </plugin>
260                 </plugins>
261             </build>
262         </profile>
263     </profiles>
264
265     <build>
266         <finalName>datarouter-node</finalName>
267         <resources>
268             <resource>
269                 <directory>src/main/resources</directory>
270                 <filtering>true</filtering>
271                 <includes>
272                     <include>**/*.properties</include>
273                 </includes>
274             </resource>
275             <resource>
276                 <directory>src/main/resources</directory>
277                 <filtering>true</filtering>
278                 <includes>
279                     <include>**/EelfMessages.properties</include>
280                 </includes>
281             </resource>
282             <resource>
283                 <directory>src/main/resources</directory>
284                 <filtering>true</filtering>
285                 <includes>
286                     <include>**/log4j.properties</include>
287                 </includes>
288             </resource>
289         </resources>
290         <plugins>
291             <plugin>
292                 <groupId>org.apache.maven.plugins</groupId>
293                 <artifactId>maven-compiler-plugin</artifactId>
294                 <configuration>
295                     <source>1.8</source>
296                     <target>1.8</target>
297                 </configuration>
298                 <version>3.6.0</version>
299             </plugin>
300             <plugin>
301                 <artifactId>maven-assembly-plugin</artifactId>
302                 <version>2.4</version>
303                 <configuration>
304                     <descriptorRefs>
305                         <descriptorRef>jar-with-dependencies</descriptorRef>
306                     </descriptorRefs>
307                     <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
308                     <archive>
309                         <manifest>
310                             <addClasspath>true</addClasspath>
311                             <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
312                         </manifest>
313                     </archive>
314                 </configuration>
315                 <executions>
316                     <execution>
317                         <id>make-assembly</id>
318                         <!-- this is used for inheritance merges -->
319                         <phase>package</phase>
320                         <!-- bind to the packaging phase -->
321                         <goals>
322                             <goal>single</goal>
323                         </goals>
324                     </execution>
325                 </executions>
326             </plugin>
327             <plugin>
328                 <groupId>org.apache.maven.plugins</groupId>
329                 <artifactId>maven-resources-plugin</artifactId>
330                 <version>2.7</version>
331                 <executions>
332                     <execution>
333                         <id>copy-docker-file</id>
334                         <phase>package</phase>
335                         <goals>
336                             <goal>copy-resources</goal>
337                         </goals>
338                         <configuration>
339                             <outputDirectory>${docker.location}</outputDirectory>
340                             <overwrite>true</overwrite>
341                             <resources>
342                                 <resource>
343                                     <directory>${basedir}/src/main/resources/docker</directory>
344                                     <filtering>true</filtering>
345                                     <includes>
346                                         <include>**/*</include>
347                                     </includes>
348                                 </resource>
349                             </resources>
350                         </configuration>
351                     </execution>
352                     <execution>
353                         <id>copy-resources</id>
354                         <phase>validate</phase>
355                         <goals>
356                             <goal>copy-resources</goal>
357                         </goals>
358                         <configuration>
359                             <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
360                             <resources>
361                                 <resource>
362                                     <directory>${basedir}/src/main/resources</directory>
363                                     <includes>
364                                         <include>misc/**</include>
365                                         <include>**/**</include>
366                                     </includes>
367                                 </resource>
368                             </resources>
369                         </configuration>
370                     </execution>
371                     <execution>
372                         <id>copy-resources-1</id>
373                         <phase>validate</phase>
374                         <goals>
375                             <goal>copy-resources</goal>
376                         </goals>
377                         <configuration>
378                             <outputDirectory>${basedir}/target/opt/app/datartr/aaf_certs</outputDirectory>
379                             <resources>
380                                 <resource>
381                                     <directory>${basedir}/aaf_certs</directory>
382                                     <includes>
383                                         <include>misc/**</include>
384                                         <include>**/**</include>
385                                     </includes>
386                                 </resource>
387                             </resources>
388                         </configuration>
389                     </execution>
390                 </executions>
391             </plugin>
392             <plugin>
393                 <groupId>org.apache.maven.plugins</groupId>
394                 <artifactId>maven-dependency-plugin</artifactId>
395                 <version>2.10</version>
396                 <executions>
397                     <execution>
398                         <id>copy-dependencies</id>
399                         <phase>package</phase>
400                         <goals>
401                             <goal>copy-dependencies</goal>
402                         </goals>
403                         <configuration>
404                             <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
405                             <overWriteReleases>false</overWriteReleases>
406                             <overWriteSnapshots>false</overWriteSnapshots>
407                             <overWriteIfNewer>true</overWriteIfNewer>
408                         </configuration>
409                     </execution>
410                 </executions>
411             </plugin>
412             <plugin>
413                 <groupId>org.apache.maven.plugins</groupId>
414                 <artifactId>maven-javadoc-plugin</artifactId>
415                 <configuration>
416                     <failOnError>false</failOnError>
417                 </configuration>
418                 <executions>
419                     <execution>
420                         <id>attach-javadocs</id>
421                         <goals>
422                             <goal>jar</goal>
423                         </goals>
424                     </execution>
425                 </executions>
426             </plugin>
427             <plugin>
428                 <groupId>org.apache.maven.plugins</groupId>
429                 <artifactId>maven-source-plugin</artifactId>
430                 <version>2.2.1</version>
431                 <executions>
432                     <execution>
433                         <id>attach-sources</id>
434                         <goals>
435                             <goal>jar-no-fork</goal>
436                         </goals>
437                     </execution>
438                 </executions>
439             </plugin>
440             <plugin>
441                 <groupId>org.codehaus.mojo</groupId>
442                 <artifactId>cobertura-maven-plugin</artifactId>
443                 <version>2.7</version>
444                 <configuration>
445                     <formats>
446                         <format>html</format>
447                         <format>xml</format>
448                     </formats>
449                     <check/>
450                 </configuration>
451             </plugin>
452             <plugin>
453                 <groupId>org.sonatype.plugins</groupId>
454                 <artifactId>nexus-staging-maven-plugin</artifactId>
455                 <version>1.6.7</version>
456                 <extensions>true</extensions>
457                 <configuration>
458                     <nexusUrl>${onap.nexus.url}</nexusUrl>
459                     <stagingProfileId>176c31dfe190a</stagingProfileId>
460                     <serverId>ecomp-staging</serverId>
461                 </configuration>
462             </plugin>
463             <plugin>
464                 <groupId>org.jacoco</groupId>
465                 <artifactId>jacoco-maven-plugin</artifactId>
466                 <version>${jacoco.version}</version>
467                 <configuration>
468                     <excludes>
469                         <exclude>**/gen/**</exclude>
470                         <exclude>**/generated-sources/**</exclude>
471                         <exclude>**/yang-gen/**</exclude>
472                         <exclude>**/pax/**</exclude>
473                     </excludes>
474                 </configuration>
475                 <executions>
476                     <execution>
477                         <id>pre-unit-test</id>
478                         <goals>
479                             <goal>prepare-agent</goal>
480                         </goals>
481                         <configuration>
482                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
483                             <propertyName>surefireArgLine</propertyName>
484                         </configuration>
485                     </execution>
486                     <execution>
487                         <id>post-unit-test</id>
488                         <phase>test</phase>
489                         <goals>
490                             <goal>report</goal>
491                         </goals>
492                         <configuration>
493                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
494                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
495                         </configuration>
496                     </execution>
497                     <execution>
498                         <id>pre-integration-test</id>
499                         <phase>pre-integration-test</phase>
500                         <goals>
501                             <goal>prepare-agent</goal>
502                         </goals>
503                         <configuration>
504                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
505                             <propertyName>failsafeArgLine</propertyName>
506                         </configuration>
507                     </execution>
508                     <execution>
509                         <id>post-integration-test</id>
510                         <phase>post-integration-test</phase>
511                         <goals>
512                             <goal>report</goal>
513                         </goals>
514                         <configuration>
515                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
516                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
517                         </configuration>
518                     </execution>
519                 </executions>
520             </plugin>
521         </plugins>
522     </build>
523 </project>