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