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.1-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>ch.qos.logback</groupId>
\r
60 <artifactId>logback-classic</artifactId>
\r
61 <version>1.2.0</version>
\r
62 <scope>compile</scope>
\r
65 <groupId>ch.qos.logback</groupId>
\r
66 <artifactId>logback-core</artifactId>
\r
67 <version>1.2.0</version>
\r
68 <scope>compile</scope>
\r
71 <groupId>com.thoughtworks.xstream</groupId>
\r
72 <artifactId>xstream</artifactId>
\r
73 <version>1.4.7</version>
\r
76 <groupId>org.json</groupId>
\r
77 <artifactId>json</artifactId>
\r
78 <version>20160810</version>
\r
81 <groupId>javax.mail</groupId>
\r
82 <artifactId>javax.mail-api</artifactId>
\r
83 <version>1.5.1</version>
\r
86 <groupId>com.att.eelf</groupId>
\r
87 <artifactId>eelf-core</artifactId>
\r
88 <version>0.0.1</version>
\r
91 <groupId>javax.servlet</groupId>
\r
92 <artifactId>servlet-api</artifactId>
\r
93 <version>2.5</version>
\r
97 <groupId>org.eclipse.jetty</groupId>
\r
98 <artifactId>jetty-server</artifactId>
\r
99 <version>7.6.14.v20131031</version>
\r
102 <groupId>org.eclipse.jetty</groupId>
\r
103 <artifactId>jetty-continuation</artifactId>
\r
104 <version>7.6.14.v20131031</version>
\r
107 <groupId>org.eclipse.jetty</groupId>
\r
108 <artifactId>jetty-util</artifactId>
\r
109 <version>7.6.14.v20131031</version>
\r
112 <groupId>org.eclipse.jetty</groupId>
\r
113 <artifactId>jetty-deploy</artifactId>
\r
114 <version>7.6.14.v20131031</version>
\r
117 <groupId>org.eclipse.jetty</groupId>
\r
118 <artifactId>jetty-servlet</artifactId>
\r
119 <version>7.6.14.v20131031</version>
\r
122 <groupId>org.eclipse.jetty</groupId>
\r
123 <artifactId>jetty-servlets</artifactId>
\r
124 <version>7.6.14.v20131031</version>
\r
127 <groupId>org.eclipse.jetty</groupId>
\r
128 <artifactId>jetty-http</artifactId>
\r
129 <version>7.6.14.v20131031</version>
\r
133 <groupId>org.eclipse.jetty</groupId>
\r
134 <artifactId>jetty-security</artifactId>
\r
135 <version>7.6.14.v20131031</version>
\r
139 <groupId>org.eclipse.jetty</groupId>
\r
140 <artifactId>jetty-websocket</artifactId>
\r
141 <version>7.6.14.v20131031</version>
\r
145 <groupId>org.eclipse.jetty</groupId>
\r
146 <artifactId>jetty-io</artifactId>
\r
147 <version>7.6.14.v20131031</version>
\r
151 <groupId>org.apache.commons</groupId>
\r
152 <artifactId>commons-io</artifactId>
\r
153 <version>1.3.2</version>
\r
156 <groupId>commons-lang</groupId>
\r
157 <artifactId>commons-lang</artifactId>
\r
158 <version>2.4</version>
\r
161 <groupId>commons-io</groupId>
\r
162 <artifactId>commons-io</artifactId>
\r
163 <version>2.1</version>
\r
164 <scope>compile</scope>
\r
167 <groupId>org.apache.httpcomponents</groupId>
\r
168 <artifactId>httpcore</artifactId>
\r
169 <version>4.2.2</version>
\r
173 <groupId>org.mozilla</groupId>
\r
174 <artifactId>rhino</artifactId>
\r
175 <version>1.7R3</version>
\r
178 <groupId>org.apache.james</groupId>
\r
179 <artifactId>apache-mime4j-core</artifactId>
\r
180 <version>0.7</version>
\r
183 <groupId>org.apache.httpcomponents</groupId>
\r
184 <artifactId>httpclient</artifactId>
\r
185 <version>4.5.3</version>
\r
188 <groupId>org.sonatype.http-testing-harness</groupId>
\r
189 <artifactId>junit-runner</artifactId>
\r
190 <version>0.11</version>
\r
193 <groupId>org.databene</groupId>
\r
194 <artifactId>contiperf</artifactId>
\r
199 <groupId>junit</groupId>
\r
200 <artifactId>junit</artifactId>
\r
201 <version>4.10</version>
\r
202 <scope>test</scope>
\r
206 <groupId>org.mockito</groupId>
\r
207 <artifactId>mockito-core</artifactId>
\r
208 <version>1.10.19</version>
\r
209 <scope>test</scope>
\r
212 <groupId>org.powermock</groupId>
\r
213 <artifactId>powermock-module-junit4</artifactId>
\r
214 <version>1.6.4</version>
\r
215 <scope>test</scope>
\r
218 <groupId>org.powermock</groupId>
\r
219 <artifactId>powermock-api-mockito</artifactId>
\r
220 <version>1.6.4</version>
\r
221 <scope>test</scope>
\r
224 <groupId>org.junit</groupId>
\r
225 <artifactId>com.springsource.org.junit</artifactId>
\r
226 <version>4.4.0</version>
\r
229 <groupId>mysql</groupId>
\r
230 <artifactId>mysql-connector-java</artifactId>
\r
231 <version>5.1.21</version>
\r
234 <groupId>org.eclipse.jetty.cdi</groupId>
\r
235 <artifactId>cdi-websocket</artifactId>
\r
236 <version>9.3.11.v20160721</version>
\r
240 <groupId>log4j</groupId>
\r
241 <artifactId>log4j</artifactId>
\r
242 <version>1.2.17</version>
\r
243 <scope>compile</scope>
\r
248 <finalName>datarouter-prov</finalName>
\r
251 <directory>src/main/resources</directory>
\r
252 <filtering>true</filtering>
\r
254 <include>**/*.properties</include>
\r
258 <directory>src/main/resources</directory>
\r
259 <filtering>true</filtering>
\r
261 <include>**/proserver.properties</include>
\r
265 <directory>src/main/resources</directory>
\r
266 <filtering>true</filtering>
\r
268 <include>**/EelfMessages.properties</include>
\r
272 <directory>src/main/resources</directory>
\r
273 <filtering>true</filtering>
\r
275 <include>**/log4j.properties</include>
\r
278 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
\r
279 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
\r
280 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
\r
281 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
\r
286 <artifactId>maven-assembly-plugin</artifactId>
\r
287 <version>2.4</version>
\r
290 <descriptorRef>jar-with-dependencies</descriptorRef>
\r
292 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
296 <addClasspath>true</addClasspath>
\r
297 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
\r
305 <id>make-assembly</id> <!-- this is used for inheritance merges -->
\r
306 <phase>package</phase> <!-- bind to the packaging phase -->
\r
308 <goal>single</goal>
\r
315 <groupId>org.apache.maven.plugins</groupId>
\r
316 <artifactId>maven-compiler-plugin</artifactId>
\r
320 <addClasspath>true</addClasspath>
\r
321 <mainClass>org.onap.datarouter.provisioning.Main</mainClass>
\r
322 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
326 <source>1.8</source>
\r
327 <target>1.8</target>
\r
329 <version>3.6.0</version>
\r
332 <groupId>org.apache.maven.plugins</groupId>
\r
333 <artifactId>maven-resources-plugin</artifactId>
\r
334 <version>2.7</version>
\r
337 <id>copy-docker-file</id>
\r
338 <phase>package</phase>
\r
340 <goal>copy-resources</goal>
\r
343 <outputDirectory>${dockerLocation}</outputDirectory>
\r
344 <overwrite>true</overwrite>
\r
347 <directory>${basedir}/src/main/resources/docker</directory>
\r
348 <filtering>true</filtering>
\r
350 <include>**/*</include>
\r
359 <groupId>com.spotify</groupId>
\r
360 <artifactId>docker-maven-plugin</artifactId>
\r
361 <version>0.4.11</version>
\r
363 <imageName>onap/dmaap/datarouter-prov</imageName>
\r
364 <dockerDirectory>${dockerLocation}</dockerDirectory>
\r
365 <serverId>docker-hub</serverId>
\r
366 <registryUrl>https://${docker.registry}</registryUrl>
\r
368 <imageTag>${project.version}</imageTag>
\r
369 <imageTag>latest</imageTag>
\r
371 <forceTags>true</forceTags>
\r
378 <artifactId>maven-resources-plugin</artifactId>
\r
379 <version>2.7</version>
\r
382 <id>copy-resources-1</id>
\r
383 <phase>validate</phase>
\r
385 <goal>copy-resources</goal>
\r
388 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
391 <directory>${project.basedir}/src/main/resources</directory>
\r
393 <include>**/*.jar</include>
\r
400 <id>copy-resources-2</id>
\r
401 <phase>validate</phase>
\r
403 <goal>copy-resources</goal>
\r
406 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
\r
409 <directory>${basedir}/src/main/resources</directory>
\r
411 <include>misc/**</include>
\r
412 <include>**/**</include>
\r
419 <id>copy-resources-3</id>
\r
420 <phase>validate</phase>
\r
422 <goal>copy-resources</goal>
\r
425 <outputDirectory>${basedir}/target/opt/app/datartr</outputDirectory>
\r
428 <directory>${basedir}/data</directory>
\r
430 <include>misc/**</include>
\r
431 <include>**/**</include>
\r
438 <id>copy-resources-4</id>
\r
439 <phase>validate</phase>
\r
441 <goal>copy-resources</goal>
\r
444 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
\r
447 <directory>${basedir}/self_signed</directory>
\r
449 <include>misc/**</include>
\r
450 <include>**/**</include>
\r
461 <groupId>org.apache.maven.plugins</groupId>
\r
462 <artifactId>maven-dependency-plugin</artifactId>
\r
463 <version>2.10</version>
\r
466 <id>copy-dependencies</id>
\r
467 <phase>package</phase>
\r
469 <goal>copy-dependencies</goal>
\r
472 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
\r
473 <overWriteReleases>false</overWriteReleases>
\r
474 <overWriteSnapshots>false</overWriteSnapshots>
\r
475 <overWriteIfNewer>true</overWriteIfNewer>
\r
482 <groupId>org.apache.maven.plugins</groupId>
\r
483 <artifactId>maven-javadoc-plugin</artifactId>
\r
485 <failOnError>false</failOnError>
\r
489 <id>attach-javadocs</id>
\r
499 <groupId>org.apache.maven.plugins</groupId>
\r
500 <artifactId>maven-source-plugin</artifactId>
\r
501 <version>2.2.1</version>
\r
504 <id>attach-sources</id>
\r
506 <goal>jar-no-fork</goal>
\r
513 <groupId>org.codehaus.mojo</groupId>
\r
514 <artifactId>cobertura-maven-plugin</artifactId>
\r
515 <version>2.7</version>
\r
518 <format>html</format>
\r
519 <format>xml</format>
\r
526 <groupId>org.sonatype.plugins</groupId>
\r
527 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
528 <version>1.6.7</version>
\r
529 <extensions>true</extensions>
\r
531 <nexusUrl>${nexusproxy}</nexusUrl>
\r
532 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
533 <serverId>ecomp-staging</serverId>
\r
538 <groupId>org.jacoco</groupId>
\r
539 <artifactId>jacoco-maven-plugin</artifactId>
\r
540 <version>${jacoco.version}</version>
\r
543 <exclude>**/gen/**</exclude>
\r
544 <exclude>**/generated-sources/**</exclude>
\r
545 <exclude>**/yang-gen/**</exclude>
\r
546 <exclude>**/pax/**</exclude>
\r
552 <id>pre-unit-test</id>
\r
554 <goal>prepare-agent</goal>
\r
557 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
\r
558 <propertyName>surefireArgLine</propertyName>
\r
564 <id>post-unit-test</id>
\r
565 <phase>test</phase>
\r
567 <goal>report</goal>
\r
570 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
\r
571 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
\r
575 <id>pre-integration-test</id>
\r
576 <phase>pre-integration-test</phase>
\r
578 <goal>prepare-agent</goal>
\r
581 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
\r
583 <propertyName>failsafeArgLine</propertyName>
\r
589 <id>post-integration-test</id>
\r
590 <phase>post-integration-test</phase>
\r
592 <goal>report</goal>
\r
595 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
\r
596 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
\r
603 <distributionManagement>
\r
605 <id>ecomp-releases</id>
\r
606 <name>DR Release Repository</name>
\r
607 <url>${nexusproxy}${releaseNexusPath}</url>
\r
609 <snapshotRepository>
\r
610 <id>ecomp-snapshots</id>
\r
611 <name>DR Snapshot Repository</name>
\r
612 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
613 </snapshotRepository>
\r
615 <id>ecomp-site</id>
\r
616 <url>dav:${nexusproxy}${sitePath}</url>
\r
618 </distributionManagement>
\r
619 <pluginRepositories>
\r
621 <id>onap-plugin-snapshots</id>
\r
622 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
623 </pluginRepository>
\r
624 </pluginRepositories>
\r