Update versions to fix security violations
[dmaap/datarouter.git] / datarouter-subscriber / 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-subscriber</artifactId>
32     <packaging>jar</packaging>
33     <name>datarouter-subscriber</name>
34     <properties>
35         <sonar.language>java</sonar.language>
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
40         <docker.location>${basedir}/target/${artifactId}</docker.location>
41         <datarouter.prov.image.name>onap/dmaap/datarouter-subscriber</datarouter.prov.image.name>
42     </properties>
43     <dependencies>
44         <dependency>
45             <groupId>org.eclipse.jetty</groupId>
46             <artifactId>jetty-server</artifactId>
47             <version>${jetty.version}</version>
48         </dependency>
49         <dependency>
50             <groupId>org.eclipse.jetty</groupId>
51             <artifactId>jetty-continuation</artifactId>
52             <version>${jetty.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>org.eclipse.jetty</groupId>
56             <artifactId>jetty-util</artifactId>
57             <version>${jetty.version}</version>
58         </dependency>
59         <dependency>
60             <groupId>org.eclipse.jetty</groupId>
61             <artifactId>jetty-deploy</artifactId>
62             <version>${jetty.version}</version>
63         </dependency>
64         <dependency>
65             <groupId>org.eclipse.jetty</groupId>
66             <artifactId>jetty-servlet</artifactId>
67             <version>${jetty.version}</version>
68         </dependency>
69         <dependency>
70             <groupId>org.eclipse.jetty</groupId>
71             <artifactId>jetty-servlets</artifactId>
72             <version>${jetty.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.eclipse.jetty</groupId>
76             <artifactId>jetty-http</artifactId>
77             <version>${jetty.version}</version>
78         </dependency>
79         <dependency>
80             <groupId>org.eclipse.jetty</groupId>
81             <artifactId>jetty-security</artifactId>
82             <version>${jetty.version}</version>
83         </dependency>
84         <dependency>
85             <groupId>org.eclipse.jetty</groupId>
86             <artifactId>jetty-websocket</artifactId>
87             <version>${jetty.websocket.version}</version>
88         </dependency>
89         <dependency>
90             <groupId>org.eclipse.jetty</groupId>
91             <artifactId>jetty-io</artifactId>
92             <version>${jetty.version}</version>
93         </dependency>
94         <dependency>
95             <groupId>com.thoughtworks.xstream</groupId>
96             <artifactId>xstream</artifactId>
97             <version>${thoughtworks.version}</version>
98         </dependency>
99         <dependency>
100             <groupId>ch.qos.logback</groupId>
101             <artifactId>logback-classic</artifactId>
102             <version>${qos.logback.version}</version>
103             <scope>compile</scope>
104         </dependency>
105         <dependency>
106             <groupId>ch.qos.logback</groupId>
107             <artifactId>logback-core</artifactId>
108             <version>${qos.logback.version}</version>
109             <scope>compile</scope>
110         </dependency>
111         <dependency>
112             <groupId>org.apache.httpcomponents</groupId>
113             <artifactId>httpclient</artifactId>
114             <version>4.5.3</version>
115         </dependency>
116         <dependency>
117             <groupId>org.sonatype.http-testing-harness</groupId>
118             <artifactId>junit-runner</artifactId>
119             <version>0.11</version>
120             <exclusions>
121                 <exclusion>
122                     <groupId>org.databene</groupId>
123                     <artifactId>contiperf</artifactId>
124                 </exclusion>
125             </exclusions>
126         </dependency>
127         <dependency>
128             <groupId>junit</groupId>
129             <artifactId>junit</artifactId>
130             <version>4.10</version>
131             <scope>test</scope>
132         </dependency>
133         <dependency>
134             <groupId>log4j</groupId>
135             <artifactId>log4j</artifactId>
136             <version>1.2.17</version>
137             <scope>compile</scope>
138         </dependency>
139     </dependencies>
140     <profiles>
141         <profile>
142             <id>docker</id>
143             <properties>
144                 <skipDockerBuild>false</skipDockerBuild>
145                 <skipDockerTag>false</skipDockerTag>
146                 <skipTests>true</skipTests>
147             </properties>
148             <build>
149                 <plugins>
150                     <plugin>
151                         <groupId>com.spotify</groupId>
152                         <artifactId>docker-maven-plugin</artifactId>
153                         <version>1.0.0</version>
154                         <configuration>
155                             <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
156                             <dockerDirectory>${docker.location}</dockerDirectory>
157                             <serverId>${onap.nexus.dockerregistry.daily}</serverId>
158                             <skipDockerBuild>false</skipDockerBuild>
159                             <imageTags>
160                                 <imageTag>${project.version}</imageTag>
161                                 <imageTag>latest</imageTag>
162                             </imageTags>
163                             <forceTags>true</forceTags>
164                             <resources>
165                                 <resource>
166                                     <targetPath>/</targetPath>
167                                     <directory>${project.basedir}</directory>
168                                     <excludes>
169                                         <exclude>target/**/*</exclude>
170                                         <exclude>pom.xml</exclude>
171                                     </excludes>
172                                 </resource>
173
174                                 <resource>
175                                     <targetPath>/</targetPath>
176                                     <directory>${project.build.directory}</directory>
177                                     <include>**/**</include>
178                                 </resource>
179                             </resources>
180                         </configuration>
181                     </plugin>
182                 </plugins>
183             </build>
184         </profile>
185     </profiles>
186     <build>
187         <finalName>datarouter-subscriber</finalName>
188         <resources>
189             <resource>
190                 <directory>src/main/resources</directory>
191                 <filtering>true</filtering>
192                 <includes>
193                     <include>**/*.properties</include>
194                 </includes>
195             </resource>
196             <resource>
197                 <directory>src/main/resources</directory>
198                 <filtering>true</filtering>
199                 <includes>
200                     <include>**/subscriber.properties</include>
201                 </includes>
202             </resource>
203             <resource>
204                 <directory>src/main/resources</directory>
205                 <filtering>true</filtering>
206                 <includes>
207                     <include>**/log4j.properties</include>
208                 </includes>
209             </resource>
210             <resource>
211                 <directory>src/test/resources</directory>
212                 <filtering>true</filtering>
213                 <includes>
214                     <include>**/log4j.properties</include>
215                 </includes>
216             </resource>
217         </resources>
218         <plugins>
219             <plugin>
220                 <artifactId>maven-assembly-plugin</artifactId>
221                 <version>2.4</version>
222                 <configuration>
223                     <descriptorRefs>
224                         <descriptorRef>jar-with-dependencies</descriptorRef>
225                     </descriptorRefs>
226                     <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
227                     <archive>
228                         <manifest>
229                             <addClasspath>true</addClasspath>
230                             <mainClass>org.onap.dmaap.datarouter.subscriber.Subscriber</mainClass>
231                         </manifest>
232                     </archive>
233                 </configuration>
234                 <executions>
235                     <execution>
236                         <id>make-assembly</id>
237                         <!-- this is used for inheritance merges -->
238                         <phase>package</phase>
239                         <!-- bind to the packaging phase -->
240                         <goals>
241                             <goal>single</goal>
242                         </goals>
243                     </execution>
244                 </executions>
245             </plugin>
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-compiler-plugin</artifactId>
249                 <configuration>
250                     <source>1.8</source>
251                     <target>1.8</target>
252                 </configuration>
253                 <version>3.6.0</version>
254             </plugin>
255             <plugin>
256                 <artifactId>maven-resources-plugin</artifactId>
257                 <version>2.7</version>
258                 <executions>
259                     <execution>
260                         <id>copy-docker-file</id>
261                         <phase>package</phase>
262                         <goals>
263                             <goal>copy-resources</goal>
264                         </goals>
265                         <configuration>
266                             <outputDirectory>${docker.location}</outputDirectory>
267                             <overwrite>true</overwrite>
268                             <resources>
269                                 <resource>
270                                     <directory>${basedir}/src/main/resources/docker</directory>
271                                     <filtering>true</filtering>
272                                     <includes>
273                                         <include>**/*</include>
274                                     </includes>
275                                 </resource>
276                             </resources>
277                         </configuration>
278                     </execution>
279                     <execution>
280                         <id>copy-resources-1</id>
281                         <phase>validate</phase>
282                         <goals>
283                             <goal>copy-resources</goal>
284                         </goals>
285                         <configuration>
286                             <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
287                             <resources>
288                                 <resource>
289                                     <directory>${project.basedir}/src/main/resources</directory>
290                                     <includes>
291                                         <include>**/*.jar</include>
292                                     </includes>
293                                 </resource>
294                             </resources>
295                         </configuration>
296                     </execution>
297                     <execution>
298                         <id>copy-resources-2</id>
299                         <phase>validate</phase>
300                         <goals>
301                             <goal>copy-resources</goal>
302                         </goals>
303                         <configuration>
304                             <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
305                             <resources>
306                                 <resource>
307                                     <directory>${basedir}/src/main/resources</directory>
308                                     <includes>
309                                         <include>*.properties</include>
310                                     </includes>
311                                 </resource>
312                             </resources>
313                         </configuration>
314                     </execution>
315                 </executions>
316             </plugin>
317             <plugin>
318                 <groupId>org.apache.maven.plugins</groupId>
319                 <artifactId>maven-dependency-plugin</artifactId>
320                 <version>2.10</version>
321                 <executions>
322                     <execution>
323                         <id>copy-dependencies</id>
324                         <phase>package</phase>
325                         <goals>
326                             <goal>copy-dependencies</goal>
327                         </goals>
328                         <configuration>
329                             <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
330                             <overWriteReleases>false</overWriteReleases>
331                             <overWriteSnapshots>false</overWriteSnapshots>
332                             <overWriteIfNewer>true</overWriteIfNewer>
333                         </configuration>
334                     </execution>
335                 </executions>
336             </plugin>
337             <plugin>
338                 <groupId>org.apache.maven.plugins</groupId>
339                 <artifactId>maven-source-plugin</artifactId>
340                 <version>2.2.1</version>
341                 <executions>
342                     <execution>
343                         <id>attach-sources</id>
344                         <goals>
345                             <goal>jar-no-fork</goal>
346                         </goals>
347                     </execution>
348                 </executions>
349             </plugin>
350             <plugin>
351                 <groupId>org.jacoco</groupId>
352                 <artifactId>jacoco-maven-plugin</artifactId>
353                 <version>${jacoco.version}</version>
354                 <configuration>
355                     <excludes>
356                         <exclude>**/gen/**</exclude>
357                         <exclude>**/generated-sources/**</exclude>
358                         <exclude>**/yang-gen/**</exclude>
359                         <exclude>**/pax/**</exclude>
360                     </excludes>
361                 </configuration>
362                 <executions>
363                     <execution>
364                         <id>pre-unit-test</id>
365                         <goals>
366                             <goal>prepare-agent</goal>
367                         </goals>
368                         <configuration>
369                             <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
370                             <propertyName>surefireArgLine</propertyName>
371                         </configuration>
372                     </execution>
373                     <execution>
374                         <id>post-unit-test</id>
375                         <phase>test</phase>
376                         <goals>
377                             <goal>report</goal>
378                         </goals>
379                         <configuration>
380                             <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
381                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
382                         </configuration>
383                     </execution>
384                     <execution>
385                         <id>pre-integration-test</id>
386                         <phase>pre-integration-test</phase>
387                         <goals>
388                             <goal>prepare-agent</goal>
389                         </goals>
390                         <configuration>
391                             <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
392                             <propertyName>failsafeArgLine</propertyName>
393                         </configuration>
394                     </execution>
395                     <execution>
396                         <id>post-integration-test</id>
397                         <phase>post-integration-test</phase>
398                         <goals>
399                             <goal>report</goal>
400                         </goals>
401                         <configuration>
402                             <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
403                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
404                         </configuration>
405                     </execution>
406                 </executions>
407             </plugin>
408         </plugins>
409     </build>
410 </project>