2 ============LICENSE_START=======================================================
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 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
27 <artifactId>dmaapMMAgent</artifactId>
28 <version>1.0.0-SNAPSHOT</version>
29 <packaging>jar</packaging>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
34 <version>0.1.1</version>
37 <name>dmaap-messagerouter-mirroragent</name>
38 <description>Mirror Maker Agent - Repliaction agent</description>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <jacoco.version>0.7.7.201606060606</jacoco.version>
44 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
45 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
46 <!-- Default Sonar configuration -->
47 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
48 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
49 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
51 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/mirroragent/${project.artifactId}/${project.version}</sitePath>
52 <nexusproxy>https://nexus.onap.org</nexusproxy>
53 <junit.version>4.10</junit.version>
56 <distributionManagement>
59 <url>dav:${nexusproxy}${sitePath}</url>
61 </distributionManagement>
65 <name>Apache License Version 2.0</name>
72 <organization>ATT</organization>
73 <organizationUrl>www.att.com</organizationUrl>
79 <groupId>junit</groupId>
80 <artifactId>junit</artifactId>
81 <version>${junit.version}</version>
85 <groupId>org.mockito</groupId>
86 <artifactId>mockito-core</artifactId>
87 <version>1.10.19</version>
90 <groupId>org.powermock</groupId>
91 <artifactId>powermock-module-junit4</artifactId>
92 <version>1.6.4</version>
95 <groupId>org.powermock</groupId>
96 <artifactId>powermock-api-mockito</artifactId>
97 <version>1.6.4</version>
100 <groupId>com.google.code.gson</groupId>
101 <artifactId>gson</artifactId>
102 <version>2.6.2</version>
105 <groupId>log4j</groupId>
106 <artifactId>log4j</artifactId>
107 <version>1.2.17</version>
110 <groupId>org.jasypt</groupId>
111 <artifactId>jasypt</artifactId>
112 <version>1.9.2</version>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-site-plugin</artifactId>
120 <version>3.6</version>
123 <groupId>org.apache.maven.wagon</groupId>
124 <artifactId>wagon-webdav-jackrabbit</artifactId>
125 <version>2.10</version>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-javadoc-plugin</artifactId>
132 <version>2.10.4</version>
134 <additionalparam>-Xdoclint:none</additionalparam>
138 <id>attach-javadocs</id>
146 <groupId>org.apache.maven.plugins</groupId>
147 <artifactId>maven-source-plugin</artifactId>
148 <version>3.0.0</version>
151 <id>attach-sources</id>
153 <goal>jar-no-fork</goal>
159 <groupId>org.codehaus.mojo</groupId>
160 <artifactId>cobertura-maven-plugin</artifactId>
161 <version>2.7</version>
164 <format>html</format>
170 <artifactId>maven-assembly-plugin</artifactId>
171 <version>2.4</version>
174 <descriptorRef>jar-with-dependencies</descriptorRef>
179 <addClasspath>true</addClasspath>
180 <mainClass>com.att.nsa.dmaapMMAgent.MirrorMakerAgent</mainClass>
187 <id>make-assembly</id> <!-- this is used for inheritance merges -->
188 <phase>package</phase> <!-- bind to the packaging phase -->
196 <groupId>org.jacoco</groupId>
197 <artifactId>jacoco-maven-plugin</artifactId>
198 <version>${jacoco.version}</version>
200 <!-- Note: This exclusion list should match <sonar.exclusions>
203 <exclude>**/gen/**</exclude>
204 <exclude>**/generated-sources/**</exclude>
205 <exclude>**/yang-gen/**</exclude>
206 <exclude>**/pax/**</exclude>
211 Prepares the property pointing to the JaCoCo runtime agent which
212 is passed as VM argument when Maven the Surefire plugin is executed.
215 <id>pre-unit-test</id>
217 <goal>prepare-agent</goal>
220 <!-- Sets the path to the file which contains the execution data. -->
221 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
223 Sets the name of the property containing the settings
224 for JaCoCo runtime agent.
226 <propertyName>surefireArgLine</propertyName>
230 Ensures that the code coverage report for unit tests is created after
231 unit tests have been run.
234 <id>post-unit-test</id>
240 <!-- Sets the path to the file which contains the execution data. -->
241 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
242 <!-- Sets the output directory for the code coverage report. -->
243 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
247 <id>pre-integration-test</id>
248 <phase>pre-integration-test</phase>
250 <goal>prepare-agent</goal>
253 <!-- Sets the path to the file which contains the execution data. -->
254 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
256 Sets the name of the property containing the settings
257 for JaCoCo runtime agent.
259 <propertyName>failsafeArgLine</propertyName>
263 Ensures that the code coverage report for integration tests after
264 integration tests have been run.
267 <id>post-integration-test</id>
268 <phase>post-integration-test</phase>
273 <!-- Sets the path to the file which contains the execution data. -->
274 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
275 <!-- Sets the output directory for the code coverage report. -->
276 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>