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
60 <groupId>org.json</groupId>
\r
61 <artifactId>json</artifactId>
\r
62 <version>20160810</version>
\r
65 <groupId>javax.mail</groupId>
\r
66 <artifactId>javax.mail-api</artifactId>
\r
67 <version>1.5.1</version>
\r
70 <groupId>com.att.eelf</groupId>
\r
71 <artifactId>eelf-core</artifactId>
\r
72 <version>0.0.1</version>
\r
75 <groupId>javax.servlet</groupId>
\r
76 <artifactId>servlet-api</artifactId>
\r
77 <version>2.5</version>
\r
81 <groupId>org.eclipse.jetty</groupId>
\r
82 <artifactId>jetty-server</artifactId>
\r
83 <version>7.6.14.v20131031</version>
\r
86 <groupId>org.eclipse.jetty</groupId>
\r
87 <artifactId>jetty-continuation</artifactId>
\r
88 <version>7.6.14.v20131031</version>
\r
91 <groupId>org.eclipse.jetty</groupId>
\r
92 <artifactId>jetty-util</artifactId>
\r
93 <version>7.6.14.v20131031</version>
\r
96 <groupId>org.eclipse.jetty</groupId>
\r
97 <artifactId>jetty-deploy</artifactId>
\r
98 <version>7.6.14.v20131031</version>
\r
101 <groupId>org.eclipse.jetty</groupId>
\r
102 <artifactId>jetty-servlet</artifactId>
\r
103 <version>7.6.14.v20131031</version>
\r
106 <groupId>org.eclipse.jetty</groupId>
\r
107 <artifactId>jetty-servlets</artifactId>
\r
108 <version>7.6.14.v20131031</version>
\r
111 <groupId>org.eclipse.jetty</groupId>
\r
112 <artifactId>jetty-http</artifactId>
\r
113 <version>7.6.14.v20131031</version>
\r
117 <groupId>org.eclipse.jetty</groupId>
\r
118 <artifactId>jetty-security</artifactId>
\r
119 <version>7.6.14.v20131031</version>
\r
123 <groupId>org.eclipse.jetty</groupId>
\r
124 <artifactId>jetty-websocket</artifactId>
\r
125 <version>7.6.14.v20131031</version>
\r
129 <groupId>org.eclipse.jetty</groupId>
\r
130 <artifactId>jetty-io</artifactId>
\r
131 <version>7.6.14.v20131031</version>
\r
135 <groupId>org.apache.commons</groupId>
\r
136 <artifactId>commons-io</artifactId>
\r
137 <version>1.3.2</version>
\r
140 <groupId>commons-lang</groupId>
\r
141 <artifactId>commons-lang</artifactId>
\r
142 <version>2.4</version>
\r
145 <groupId>commons-io</groupId>
\r
146 <artifactId>commons-io</artifactId>
\r
147 <version>2.1</version>
\r
148 <scope>compile</scope>
\r
151 <groupId>org.apache.httpcomponents</groupId>
\r
152 <artifactId>httpcore</artifactId>
\r
153 <version>4.2.2</version>
\r
157 <groupId>org.mozilla</groupId>
\r
158 <artifactId>rhino</artifactId>
\r
159 <version>1.7R3</version>
\r
162 <groupId>org.apache.james</groupId>
\r
163 <artifactId>apache-mime4j-core</artifactId>
\r
164 <version>0.7</version>
\r
167 <groupId>org.apache.httpcomponents</groupId>
\r
168 <artifactId>httpclient</artifactId>
\r
169 <version>4.2.3</version>
\r
172 <groupId>org.sonatype.http-testing-harness</groupId>
\r
173 <artifactId>junit-runner</artifactId>
\r
174 <version>0.11</version>
\r
177 <groupId>junit</groupId>
\r
178 <artifactId>junit</artifactId>
\r
179 <version>4.10</version>
\r
180 <scope>test</scope>
\r
184 <groupId>org.mockito</groupId>
\r
185 <artifactId>mockito-core</artifactId>
\r
186 <version>1.10.19</version>
\r
187 <scope>test</scope>
\r
190 <groupId>org.powermock</groupId>
\r
191 <artifactId>powermock-module-junit4</artifactId>
\r
192 <version>1.6.4</version>
\r
193 <scope>test</scope>
\r
196 <groupId>org.powermock</groupId>
\r
197 <artifactId>powermock-api-mockito</artifactId>
\r
198 <version>1.6.4</version>
\r
199 <scope>test</scope>
\r
202 <groupId>org.junit</groupId>
\r
203 <artifactId>com.springsource.org.junit</artifactId>
\r
204 <version>4.4.0</version>
\r
207 <groupId>mysql</groupId>
\r
208 <artifactId>mysql-connector-java</artifactId>
\r
209 <version>5.1.21</version>
\r
212 <groupId>org.eclipse.jetty.cdi</groupId>
\r
213 <artifactId>cdi-websocket</artifactId>
\r
214 <version>9.3.11.v20160721</version>
\r
218 <groupId>log4j</groupId>
\r
219 <artifactId>log4j</artifactId>
\r
220 <version>1.2.17</version>
\r
221 <scope>compile</scope>
\r
226 <finalName>datarouter-prov</finalName>
\r
229 <directory>src/main/resources</directory>
\r
230 <filtering>true</filtering>
\r
232 <include>**/*.properties</include>
\r
236 <directory>src/main/resources</directory>
\r
237 <filtering>true</filtering>
\r
239 <include>**/proserver.properties</include>
\r
243 <directory>src/main/resources</directory>
\r
244 <filtering>true</filtering>
\r
246 <include>**/EelfMessages.properties</include>
\r
250 <directory>src/main/resources</directory>
\r
251 <filtering>true</filtering>
\r
253 <include>**/log4j.properties</include>
\r
256 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
\r
257 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
\r
258 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
\r
259 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
\r
264 <artifactId>maven-assembly-plugin</artifactId>
\r
265 <version>2.4</version>
\r
268 <descriptorRef>jar-with-dependencies</descriptorRef>
\r
270 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
274 <addClasspath>true</addClasspath>
\r
275 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
\r
283 <id>make-assembly</id> <!-- this is used for inheritance merges -->
\r
284 <phase>package</phase> <!-- bind to the packaging phase -->
\r
286 <goal>single</goal>
\r
293 <groupId>org.apache.maven.plugins</groupId>
\r
294 <artifactId>maven-compiler-plugin</artifactId>
\r
298 <addClasspath>true</addClasspath>
\r
299 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
\r
300 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
304 <source>1.8</source>
\r
305 <target>1.8</target>
\r
307 <version>3.6.0</version>
\r
310 <groupId>org.apache.maven.plugins</groupId>
\r
311 <artifactId>maven-resources-plugin</artifactId>
\r
312 <version>2.7</version>
\r
315 <id>copy-docker-file</id>
\r
316 <phase>package</phase>
\r
318 <goal>copy-resources</goal>
\r
321 <outputDirectory>${dockerLocation}</outputDirectory>
\r
322 <overwrite>true</overwrite>
\r
325 <directory>${basedir}/src/main/resources/docker</directory>
\r
326 <filtering>true</filtering>
\r
328 <include>**/*</include>
\r
337 <groupId>com.spotify</groupId>
\r
338 <artifactId>docker-maven-plugin</artifactId>
\r
339 <version>0.4.11</version>
\r
341 <imageName>onap/dmaap/datarouter-prov</imageName>
\r
342 <dockerDirectory>${dockerLocation}</dockerDirectory>
\r
343 <serverId>docker-hub</serverId>
\r
344 <registryUrl>https://${docker.registry}</registryUrl>
\r
346 <imageTag>${project.version}</imageTag>
\r
347 <imageTag>latest</imageTag>
\r
349 <forceTags>true</forceTags>
\r
356 <artifactId>maven-resources-plugin</artifactId>
\r
357 <version>2.7</version>
\r
360 <id>copy-resources-1</id>
\r
361 <phase>validate</phase>
\r
363 <goal>copy-resources</goal>
\r
366 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
369 <directory>${project.basedir}/src/main/resources</directory>
\r
371 <include>**/*.jar</include>
\r
378 <id>copy-resources-2</id>
\r
379 <phase>validate</phase>
\r
381 <goal>copy-resources</goal>
\r
384 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
\r
387 <directory>${basedir}/src/main/resources</directory>
\r
389 <include>misc/**</include>
\r
390 <include>**/**</include>
\r
397 <id>copy-resources-3</id>
\r
398 <phase>validate</phase>
\r
400 <goal>copy-resources</goal>
\r
403 <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
\r
406 <directory>${basedir}/data</directory>
\r
408 <include>misc/**</include>
\r
409 <include>**/**</include>
\r
416 <id>copy-resources-4</id>
\r
417 <phase>validate</phase>
\r
419 <goal>copy-resources</goal>
\r
422 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
\r
425 <directory>${basedir}/self_signed</directory>
\r
427 <include>misc/**</include>
\r
428 <include>**/**</include>
\r
439 <groupId>org.apache.maven.plugins</groupId>
\r
440 <artifactId>maven-dependency-plugin</artifactId>
\r
441 <version>2.10</version>
\r
444 <id>copy-dependencies</id>
\r
445 <phase>package</phase>
\r
447 <goal>copy-dependencies</goal>
\r
450 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
\r
451 <overWriteReleases>false</overWriteReleases>
\r
452 <overWriteSnapshots>false</overWriteSnapshots>
\r
453 <overWriteIfNewer>true</overWriteIfNewer>
\r
460 <groupId>org.apache.maven.plugins</groupId>
\r
461 <artifactId>maven-javadoc-plugin</artifactId>
\r
463 <failOnError>false</failOnError>
\r
467 <id>attach-javadocs</id>
\r
477 <groupId>org.apache.maven.plugins</groupId>
\r
478 <artifactId>maven-source-plugin</artifactId>
\r
479 <version>2.2.1</version>
\r
482 <id>attach-sources</id>
\r
484 <goal>jar-no-fork</goal>
\r
491 <groupId>org.codehaus.mojo</groupId>
\r
492 <artifactId>cobertura-maven-plugin</artifactId>
\r
493 <version>2.7</version>
\r
496 <format>html</format>
\r
497 <format>xml</format>
\r
504 <groupId>org.sonatype.plugins</groupId>
\r
505 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
506 <version>1.6.7</version>
\r
507 <extensions>true</extensions>
\r
509 <nexusUrl>${nexusproxy}</nexusUrl>
\r
510 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
511 <serverId>ecomp-staging</serverId>
\r
516 <groupId>org.jacoco</groupId>
\r
517 <artifactId>jacoco-maven-plugin</artifactId>
\r
518 <version>${jacoco.version}</version>
\r
521 <exclude>**/gen/**</exclude>
\r
522 <exclude>**/generated-sources/**</exclude>
\r
523 <exclude>**/yang-gen/**</exclude>
\r
524 <exclude>**/pax/**</exclude>
\r
530 <id>pre-unit-test</id>
\r
532 <goal>prepare-agent</goal>
\r
535 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
\r
536 <propertyName>surefireArgLine</propertyName>
\r
542 <id>post-unit-test</id>
\r
543 <phase>test</phase>
\r
545 <goal>report</goal>
\r
548 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
\r
549 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
\r
553 <id>pre-integration-test</id>
\r
554 <phase>pre-integration-test</phase>
\r
556 <goal>prepare-agent</goal>
\r
559 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
\r
561 <propertyName>failsafeArgLine</propertyName>
\r
567 <id>post-integration-test</id>
\r
568 <phase>post-integration-test</phase>
\r
570 <goal>report</goal>
\r
573 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
\r
574 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
\r
581 <distributionManagement>
\r
583 <id>ecomp-releases</id>
\r
584 <name>DR Release Repository</name>
\r
585 <url>${nexusproxy}${releaseNexusPath}</url>
\r
587 <snapshotRepository>
\r
588 <id>ecomp-snapshots</id>
\r
589 <name>DR Snapshot Repository</name>
\r
590 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
591 </snapshotRepository>
\r
593 <id>ecomp-site</id>
\r
594 <url>dav:${nexusproxy}${sitePath}</url>
\r
596 </distributionManagement>
\r
597 <pluginRepositories>
\r
599 <id>onap-plugin-snapshots</id>
\r
600 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
601 </pluginRepository>
\r
602 </pluginRepositories>
\r