2 ============LICENSE_START==================================================
\r
4 * ===========================================================================
\r
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ===========================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END====================================================
\r
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
\r
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">
\r
24 <modelVersion>4.0.0</modelVersion>
\r
26 <groupId>org.onap.dmaap.datarouter</groupId>
\r
27 <artifactId>parent</artifactId>
\r
28 <version>1.0.1-SNAPSHOT</version>
\r
29 <relativePath>../pom.xml</relativePath>
\r
31 <artifactId>datarouter-prov</artifactId>
\r
32 <packaging>jar</packaging>
\r
33 <name>datarouter-prov</name>
\r
34 <url>https://github.com/att/DMAAP_DATAROUTER</url>
\r
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
37 <maven.compiler.source>1.8</maven.compiler.source>
\r
38 <maven.compiler.target>1.8</maven.compiler.target>
\r
39 <docker.location>${basedir}/target/</docker.location>
\r
40 <sonar.language>java</sonar.language>
\r
41 <sonar.skip>false</sonar.skip>
\r
42 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
43 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
44 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
45 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
\r
46 </sonar.jacoco.itReportPath>
\r
47 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
48 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
49 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
50 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
51 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
52 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
53 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
\r
57 <groupId>ch.qos.logback</groupId>
\r
58 <artifactId>logback-classic</artifactId>
\r
59 <version>1.2.0</version>
\r
60 <scope>compile</scope>
\r
63 <groupId>ch.qos.logback</groupId>
\r
64 <artifactId>logback-core</artifactId>
\r
65 <version>1.2.0</version>
\r
66 <scope>compile</scope>
\r
69 <groupId>com.thoughtworks.xstream</groupId>
\r
70 <artifactId>xstream</artifactId>
\r
71 <version>1.4.7</version>
\r
74 <groupId>org.json</groupId>
\r
75 <artifactId>json</artifactId>
\r
76 <version>20160810</version>
\r
79 <groupId>javax.mail</groupId>
\r
80 <artifactId>javax.mail-api</artifactId>
\r
81 <version>1.5.1</version>
\r
84 <groupId>com.att.eelf</groupId>
\r
85 <artifactId>eelf-core</artifactId>
\r
86 <version>0.0.1</version>
\r
89 <groupId>javax.servlet</groupId>
\r
90 <artifactId>servlet-api</artifactId>
\r
91 <version>2.5</version>
\r
94 <groupId>org.eclipse.jetty</groupId>
\r
95 <artifactId>jetty-server</artifactId>
\r
96 <version>7.6.14.v20131031</version>
\r
99 <groupId>org.eclipse.jetty</groupId>
\r
100 <artifactId>jetty-continuation</artifactId>
\r
101 <version>7.6.14.v20131031</version>
\r
104 <groupId>org.eclipse.jetty</groupId>
\r
105 <artifactId>jetty-util</artifactId>
\r
106 <version>7.6.14.v20131031</version>
\r
109 <groupId>org.eclipse.jetty</groupId>
\r
110 <artifactId>jetty-deploy</artifactId>
\r
111 <version>7.6.14.v20131031</version>
\r
114 <groupId>org.eclipse.jetty</groupId>
\r
115 <artifactId>jetty-servlet</artifactId>
\r
116 <version>7.6.14.v20131031</version>
\r
119 <groupId>org.eclipse.jetty</groupId>
\r
120 <artifactId>jetty-servlets</artifactId>
\r
121 <version>7.6.14.v20131031</version>
\r
124 <groupId>org.eclipse.jetty</groupId>
\r
125 <artifactId>jetty-http</artifactId>
\r
126 <version>7.6.14.v20131031</version>
\r
129 <groupId>org.eclipse.jetty</groupId>
\r
130 <artifactId>jetty-security</artifactId>
\r
131 <version>7.6.14.v20131031</version>
\r
134 <groupId>org.eclipse.jetty</groupId>
\r
135 <artifactId>jetty-websocket</artifactId>
\r
136 <version>7.6.14.v20131031</version>
\r
139 <groupId>org.eclipse.jetty</groupId>
\r
140 <artifactId>jetty-io</artifactId>
\r
141 <version>7.6.14.v20131031</version>
\r
144 <groupId>org.apache.commons</groupId>
\r
145 <artifactId>commons-io</artifactId>
\r
146 <version>1.3.2</version>
\r
149 <groupId>commons-lang</groupId>
\r
150 <artifactId>commons-lang</artifactId>
\r
151 <version>2.4</version>
\r
154 <groupId>commons-io</groupId>
\r
155 <artifactId>commons-io</artifactId>
\r
156 <version>2.1</version>
\r
157 <scope>compile</scope>
\r
160 <groupId>org.apache.httpcomponents</groupId>
\r
161 <artifactId>httpcore</artifactId>
\r
162 <version>4.4</version>
\r
165 <groupId>org.mozilla</groupId>
\r
166 <artifactId>rhino</artifactId>
\r
167 <version>1.7R3</version>
\r
170 <groupId>org.apache.james</groupId>
\r
171 <artifactId>apache-mime4j-core</artifactId>
\r
172 <version>0.7</version>
\r
175 <groupId>org.apache.httpcomponents</groupId>
\r
176 <artifactId>httpclient</artifactId>
\r
177 <version>4.5.3</version>
\r
180 <groupId>org.sonatype.http-testing-harness</groupId>
\r
181 <artifactId>junit-runner</artifactId>
\r
182 <version>0.11</version>
\r
185 <groupId>org.databene</groupId>
\r
186 <artifactId>contiperf</artifactId>
\r
191 <groupId>junit</groupId>
\r
192 <artifactId>junit</artifactId>
\r
193 <version>4.10</version>
\r
194 <scope>test</scope>
\r
197 <groupId>org.mockito</groupId>
\r
198 <artifactId>mockito-core</artifactId>
\r
199 <version>1.10.19</version>
\r
200 <scope>test</scope>
\r
203 <groupId>org.powermock</groupId>
\r
204 <artifactId>powermock-module-junit4</artifactId>
\r
205 <version>1.6.4</version>
\r
206 <scope>test</scope>
\r
209 <groupId>org.powermock</groupId>
\r
210 <artifactId>powermock-api-mockito</artifactId>
\r
211 <version>1.6.4</version>
\r
212 <scope>test</scope>
\r
214 <!-- <dependency><groupId>org.junit</groupId><artifactId>com.springsource.org.junit</artifactId><version>4.4.0</version></dependency>-->
\r
216 <groupId>mysql</groupId>
\r
217 <artifactId>mysql-connector-java</artifactId>
\r
218 <version>5.1.21</version>
\r
221 <groupId>org.eclipse.jetty.cdi</groupId>
\r
222 <artifactId>cdi-websocket</artifactId>
\r
223 <version>9.3.11.v20160721</version>
\r
226 <groupId>log4j</groupId>
\r
227 <artifactId>log4j</artifactId>
\r
228 <version>1.2.17</version>
\r
229 <scope>compile</scope>
\r
233 <finalName>datarouter-prov</finalName>
\r
236 <directory>src/main/resources</directory>
\r
237 <filtering>true</filtering>
\r
239 <include>**/*.properties</include>
\r
243 <directory>src/main/resources</directory>
\r
244 <filtering>true</filtering>
\r
246 <include>**/proserver.properties</include>
\r
250 <directory>src/main/resources</directory>
\r
251 <filtering>true</filtering>
\r
253 <include>**/EelfMessages.properties</include>
\r
257 <directory>src/main/resources</directory>
\r
258 <filtering>true</filtering>
\r
260 <include>**/log4j.properties</include>
\r
263 <!-- <resource><directory>src/main/config</directory><filtering>true</filtering><includes><include>**/log4j*.xml</include></includes></resource><resource><directory>src/main/resources</directory><filtering>false</filtering><excludes><exclude>**/cambriaApiVersion.properties</exclude></excludes></resource>-->
\r
267 <artifactId>maven-assembly-plugin</artifactId>
\r
268 <version>2.4</version>
\r
271 <descriptorRef>jar-with-dependencies</descriptorRef>
\r
273 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
276 <addClasspath>true</addClasspath>
\r
277 <mainClass>org.onap.dmaap.datarouter.provisioning.Main</mainClass>
\r
283 <id>make-assembly</id>
\r
284 <!-- this is used for inheritance merges -->
\r
285 <phase>package</phase>
\r
286 <!-- bind to the packaging phase -->
\r
288 <goal>single</goal>
\r
294 <groupId>org.apache.maven.plugins</groupId>
\r
295 <artifactId>maven-compiler-plugin</artifactId>
\r
297 <source>1.8</source>
\r
298 <target>1.8</target>
\r
300 <version>3.6.0</version>
\r
303 <groupId>com.spotify</groupId>
\r
304 <artifactId>docker-maven-plugin</artifactId>
\r
305 <version>0.4.11</version>
\r
307 <imageName>onap/dmaap/datarouter-prov</imageName>
\r
308 <dockerDirectory>${docker.location}</dockerDirectory>
\r
309 <serverId>docker-hub</serverId>
\r
310 <registryUrl>https://${docker.registry}</registryUrl>
\r
312 <imageTag>${project.version}</imageTag>
\r
313 <imageTag>latest</imageTag>
\r
315 <forceTags>true</forceTags>
\r
319 <artifactId>maven-resources-plugin</artifactId>
\r
320 <version>2.7</version>
\r
323 <id>copy-docker-file</id>
\r
324 <phase>package</phase>
\r
326 <goal>copy-resources</goal>
\r
329 <outputDirectory>${docker.location}</outputDirectory>
\r
330 <overwrite>true</overwrite>
\r
333 <directory>${basedir}/src/main/resources/docker</directory>
\r
334 <filtering>true</filtering>
\r
336 <include>**/*</include>
\r
343 <id>copy-resources-1</id>
\r
344 <phase>validate</phase>
\r
346 <goal>copy-resources</goal>
\r
349 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
352 <directory>${project.basedir}/src/main/resources</directory>
\r
354 <include>**/*.jar</include>
\r
361 <id>copy-resources-2</id>
\r
362 <phase>validate</phase>
\r
364 <goal>copy-resources</goal>
\r
367 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
\r
370 <directory>${basedir}/src/main/resources</directory>
\r
372 <include>misc/**</include>
\r
373 <include>**/**</include>
\r
380 <id>copy-resources-3</id>
\r
381 <phase>validate</phase>
\r
383 <goal>copy-resources</goal>
\r
386 <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
\r
389 <directory>${basedir}/data</directory>
\r
391 <include>misc/**</include>
\r
392 <include>**/**</include>
\r
399 <id>copy-resources-4</id>
\r
400 <phase>validate</phase>
\r
402 <goal>copy-resources</goal>
\r
405 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
\r
408 <directory>${basedir}/self_signed</directory>
\r
410 <include>misc/**</include>
\r
411 <include>**/**</include>
\r
420 <groupId>org.apache.maven.plugins</groupId>
\r
421 <artifactId>maven-dependency-plugin</artifactId>
\r
422 <version>2.10</version>
\r
425 <id>copy-dependencies</id>
\r
426 <phase>package</phase>
\r
428 <goal>copy-dependencies</goal>
\r
431 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
\r
432 <overWriteReleases>false</overWriteReleases>
\r
433 <overWriteSnapshots>false</overWriteSnapshots>
\r
434 <overWriteIfNewer>true</overWriteIfNewer>
\r
440 <groupId>org.apache.maven.plugins</groupId>
\r
441 <artifactId>maven-javadoc-plugin</artifactId>
\r
443 <failOnError>false</failOnError>
\r
447 <id>attach-javadocs</id>
\r
455 <groupId>org.apache.maven.plugins</groupId>
\r
456 <artifactId>maven-source-plugin</artifactId>
\r
457 <version>2.2.1</version>
\r
460 <id>attach-sources</id>
\r
462 <goal>jar-no-fork</goal>
\r
468 <groupId>org.codehaus.mojo</groupId>
\r
469 <artifactId>cobertura-maven-plugin</artifactId>
\r
470 <version>2.7</version>
\r
473 <format>html</format>
\r
474 <format>xml</format>
\r
479 <groupId>org.sonatype.plugins</groupId>
\r
480 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
481 <version>1.6.7</version>
\r
482 <extensions>true</extensions>
\r
484 <nexusUrl>${nexusproxy}</nexusUrl>
\r
485 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
486 <serverId>ecomp-staging</serverId>
\r
490 <groupId>org.jacoco</groupId>
\r
491 <artifactId>jacoco-maven-plugin</artifactId>
\r
492 <version>${jacoco.version}</version>
\r
495 <exclude>**/gen/**</exclude>
\r
496 <exclude>**/generated-sources/**</exclude>
\r
497 <exclude>**/yang-gen/**</exclude>
\r
498 <exclude>**/pax/**</exclude>
\r
503 <id>pre-unit-test</id>
\r
505 <goal>prepare-agent</goal>
\r
508 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
\r
509 <propertyName>surefireArgLine</propertyName>
\r
513 <id>post-unit-test</id>
\r
514 <phase>test</phase>
\r
516 <goal>report</goal>
\r
519 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
\r
520 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
\r
524 <id>pre-integration-test</id>
\r
525 <phase>pre-integration-test</phase>
\r
527 <goal>prepare-agent</goal>
\r
530 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
\r
531 <propertyName>failsafeArgLine</propertyName>
\r
535 <id>post-integration-test</id>
\r
536 <phase>post-integration-test</phase>
\r
538 <goal>report</goal>
\r
541 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
\r
542 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
\r
549 <distributionManagement>
\r
551 <id>ecomp-releases</id>
\r
552 <name>DR Release Repository</name>
\r
553 <url>${nexusproxy}${releaseNexusPath}</url>
\r
555 <snapshotRepository>
\r
556 <id>ecomp-snapshots</id>
\r
557 <name>DR Snapshot Repository</name>
\r
558 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
559 </snapshotRepository>
\r
561 <id>ecomp-site</id>
\r
562 <url>dav:${nexusproxy}${sitePath}</url>
\r
564 </distributionManagement>
\r
565 <pluginRepositories>
\r
567 <id>onap-plugin-snapshots</id>
\r
568 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
569 </pluginRepository>
\r
570 </pluginRepositories>
\r