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"
\r
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
\r
25 <modelVersion>4.0.0</modelVersion>
\r
27 <groupId>org.onap.dmaap.datarouter</groupId>
\r
28 <artifactId>parent</artifactId>
\r
29 <version>1.0.0-SNAPSHOT</version>
\r
30 <relativePath>../pom.xml</relativePath>
\r
33 <artifactId>datarouter-prov</artifactId>
\r
34 <packaging>jar</packaging>
\r
35 <name>datarouter-prov</name>
\r
36 <url>https://github.com/att/DMAAP_DATAROUTER</url>
\r
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
40 <maven.compiler.source>1.8</maven.compiler.source>
\r
41 <maven.compiler.target>1.8</maven.compiler.target>
\r
42 <dockerLocation>${basedir}/target/</dockerLocation>
\r
43 <sonar.language>java</sonar.language>
\r
44 <sonar.skip>false</sonar.skip>
\r
45 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
46 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
47 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
48 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
49 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
50 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
51 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
52 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
53 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
54 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
55 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
\r
59 <groupId>org.json</groupId>
\r
60 <artifactId>json</artifactId>
\r
61 <version>20160810</version>
\r
64 <groupId>javax.mail</groupId>
\r
65 <artifactId>javax.mail-api</artifactId>
\r
66 <version>1.5.1</version>
\r
69 <groupId>com.att.eelf</groupId>
\r
70 <artifactId>eelf-core</artifactId>
\r
71 <version>0.0.1</version>
\r
74 <groupId>javax.servlet</groupId>
\r
75 <artifactId>servlet-api</artifactId>
\r
76 <version>2.5</version>
\r
80 <groupId>org.eclipse.jetty</groupId>
\r
81 <artifactId>jetty-server</artifactId>
\r
82 <version>7.6.14.v20131031</version>
\r
85 <groupId>org.eclipse.jetty</groupId>
\r
86 <artifactId>jetty-continuation</artifactId>
\r
87 <version>7.6.14.v20131031</version>
\r
90 <groupId>org.eclipse.jetty</groupId>
\r
91 <artifactId>jetty-util</artifactId>
\r
92 <version>7.6.14.v20131031</version>
\r
95 <groupId>org.eclipse.jetty</groupId>
\r
96 <artifactId>jetty-deploy</artifactId>
\r
97 <version>7.6.14.v20131031</version>
\r
100 <groupId>org.eclipse.jetty</groupId>
\r
101 <artifactId>jetty-servlet</artifactId>
\r
102 <version>7.6.14.v20131031</version>
\r
105 <groupId>org.eclipse.jetty</groupId>
\r
106 <artifactId>jetty-servlets</artifactId>
\r
107 <version>7.6.14.v20131031</version>
\r
110 <groupId>org.eclipse.jetty</groupId>
\r
111 <artifactId>jetty-http</artifactId>
\r
112 <version>7.6.14.v20131031</version>
\r
116 <groupId>org.eclipse.jetty</groupId>
\r
117 <artifactId>jetty-security</artifactId>
\r
118 <version>7.6.14.v20131031</version>
\r
122 <groupId>org.eclipse.jetty</groupId>
\r
123 <artifactId>jetty-websocket</artifactId>
\r
124 <version>7.6.14.v20131031</version>
\r
128 <groupId>org.eclipse.jetty</groupId>
\r
129 <artifactId>jetty-io</artifactId>
\r
130 <version>7.6.14.v20131031</version>
\r
134 <groupId>org.apache.commons</groupId>
\r
135 <artifactId>commons-io</artifactId>
\r
136 <version>1.3.2</version>
\r
139 <groupId>commons-lang</groupId>
\r
140 <artifactId>commons-lang</artifactId>
\r
141 <version>2.4</version>
\r
144 <groupId>commons-io</groupId>
\r
145 <artifactId>commons-io</artifactId>
\r
146 <version>2.1</version>
\r
147 <scope>compile</scope>
\r
150 <groupId>org.apache.httpcomponents</groupId>
\r
151 <artifactId>httpcore</artifactId>
\r
152 <version>4.2.2</version>
\r
156 <groupId>org.mozilla</groupId>
\r
157 <artifactId>rhino</artifactId>
\r
158 <version>1.7R3</version>
\r
161 <groupId>org.apache.james</groupId>
\r
162 <artifactId>apache-mime4j-core</artifactId>
\r
163 <version>0.7</version>
\r
166 <groupId>org.apache.httpcomponents</groupId>
\r
167 <artifactId>httpclient</artifactId>
\r
168 <version>4.2.3</version>
\r
171 <groupId>org.sonatype.http-testing-harness</groupId>
\r
172 <artifactId>junit-runner</artifactId>
\r
173 <version>0.11</version>
\r
176 <groupId>junit</groupId>
\r
177 <artifactId>junit</artifactId>
\r
178 <version>4.10</version>
\r
179 <scope>test</scope>
\r
183 <groupId>org.mockito</groupId>
\r
184 <artifactId>mockito-core</artifactId>
\r
185 <version>1.10.19</version>
\r
186 <scope>test</scope>
\r
189 <groupId>org.powermock</groupId>
\r
190 <artifactId>powermock-module-junit4</artifactId>
\r
191 <version>1.6.4</version>
\r
192 <scope>test</scope>
\r
195 <groupId>org.powermock</groupId>
\r
196 <artifactId>powermock-api-mockito</artifactId>
\r
197 <version>1.6.4</version>
\r
198 <scope>test</scope>
\r
201 <groupId>org.junit</groupId>
\r
202 <artifactId>com.springsource.org.junit</artifactId>
\r
203 <version>4.4.0</version>
\r
206 <groupId>mysql</groupId>
\r
207 <artifactId>mysql-connector-java</artifactId>
\r
208 <version>5.1.21</version>
\r
211 <groupId>org.eclipse.jetty.cdi</groupId>
\r
212 <artifactId>cdi-websocket</artifactId>
\r
213 <version>9.3.11.v20160721</version>
\r
217 <groupId>log4j</groupId>
\r
218 <artifactId>log4j</artifactId>
\r
219 <version>1.2.17</version>
\r
220 <scope>compile</scope>
\r
225 <finalName>datarouter-prov</finalName>
\r
228 <directory>src/main/resources</directory>
\r
229 <filtering>true</filtering>
\r
231 <include>**/*.properties</include>
\r
235 <directory>src/main/resources</directory>
\r
236 <filtering>true</filtering>
\r
238 <include>**/proserver.properties</include>
\r
242 <directory>src/main/resources</directory>
\r
243 <filtering>true</filtering>
\r
245 <include>**/EelfMessages.properties</include>
\r
249 <directory>src/main/resources</directory>
\r
250 <filtering>true</filtering>
\r
252 <include>**/log4j.properties</include>
\r
255 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
\r
256 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
\r
257 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
\r
258 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
\r
263 <artifactId>maven-assembly-plugin</artifactId>
\r
264 <version>2.4</version>
\r
267 <descriptorRef>jar-with-dependencies</descriptorRef>
\r
269 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
273 <addClasspath>true</addClasspath>
\r
274 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
\r
282 <id>make-assembly</id> <!-- this is used for inheritance merges -->
\r
283 <phase>package</phase> <!-- bind to the packaging phase -->
\r
285 <goal>single</goal>
\r
292 <groupId>org.apache.maven.plugins</groupId>
\r
293 <artifactId>maven-compiler-plugin</artifactId>
\r
297 <addClasspath>true</addClasspath>
\r
298 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
\r
299 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
303 <source>1.8</source>
\r
304 <target>1.8</target>
\r
306 <version>3.6.0</version>
\r
309 <groupId>org.apache.maven.plugins</groupId>
\r
310 <artifactId>maven-resources-plugin</artifactId>
\r
311 <version>2.7</version>
\r
314 <id>copy-docker-file</id>
\r
315 <phase>package</phase>
\r
317 <goal>copy-resources</goal>
\r
320 <outputDirectory>${dockerLocation}</outputDirectory>
\r
321 <overwrite>true</overwrite>
\r
324 <directory>${basedir}/src/main/resources/docker</directory>
\r
325 <filtering>true</filtering>
\r
327 <include>**/*</include>
\r
336 <groupId>com.spotify</groupId>
\r
337 <artifactId>docker-maven-plugin</artifactId>
\r
338 <version>0.4.11</version>
\r
340 <imageName>onap/dmaap/datarouter-prov</imageName>
\r
341 <dockerDirectory>${dockerLocation}</dockerDirectory>
\r
342 <serverId>docker-hub</serverId>
\r
343 <registryUrl>https://${docker.registry}</registryUrl>
\r
345 <imageTag>${project.version}</imageTag>
\r
346 <imageTag>latest</imageTag>
\r
348 <forceTags>true</forceTags>
\r
355 <artifactId>maven-resources-plugin</artifactId>
\r
356 <version>2.7</version>
\r
359 <id>copy-resources-1</id>
\r
360 <phase>validate</phase>
\r
362 <goal>copy-resources</goal>
\r
365 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
368 <directory>${project.basedir}/src/main/resources</directory>
\r
370 <include>**/*.jar</include>
\r
377 <id>copy-resources-2</id>
\r
378 <phase>validate</phase>
\r
380 <goal>copy-resources</goal>
\r
383 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
\r
386 <directory>${basedir}/src/main/resources</directory>
\r
388 <include>misc/**</include>
\r
389 <include>**/**</include>
\r
396 <id>copy-resources-3</id>
\r
397 <phase>validate</phase>
\r
399 <goal>copy-resources</goal>
\r
402 <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
\r
405 <directory>${basedir}/data</directory>
\r
407 <include>misc/**</include>
\r
408 <include>**/**</include>
\r
415 <id>copy-resources-4</id>
\r
416 <phase>validate</phase>
\r
418 <goal>copy-resources</goal>
\r
421 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
\r
424 <directory>${basedir}/self_signed</directory>
\r
426 <include>misc/**</include>
\r
427 <include>**/**</include>
\r
438 <groupId>org.apache.maven.plugins</groupId>
\r
439 <artifactId>maven-dependency-plugin</artifactId>
\r
440 <version>2.10</version>
\r
443 <id>copy-dependencies</id>
\r
444 <phase>package</phase>
\r
446 <goal>copy-dependencies</goal>
\r
449 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
\r
450 <overWriteReleases>false</overWriteReleases>
\r
451 <overWriteSnapshots>false</overWriteSnapshots>
\r
452 <overWriteIfNewer>true</overWriteIfNewer>
\r
459 <groupId>org.apache.maven.plugins</groupId>
\r
460 <artifactId>maven-javadoc-plugin</artifactId>
\r
462 <failOnError>false</failOnError>
\r
466 <id>attach-javadocs</id>
\r
476 <groupId>org.apache.maven.plugins</groupId>
\r
477 <artifactId>maven-source-plugin</artifactId>
\r
478 <version>2.2.1</version>
\r
481 <id>attach-sources</id>
\r
483 <goal>jar-no-fork</goal>
\r
490 <groupId>org.codehaus.mojo</groupId>
\r
491 <artifactId>cobertura-maven-plugin</artifactId>
\r
492 <version>2.7</version>
\r
495 <format>html</format>
\r
496 <format>xml</format>
\r
503 <groupId>org.sonatype.plugins</groupId>
\r
504 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
505 <version>1.6.7</version>
\r
506 <extensions>true</extensions>
\r
508 <nexusUrl>${nexusproxy}</nexusUrl>
\r
509 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
510 <serverId>ecomp-staging</serverId>
\r
515 <groupId>org.jacoco</groupId>
\r
516 <artifactId>jacoco-maven-plugin</artifactId>
\r
517 <version>${jacoco.version}</version>
\r
520 <exclude>**/gen/**</exclude>
\r
521 <exclude>**/generated-sources/**</exclude>
\r
522 <exclude>**/yang-gen/**</exclude>
\r
523 <exclude>**/pax/**</exclude>
\r
529 <id>pre-unit-test</id>
\r
531 <goal>prepare-agent</goal>
\r
534 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
\r
535 <propertyName>surefireArgLine</propertyName>
\r
541 <id>post-unit-test</id>
\r
542 <phase>test</phase>
\r
544 <goal>report</goal>
\r
547 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
\r
548 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
\r
552 <id>pre-integration-test</id>
\r
553 <phase>pre-integration-test</phase>
\r
555 <goal>prepare-agent</goal>
\r
558 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
\r
560 <propertyName>failsafeArgLine</propertyName>
\r
566 <id>post-integration-test</id>
\r
567 <phase>post-integration-test</phase>
\r
569 <goal>report</goal>
\r
572 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
\r
573 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
\r
580 <distributionManagement>
\r
582 <id>ecomp-releases</id>
\r
583 <name>DR Release Repository</name>
\r
584 <url>${nexusproxy}${releaseNexusPath}</url>
\r
586 <snapshotRepository>
\r
587 <id>ecomp-snapshots</id>
\r
588 <name>DR Snapshot Repository</name>
\r
589 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
590 </snapshotRepository>
\r
592 <id>ecomp-site</id>
\r
593 <url>dav:${nexusproxy}${sitePath}</url>
\r
595 </distributionManagement>
\r
596 <pluginRepositories>
\r
598 <id>onap-plugin-snapshots</id>
\r
599 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
600 </pluginRepository>
\r
601 </pluginRepositories>
\r