New DR AAF certs for elalto branch
[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>${revision}</version>
30         <relativePath>../pom.xml</relativePath>
31     </parent>
32     <artifactId>datarouter-node</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.node.image.name>${docker.image.root}${project.artifactId}</datarouter.node.image.name>
39         <sonar.exclusions>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</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>commons-io</groupId>
58             <artifactId>commons-io</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>junit</groupId>
62             <artifactId>junit</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.json</groupId>
66             <artifactId>json</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>com.att.eelf</groupId>
70             <artifactId>eelf-core</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>ch.qos.logback</groupId>
74             <artifactId>logback-classic</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>ch.qos.logback</groupId>
78             <artifactId>logback-core</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>com.intellij</groupId>
82             <artifactId>annotations</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>javax.servlet</groupId>
86             <artifactId>javax.servlet-api</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-util</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.eclipse.jetty</groupId>
98             <artifactId>jetty-servlet</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.eclipse.jetty</groupId>
102             <artifactId>jetty-http</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.onap.aaf.authz</groupId>
106             <artifactId>aaf-cadi-core</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>org.sonatype.http-testing-harness</groupId>
110             <artifactId>junit-runner</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.mockito</groupId>
114             <artifactId>mockito-core</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.powermock</groupId>
118             <artifactId>powermock-module-junit4</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.powermock</groupId>
122             <artifactId>powermock-api-mockito</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.powermock</groupId>
126             <artifactId>powermock-api-support</artifactId>
127         </dependency>
128         <dependency>
129             <groupId>org.powermock</groupId>
130             <artifactId>powermock-core</artifactId>
131         </dependency>
132         <dependency>
133             <groupId>org.apache.commons</groupId>
134             <artifactId>commons-lang3</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>org.awaitility</groupId>
138             <artifactId>awaitility</artifactId>
139             <version>3.1.6</version>
140         </dependency>
141     </dependencies>
142     <profiles>
143         <profile>
144             <id>docker</id>
145             <properties>
146                 <skipTests>true</skipTests>
147             </properties>
148             <build>
149                 <plugins>
150                     <plugin>
151                         <groupId>org.codehaus.gmaven</groupId>
152                         <artifactId>gmaven-plugin</artifactId>
153                     </plugin>
154                     <plugin>
155                         <groupId>io.fabric8</groupId>
156                         <artifactId>docker-maven-plugin</artifactId>
157                         <configuration>
158                             <images>
159                                 <image>
160                                     <name>${datarouter.node.image.name}:${dockertag1}</name>
161                                     <build>
162                                         <cleanup>try</cleanup>
163                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
164                                         <dockerFile>Dockerfile</dockerFile>
165                                         <tags>
166                                             <tag>${dockertag2}</tag>
167                                         </tags>
168                                     </build>
169                                 </image>
170                             </images>
171                         </configuration>
172                         <executions>
173                             <execution>
174                                 <id>generate-images</id>
175                                 <phase>install</phase>
176                                 <goals>
177                                     <goal>build</goal>
178                                 </goals>
179                             </execution>
180                             <execution>
181                                 <id>push-images</id>
182                                 <phase>deploy</phase>
183                                 <goals>
184                                     <goal>push</goal>
185                                 </goals>
186                             </execution>
187                         </executions>
188                     </plugin>
189                 </plugins>
190             </build>
191         </profile>
192     </profiles>
193     <build>
194         <finalName>datarouter-node</finalName>
195         <resources>
196             <resource>
197                 <directory>src/main/resources</directory>
198                 <filtering>true</filtering>
199                 <includes>
200                     <include>**/*.properties</include>
201                 </includes>
202             </resource>
203             <resource>
204                 <directory>src/main/resources</directory>
205                 <filtering>true</filtering>
206                 <includes>
207                     <include>**/EelfMessages.properties</include>
208                 </includes>
209             </resource>
210         </resources>
211         <plugins>
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-compiler-plugin</artifactId>
215             </plugin>
216             <plugin>
217                 <artifactId>maven-assembly-plugin</artifactId>
218                 <version>2.4</version>
219                 <configuration>
220                     <descriptorRefs>
221                         <descriptorRef>jar-with-dependencies</descriptorRef>
222                     </descriptorRefs>
223                     <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
224                     <archive>
225                         <manifest>
226                             <addClasspath>true</addClasspath>
227                             <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
228                         </manifest>
229                     </archive>
230                 </configuration>
231                 <executions>
232                     <execution>
233                         <id>make-assembly</id>
234                         <!-- this is used for inheritance merges -->
235                         <phase>package</phase>
236                         <!-- bind to the packaging phase -->
237                         <goals>
238                             <goal>single</goal>
239                         </goals>
240                     </execution>
241                 </executions>
242             </plugin>
243             <plugin>
244                 <groupId>org.apache.maven.plugins</groupId>
245                 <artifactId>maven-resources-plugin</artifactId>
246                 <version>2.7</version>
247                 <executions>
248                     <execution>
249                         <id>copy-docker-file</id>
250                         <phase>validate</phase>
251                         <goals>
252                             <goal>copy-resources</goal>
253                         </goals>
254                         <configuration>
255                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
256                             <overwrite>true</overwrite>
257                             <resources>
258                                 <resource>
259                                     <directory>${basedir}/src/main/resources/docker</directory>
260                                     <filtering>true</filtering>
261                                     <includes>
262                                         <include>**/*</include>
263                                     </includes>
264                                 </resource>
265                             </resources>
266                         </configuration>
267                     </execution>
268                     <execution>
269                         <id>copy-startup-script</id>
270                         <phase>validate</phase>
271                         <goals>
272                             <goal>copy-resources</goal>
273                         </goals>
274                         <configuration>
275                             <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
276                             <overwrite>true</overwrite>
277                             <resources>
278                                 <resource>
279                                     <directory>${basedir}/src/main/resources/docker</directory>
280                                     <filtering>true</filtering>
281                                     <includes>
282                                         <include>startup.sh</include>
283                                     </includes>
284                                 </resource>
285                             </resources>
286                         </configuration>
287                     </execution>
288                     <execution>
289                         <id>copy-resources-2</id>
290                         <phase>validate</phase>
291                         <goals>
292                             <goal>copy-resources</goal>
293                         </goals>
294                         <configuration>
295                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
296                             <resources>
297                                 <resource>
298                                     <directory>${basedir}/src/main/resources</directory>
299                                     <includes>
300                                         <include>misc/**</include>
301                                         <include>**/**</include>
302                                     </includes>
303                                 </resource>
304                             </resources>
305                         </configuration>
306                     </execution>
307                     <execution>
308                         <id>copy-resources-3</id>
309                         <phase>validate</phase>
310                         <goals>
311                             <goal>copy-resources</goal>
312                         </goals>
313                         <configuration>
314                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
315                             <resources>
316                                 <resource>
317                                     <directory>${basedir}/data</directory>
318                                     <includes>
319                                         <include>misc/**</include>
320                                         <include>**/**</include>
321                                     </includes>
322                                 </resource>
323                             </resources>
324                         </configuration>
325                     </execution>
326                     <execution>
327                         <id>copy-resources-4</id>
328                         <phase>validate</phase>
329                         <goals>
330                             <goal>copy-resources</goal>
331                         </goals>
332                         <configuration>
333                             <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
334                             <resources>
335                                 <resource>
336                                     <directory>${basedir}/aaf_certs</directory>
337                                     <includes>
338                                         <include>misc/**</include>
339                                         <include>**/**</include>
340                                     </includes>
341                                 </resource>
342                             </resources>
343                         </configuration>
344                     </execution>
345                 </executions>
346             </plugin>
347             <plugin>
348                 <groupId>org.apache.maven.plugins</groupId>
349                 <artifactId>maven-dependency-plugin</artifactId>
350                 <executions>
351                     <execution>
352                         <id>copy-dependencies</id>
353                         <phase>package</phase>
354                         <configuration>
355                             <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
356                         </configuration>
357                     </execution>
358                 </executions>
359             </plugin>
360             <plugin>
361                 <groupId>org.apache.maven.plugins</groupId>
362                 <artifactId>maven-javadoc-plugin</artifactId>
363             </plugin>
364             <plugin>
365                 <groupId>org.apache.maven.plugins</groupId>
366                 <artifactId>maven-source-plugin</artifactId>
367             </plugin>
368             <plugin>
369                 <groupId>org.codehaus.mojo</groupId>
370                 <artifactId>cobertura-maven-plugin</artifactId>
371             </plugin>
372             <plugin>
373                 <groupId>org.jacoco</groupId>
374                 <artifactId>jacoco-maven-plugin</artifactId>
375                 <configuration>
376                     <excludes>
377                         <exclude>src/main/java/org/onap/dmaap/datarouter/node/NodeMain.java</exclude>
378                     </excludes>
379                 </configuration>
380             </plugin>
381             <plugin>
382                 <groupId>org.codehaus.mojo</groupId>
383                 <artifactId>properties-maven-plugin</artifactId>
384             </plugin>
385         </plugins>
386     </build>
387 </project>