blob: 80eecc762791229e86f184c9b468e25e1668ba6a [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"
sg481ne4b20cc2017-08-23 16:30:52 -040024 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.0-SNAPSHOT</version>
30 <relativePath>../pom.xml</relativePath>
31 </parent>
32
sg481naaf2df82017-08-03 17:56:38 -040033 <artifactId>datarouter-prov</artifactId>
sg481naaf2df82017-08-03 17:56:38 -040034 <packaging>jar</packaging>
sg481naaf2df82017-08-03 17:56:38 -040035 <name>datarouter-prov</name>
36 <url>https://github.com/att/DMAAP_DATAROUTER</url>
37 <licenses>
38 <license>
39 <name>BSD License</name>
40 <url> </url>
41 </license>
42 </licenses>
43 <properties>
44 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45 <maven.compiler.source>1.8</maven.compiler.source>
46 <maven.compiler.target>1.8</maven.compiler.target>
47 <dockerLocation>${basedir}/target/</dockerLocation>
sg481ne4b20cc2017-08-23 16:30:52 -040048 <nexusproxy>https://nexus.onap.org</nexusproxy>
49 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
50 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
51 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
52 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
sg481naaf2df82017-08-03 17:56:38 -040053 </properties>
54 <dependencies>
55
56 <dependency>
57 <groupId>org.json</groupId>
58 <artifactId>json</artifactId>
59 <version>20160810</version>
60 </dependency>
61 <dependency>
62 <groupId>javax.mail</groupId>
63 <artifactId>javax.mail-api</artifactId>
64 <version>1.5.1</version>
65 </dependency>
66 <dependency>
67 <groupId>com.att.eelf</groupId>
68 <artifactId>eelf-core</artifactId>
69 <version>0.0.1</version>
70 </dependency>
71 <dependency>
72 <groupId>javax.servlet</groupId>
73 <artifactId>servlet-api</artifactId>
74 <version>2.5</version>
75 </dependency>
76
77 <dependency>
78 <groupId>org.eclipse.jetty</groupId>
79 <artifactId>jetty-server</artifactId>
80 <version>7.6.14.v20131031</version>
81 </dependency>
82 <dependency>
83 <groupId>org.eclipse.jetty</groupId>
84 <artifactId>jetty-continuation</artifactId>
85 <version>7.6.14.v20131031</version>
86 </dependency>
87 <dependency>
88 <groupId>org.eclipse.jetty</groupId>
89 <artifactId>jetty-util</artifactId>
90 <version>7.6.14.v20131031</version>
91 </dependency>
92 <dependency>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-deploy</artifactId>
95 <version>7.6.14.v20131031</version>
96 </dependency>
97 <dependency>
98 <groupId>org.eclipse.jetty</groupId>
99 <artifactId>jetty-servlet</artifactId>
100 <version>7.6.14.v20131031</version>
101 </dependency>
102 <dependency>
103 <groupId>org.eclipse.jetty</groupId>
104 <artifactId>jetty-servlets</artifactId>
105 <version>7.6.14.v20131031</version>
106 </dependency>
107 <dependency>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-http</artifactId>
110 <version>7.6.14.v20131031</version>
111 </dependency>
112
113 <dependency>
114 <groupId>org.eclipse.jetty</groupId>
115 <artifactId>jetty-security</artifactId>
116 <version>7.6.14.v20131031</version>
117 </dependency>
118
119 <dependency>
120 <groupId>org.eclipse.jetty</groupId>
121 <artifactId>jetty-websocket</artifactId>
122 <version>7.6.14.v20131031</version>
123 </dependency>
124
125 <dependency>
126 <groupId>org.eclipse.jetty</groupId>
127 <artifactId>jetty-io</artifactId>
128 <version>7.6.14.v20131031</version>
129 </dependency>
130
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.2.2</version>
151 </dependency>
152
153 <dependency>
154 <groupId>org.mozilla</groupId>
155 <artifactId>rhino</artifactId>
156 <version>1.7R3</version>
157 </dependency>
158 <dependency>
159 <groupId>org.apache.james</groupId>
160 <artifactId>apache-mime4j-core</artifactId>
161 <version>0.7</version>
162 </dependency>
163 <dependency>
164 <groupId>org.apache.httpcomponents</groupId>
165 <artifactId>httpclient</artifactId>
166 <version>4.2.3</version>
167 </dependency>
168 <dependency>
169 <groupId>org.sonatype.http-testing-harness</groupId>
170 <artifactId>junit-runner</artifactId>
171 <version>0.11</version>
172 </dependency>
173 <dependency>
174 <groupId>junit</groupId>
175 <artifactId>junit</artifactId>
176 <version>4.10</version>
177 <scope>test</scope>
178 </dependency>
179
180 <dependency>
181 <groupId>org.mockito</groupId>
182 <artifactId>mockito-core</artifactId>
183 <version>1.10.19</version>
184 <scope>test</scope>
185 </dependency>
186 <dependency>
187 <groupId>org.powermock</groupId>
188 <artifactId>powermock-module-junit4</artifactId>
189 <version>1.6.4</version>
190 <scope>test</scope>
191 </dependency>
192 <dependency>
193 <groupId>org.powermock</groupId>
194 <artifactId>powermock-api-mockito</artifactId>
195 <version>1.6.4</version>
196 <scope>test</scope>
197 </dependency>
198<!-- <dependency>
199 <groupId>org.junit</groupId>
200 <artifactId>com.springsource.org.junit</artifactId>
201 <version>4.4.0</version>
202 </dependency> -->
203 <dependency>
204 <groupId>mysql</groupId>
205 <artifactId>mysql-connector-java</artifactId>
206 <version>5.1.21</version>
207 </dependency>
208 <dependency>
209 <groupId>org.eclipse.jetty.cdi</groupId>
210 <artifactId>cdi-websocket</artifactId>
211 <version>9.3.11.v20160721</version>
212 </dependency>
213
214 <dependency>
215 <groupId>log4j</groupId>
216 <artifactId>log4j</artifactId>
217 <version>1.2.17</version>
218 <scope>compile</scope>
219 </dependency>
220 </dependencies>
221
222 <build>
223 <finalName>datarouter-prov</finalName>
224 <resources>
225 <resource>
226 <directory>src/main/resources</directory>
227 <filtering>true</filtering>
228 <includes>
229 <include>**/*.properties</include>
230 </includes>
231 </resource>
232 <resource>
233 <directory>src/main/resources</directory>
234 <filtering>true</filtering>
235 <includes>
236 <include>**/proserver.properties</include>
237 </includes>
238 </resource>
239 <resource>
240 <directory>src/main/resources</directory>
241 <filtering>true</filtering>
242 <includes>
243 <include>**/EelfMessages.properties</include>
244 </includes>
245 </resource>
246 <resource>
247 <directory>src/main/resources</directory>
248 <filtering>true</filtering>
249 <includes>
250 <include>**/log4j.properties</include>
251 </includes>
252 </resource>
253 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
254 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
255 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
256 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
257 </resources>
258 <plugins>
259
260 <plugin>
261 <artifactId>maven-assembly-plugin</artifactId>
262 <version>2.4</version>
263 <configuration>
264 <descriptorRefs>
265 <descriptorRef>jar-with-dependencies</descriptorRef>
266 </descriptorRefs>
267 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
268 <archive>
269
270 <manifest>
271 <addClasspath>true</addClasspath>
sg481ne4b20cc2017-08-23 16:30:52 -0400272 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
sg481naaf2df82017-08-03 17:56:38 -0400273
274 </manifest>
275 </archive>
276 </configuration>
277
278 <executions>
279 <execution>
280 <id>make-assembly</id> <!-- this is used for inheritance merges -->
281 <phase>package</phase> <!-- bind to the packaging phase -->
282 <goals>
283 <goal>single</goal>
284 </goals>
285 </execution>
286 </executions>
287 </plugin>
288
289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-compiler-plugin</artifactId>
292 <configuration>
293 <archive>
294 <manifest>
295 <addClasspath>true</addClasspath>
sg481ne4b20cc2017-08-23 16:30:52 -0400296 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
sg481naaf2df82017-08-03 17:56:38 -0400297 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
298 </manifest>
299 </archive>
300
301 <source>1.8</source>
302 <target>1.8</target>
303 </configuration>
304 <version>3.6.0</version>
305 </plugin>
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-resources-plugin</artifactId>
309 <version>2.7</version>
310 <executions>
311 <execution>
312 <id>copy-docker-file</id>
313 <phase>package</phase>
314 <goals>
315 <goal>copy-resources</goal>
316 </goals>
317 <configuration>
318 <outputDirectory>${dockerLocation}</outputDirectory>
319 <overwrite>true</overwrite>
320 <resources>
321 <resource>
322 <directory>${basedir}/src/main/resources/docker</directory>
323 <filtering>true</filtering>
324 <includes>
325 <include>**/*</include>
326 </includes>
327 </resource>
328 </resources>
329 </configuration>
330 </execution>
331 </executions>
332 </plugin>
333 <plugin>
334 <groupId>com.spotify</groupId>
335 <artifactId>docker-maven-plugin</artifactId>
336 <version>0.4.11</version>
337 <configuration>
338 <imageName>datarouter-prov</imageName>
339 <dockerDirectory>${dockerLocation}</dockerDirectory>
340 <serverId>docker-hub</serverId>
341 <registryUrl>https://${docker.registry}</registryUrl>
342 <imageTags>
343 <imageTag>${project.version}</imageTag>
344 <imageTag>latest</imageTag>
345 </imageTags>
346 <forceTags>true</forceTags>
347 </configuration>
348 </plugin>
349
350
sg481naaf2df82017-08-03 17:56:38 -0400351
352 <plugin>
353 <artifactId>maven-resources-plugin</artifactId>
354 <version>2.7</version>
355 <executions>
356 <execution>
357 <id>copy-resources-1</id>
358 <phase>validate</phase>
359 <goals>
360 <goal>copy-resources</goal>
361 </goals>
362 <configuration>
363 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
364 <resources>
365 <resource>
366 <directory>${project.basedir}/src/main/resources</directory>
367 <includes>
368 <include>**/*.jar</include>
369 </includes>
370 </resource>
371 </resources>
372 </configuration>
373 </execution>
374 <execution>
375 <id>copy-resources-2</id>
376 <phase>validate</phase>
377 <goals>
378 <goal>copy-resources</goal>
379 </goals>
380 <configuration>
381 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
382 <resources>
383 <resource>
384 <directory>${basedir}/src/main/resources</directory>
385 <includes>
386 <include>misc/**</include>
387 <include>**/**</include>
388 </includes>
389 </resource>
390 </resources>
391 </configuration>
392 </execution>
393 <execution>
394 <id>copy-resources-3</id>
395 <phase>validate</phase>
396 <goals>
397 <goal>copy-resources</goal>
398 </goals>
399 <configuration>
400 <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
401 <resources>
402 <resource>
403 <directory>${basedir}/data</directory>
404 <includes>
405 <include>misc/**</include>
406 <include>**/**</include>
407 </includes>
408 </resource>
409 </resources>
410 </configuration>
411 </execution>
412 <execution>
413 <id>copy-resources-4</id>
414 <phase>validate</phase>
415 <goals>
416 <goal>copy-resources</goal>
417 </goals>
418 <configuration>
419 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
420 <resources>
421 <resource>
422 <directory>${basedir}/self_signed</directory>
423 <includes>
424 <include>misc/**</include>
425 <include>**/**</include>
426 </includes>
427 </resource>
428 </resources>
429 </configuration>
430 </execution>
431
432 </executions>
433 </plugin>
434
435 <plugin>
436 <groupId>org.apache.maven.plugins</groupId>
437 <artifactId>maven-dependency-plugin</artifactId>
438 <version>2.10</version>
439 <executions>
440 <execution>
441 <id>copy-dependencies</id>
442 <phase>package</phase>
443 <goals>
444 <goal>copy-dependencies</goal>
445 </goals>
446 <configuration>
447 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
448 <overWriteReleases>false</overWriteReleases>
449 <overWriteSnapshots>false</overWriteSnapshots>
450 <overWriteIfNewer>true</overWriteIfNewer>
451 </configuration>
452 </execution>
453 </executions>
454 </plugin>
455
456 <plugin>
457 <groupId>org.apache.maven.plugins</groupId>
458 <artifactId>maven-javadoc-plugin</artifactId>
459 <configuration>
460 <failOnError>false</failOnError>
461 </configuration>
462 <executions>
463 <execution>
464 <id>attach-javadocs</id>
465 <goals>
466 <goal>jar</goal>
467 </goals>
468 </execution>
469 </executions>
470 </plugin>
471
472
473 <plugin>
474 <groupId>org.apache.maven.plugins</groupId>
475 <artifactId>maven-source-plugin</artifactId>
476 <version>2.2.1</version>
477 <executions>
478 <execution>
479 <id>attach-sources</id>
480 <goals>
481 <goal>jar-no-fork</goal>
482 </goals>
483 </execution>
484 </executions>
sg481ne4b20cc2017-08-23 16:30:52 -0400485 </plugin>
sg481naaf2df82017-08-03 17:56:38 -0400486
487 <plugin>
488 <groupId>org.codehaus.mojo</groupId>
489 <artifactId>cobertura-maven-plugin</artifactId>
490 <version>2.7</version>
491 <configuration>
492 <formats>
493 <format>html</format>
494 <format>xml</format>
495 </formats>
496 </configuration>
497 </plugin>
498 </plugins>
499 </build>
sg481naaf2df82017-08-03 17:56:38 -0400500<distributionManagement>
sg481ne4b20cc2017-08-23 16:30:52 -0400501 <repository>
502 <id>ecomp-releases</id>
503 <name>AAF Release Repository</name>
504 <url>${nexusproxy}${releaseNexusPath}</url>
505 </repository>
506 <snapshotRepository>
507 <id>ecomp-snapshots</id>
508 <name>AAF Snapshot Repository</name>
509 <url>${nexusproxy}${snapshotNexusPath}</url>
510 </snapshotRepository>
511 <site>
512 <id>ecomp-site</id>
513 <url>dav:${nexusproxy}${sitePath}</url>
514 </site>
sg481naaf2df82017-08-03 17:56:38 -0400515 </distributionManagement>
sg481ne4b20cc2017-08-23 16:30:52 -0400516 <pluginRepositories>
517 <pluginRepository>
518 <id>onap-plugin-snapshots</id>
519 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
520 </pluginRepository>
521 </pluginRepositories>
522
523 <repositories>
524 <repository>
525 <id>central</id>
526 <name>Maven 2 repository 2</name>
527 <url>http://repo2.maven.org/maven2/</url>
528 </repository>
529 <repository>
530 <id>onap-jar-snapshots</id>
531 <url>https://nexus.onap.org/content/repositories/snapshots</url>
532 </repository>
533 <repository>
534 <id>spring-repo</id>
535 <name>Spring repo</name>
536 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
537 </repository>
538 <repository>
539 <id>repository.jboss.org-public</id>
540 <name>JBoss.org Maven repository</name>
541 <url>https://repository.jboss.org/nexus/content/groups/public</url>
542 </repository>
543 </repositories>
sg481naaf2df82017-08-03 17:56:38 -0400544
545</project>