blob: b2b798b0f8d57f2bfd55ac1f4ee97b2db1521395 [file] [log] [blame]
sg481naaf2df82017-08-03 17:56:38 -04001<!--
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"
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26
27 <groupId>com.att.datarouter-node</groupId>
28 <artifactId>datarouter-node</artifactId>
29 <version>0.0.1-SNAPSHOT</version>
30 <packaging>jar</packaging>
31
32 <name>datarouter-node</name>
33 <url>https://github.com/att/DMAAP_DATAROUTER</url>
34 <licenses>
35 <license>
36 <name>BSD License</name>
37 <url> </url>
38 </license>
39 </licenses>
40
41
42 <properties>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <maven.compiler.source>1.8</maven.compiler.source>
45 <maven.compiler.target>1.8</maven.compiler.target>
46 <dockerLocation>${basedir}/target/</dockerLocation>
47 <docker.registry>hub.docker.com</docker.registry>
48 </properties>
49
50 <dependencies>
51 <dependency>
52 <groupId>junit</groupId>
53 <artifactId>junit</artifactId>
54 <version>3.8.1</version>
55 <scope>test</scope>
56 </dependency>
57 <dependency>
58 <groupId>org.json</groupId>
59 <artifactId>json</artifactId>
60 <version>20160810</version>
61 </dependency>
62
63 <dependency>
64 <groupId>javax.mail</groupId>
65 <artifactId>javax.mail-api</artifactId>
66 <version>1.5.1</version>
67 </dependency>
68 <dependency>
69 <groupId>com.att.eelf</groupId>
70 <artifactId>eelf-core</artifactId>
71 <version>0.0.1</version>
72 </dependency>
73 <dependency>
74 <groupId>javax.servlet</groupId>
75 <artifactId>servlet-api</artifactId>
76 <version>2.5</version>
77 </dependency>
78
79 <dependency>
80 <groupId>org.eclipse.jetty</groupId>
81 <artifactId>jetty-server</artifactId>
82 <version>7.6.14.v20131031</version>
83 </dependency>
84 <dependency>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-continuation</artifactId>
87 <version>7.6.14.v20131031</version>
88 </dependency>
89 <dependency>
90 <groupId>org.eclipse.jetty</groupId>
91 <artifactId>jetty-util</artifactId>
92 <version>7.6.14.v20131031</version>
93 </dependency>
94 <dependency>
95 <groupId>org.eclipse.jetty</groupId>
96 <artifactId>jetty-deploy</artifactId>
97 <version>7.6.14.v20131031</version>
98 </dependency>
99 <dependency>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-servlet</artifactId>
102 <version>7.6.14.v20131031</version>
103 </dependency>
104 <dependency>
105 <groupId>org.eclipse.jetty</groupId>
106 <artifactId>jetty-servlets</artifactId>
107 <version>7.6.14.v20131031</version>
108 </dependency>
109 <dependency>
110 <groupId>org.eclipse.jetty</groupId>
111 <artifactId>jetty-http</artifactId>
112 <version>7.6.14.v20131031</version>
113 </dependency>
114
115 <dependency>
116 <groupId>org.eclipse.jetty</groupId>
117 <artifactId>jetty-security</artifactId>
118 <version>7.6.14.v20131031</version>
119 </dependency>
120
121 <dependency>
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-websocket</artifactId>
124 <version>7.6.14.v20131031</version>
125 </dependency>
126
127 <dependency>
128 <groupId>org.eclipse.jetty</groupId>
129 <artifactId>jetty-io</artifactId>
130 <version>7.6.14.v20131031</version>
131 </dependency>
132
133 <dependency>
134 <groupId>org.apache.commons</groupId>
135 <artifactId>commons-io</artifactId>
136 <version>1.3.2</version>
137 </dependency>
138 <dependency>
139 <groupId>commons-lang</groupId>
140 <artifactId>commons-lang</artifactId>
141 <version>2.4</version>
142 </dependency>
143 <dependency>
144 <groupId>commons-io</groupId>
145 <artifactId>commons-io</artifactId>
146 <version>2.1</version>
147 <scope>compile</scope>
148 </dependency>
149 <dependency>
150 <groupId>org.apache.httpcomponents</groupId>
151 <artifactId>httpcore</artifactId>
152 <version>4.2.2</version>
153 </dependency>
154
155 <dependency>
156 <groupId>commons-codec</groupId>
157 <artifactId>commons-codec</artifactId>
158 <version>1.6</version>
159 </dependency>
160
161 <dependency>
162 <groupId>org.mozilla</groupId>
163 <artifactId>rhino</artifactId>
164 <version>1.7R3</version>
165 </dependency>
166 <dependency>
167 <groupId>org.apache.james</groupId>
168 <artifactId>apache-mime4j-core</artifactId>
169 <version>0.7</version>
170 </dependency>
171 <dependency>
172 <groupId>org.apache.httpcomponents</groupId>
173 <artifactId>httpclient</artifactId>
174 <version>4.2.3</version>
175 </dependency>
176 <dependency>
177 <groupId>org.sonatype.http-testing-harness</groupId>
178 <artifactId>junit-runner</artifactId>
179 <version>0.11</version>
180 </dependency>
181
182
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
191 <build>
192 <finalName>datarouter-node</finalName>
193 <resources>
194 <resource>
195 <directory>src/main/resources</directory>
196 <filtering>true</filtering>
197 <includes>
198 <include>**/*.properties</include>
199 </includes>
200 </resource>
201 <resource>
202 <directory>src/main/resources</directory>
203 <filtering>true</filtering>
204 <includes>
205 <include>**/EelfMessages.properties</include>
206 </includes>
207 </resource>
208 <resource>
209 <directory>src/main/resources</directory>
210 <filtering>true</filtering>
211 <includes>
212 <include>**/log4j.properties</include>
213 </includes>
214 </resource>
215
216 </resources>
217 <plugins>
218 <plugin>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-compiler-plugin</artifactId>
221 <configuration>
222 <archive>
223 <manifest>
224 <mainClass>com.att.research.datarouter.node.NodeMain</mainClass>
225
226 </manifest>
227 </archive>
228
229 <source>1.8</source>
230 <target>1.8</target>
231 </configuration>
232 <version>3.6.0</version>
233 </plugin>
234 <plugin>
235 <artifactId>maven-assembly-plugin</artifactId>
236 <version>2.4</version>
237 <configuration>
238 <descriptorRefs>
239 <descriptorRef>jar-with-dependencies</descriptorRef>
240 </descriptorRefs>
241 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
242 <archive>
243
244 <manifest>
245 <addClasspath>true</addClasspath>
246 <mainClass>com.att.research.datarouter.node.NodeMain</mainClass>
247 </manifest>
248 </archive>
249 </configuration>
250
251 <executions>
252 <execution>
253 <id>make-assembly</id> <!-- this is used for inheritance merges -->
254 <phase>package</phase> <!-- bind to the packaging phase -->
255 <goals>
256 <goal>single</goal>
257 </goals>
258 </execution>
259 </executions>
260 </plugin>
261 <plugin>
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-resources-plugin</artifactId>
264 <version>2.7</version>
265 <executions>
266 <execution>
267 <id>copy-docker-file</id>
268 <phase>package</phase>
269 <goals>
270 <goal>copy-resources</goal>
271 </goals>
272 <configuration>
273 <outputDirectory>${dockerLocation}</outputDirectory>
274 <overwrite>true</overwrite>
275 <resources>
276 <resource>
277 <directory>${basedir}/src/main/resources/docker</directory>
278 <filtering>true</filtering>
279 <includes>
280 <include>**/*</include>
281 </includes>
282 </resource>
283 </resources>
284 </configuration>
285 </execution>
286 <execution>
287 <id>copy-resources</id>
288 <phase>validate</phase>
289 <goals>
290 <goal>copy-resources</goal>
291 </goals>
292 <configuration>
293 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
294 <resources>
295 <resource>
296 <directory>${basedir}/src/main/resources</directory>
297 <includes>
298 <include>misc/**</include>
299 <include>**/**</include>
300 </includes>
301 </resource>
302 </resources>
303 </configuration>
304 </execution>
305 <execution>
306 <id>copy-resources-1</id>
307 <phase>validate</phase>
308 <goals>
309 <goal>copy-resources</goal>
310 </goals>
311 <configuration>
312 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
313 <resources>
314 <resource>
315 <directory>${basedir}/self_signed</directory>
316 <includes>
317 <include>misc/**</include>
318 <include>**/**</include>
319 </includes>
320 </resource>
321 </resources>
322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
326 <plugin>
327 <groupId>com.spotify</groupId>
328 <artifactId>docker-maven-plugin</artifactId>
329 <version>0.4.11</version>
330 <configuration>
331 <imageName>datarouter-node</imageName>
332 <dockerDirectory>${dockerLocation}</dockerDirectory>
333 <serverId>docker-hub</serverId>
334 <registryUrl>https://${docker.registry}</registryUrl>
335 <imageTags>
336 <imageTag>${project.version}</imageTag>
337 <imageTag>latest</imageTag>
338 </imageTags>
339 <forceTags>true</forceTags>
340 </configuration>
341 </plugin>
342
343 <plugin>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-dependency-plugin</artifactId>
346 <version>2.10</version>
347 <executions>
348 <execution>
349 <id>copy-dependencies</id>
350 <phase>package</phase>
351 <goals>
352 <goal>copy-dependencies</goal>
353 </goals>
354 <configuration>
355 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
356 <overWriteReleases>false</overWriteReleases>
357 <overWriteSnapshots>false</overWriteSnapshots>
358 <overWriteIfNewer>true</overWriteIfNewer>
359 </configuration>
360 </execution>
361 </executions>
362 </plugin>
363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-javadoc-plugin</artifactId>
366 <configuration>
367 <failOnError>false</failOnError>
368 </configuration>
369 <executions>
370 <execution>
371 <id>attach-javadocs</id>
372 <goals>
373 <goal>jar</goal>
374 </goals>
375 </execution>
376 </executions>
377 </plugin>
378
379
380 <plugin>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-source-plugin</artifactId>
383 <version>2.2.1</version>
384 <executions>
385 <execution>
386 <id>attach-sources</id>
387 <goals>
388 <goal>jar-no-fork</goal>
389 </goals>
390 </execution>
391 </executions>
392 </plugin>
393
394
395 <plugin>
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-gpg-plugin</artifactId>
398 <version>1.5</version>
399 <executions>
400 <execution>
401 <id>sign-artifacts</id>
402 <phase>verify</phase>
403 <goals>
404 <goal>sign</goal>
405 </goals>
406 </execution>
407 </executions>
408 </plugin>
409
410 <plugin>
411 <groupId>org.sonatype.plugins</groupId>
412 <artifactId>nexus-staging-maven-plugin</artifactId>
413 <version>1.6.7</version>
414 <extensions>true</extensions>
415 <configuration>
416 <serverId>ossrhdme</serverId>
417 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
418 <autoReleaseAfterClose>true</autoReleaseAfterClose>
419 </configuration>
420 </plugin>
421
422 <plugin>
423 <groupId>org.codehaus.mojo</groupId>
424 <artifactId>cobertura-maven-plugin</artifactId>
425 <version>2.7</version>
426 <configuration>
427 <formats>
428 <format>html</format>
429 <format>xml</format>
430 </formats>
431 </configuration>
432 </plugin>
433
434 <plugin>
435 <groupId>com.blackducksoftware.integration</groupId>
436 <artifactId>hub-maven-plugin</artifactId>
437 <version>1.0.4</version>
438 <inherited>false</inherited>
439 <configuration>
440 <target>${project.basedir}</target>
441 </configuration>
442 <executions>
443 <execution>
444 <id>create-bdio-file</id>
445 <phase>package</phase>
446 <goals>
447 <goal>createHubOutput</goal>
448 </goals>
449 </execution>
450 </executions>
451 </plugin>
452 </plugins>
453 </build>
454
455 <distributionManagement>
456 <snapshotRepository>
457 <id>ossrhdme</id>
458 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
459 </snapshotRepository>
460 <repository>
461 <id>ossrhdme</id>
462 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
463 </repository>
464 </distributionManagement>
465
466 <scm>
467 <connection>https://github.com/att/DMAAP_DATAROUTER.git</connection>
468 <developerConnection>${project.scm.connection}</developerConnection>
469 <url>https://github.com/att/DMAAP_DATAROUTER/tree/master</url>
470 </scm>
471
472</project>