changes for kafka upgrade
[dmaap/messagerouter/mirroragent.git] / pom.xml
1 <!--
2      ============LICENSE_START=======================================================
3      org.onap.dmaap
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
11      
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=========================================================
18    
19      ECOMP is a trademark and service mark of AT&T Intellectual Property.
20      
21  -->
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>
25
26         <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
27         <artifactId>dmaapMMAgent</artifactId>
28         <version>1.1.0-SNAPSHOT</version>
29         <packaging>jar</packaging>
30         
31         <parent>
32                 <groupId>org.onap.oparent</groupId>
33                 <artifactId>oparent</artifactId>
34                 <version>1.1.0</version>
35         </parent>
36
37         <name>dmaap-messagerouter-mirroragent</name>
38         <description>Mirror Maker Agent - Repliaction agent</description>
39
40         <properties>
41                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42                 <!--  SONAR  -->
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.11</junit.version>
54         </properties>
55         
56         <distributionManagement>
57                 <site>
58                         <id>ecomp-site</id>
59                         <url>dav:${nexusproxy}${sitePath}</url>
60                 </site>
61         </distributionManagement>
62         
63         <licenses>
64                 <license>
65                         <name>Apache License Version 2.0</name>
66                 </license>
67         </licenses>
68         <developers>
69                 <developer>
70                         <name>Jackie</name>
71                         <email></email>
72                         <organization>ATT</organization>
73                         <organizationUrl>www.att.com</organizationUrl>
74                 </developer>
75         </developers>
76
77         <dependencies>
78                 <dependency>
79       <groupId>junit</groupId>
80       <artifactId>junit</artifactId>
81       <version>${junit.version}</version>
82       <scope>test</scope>
83     </dependency>
84         <dependency>
85             <groupId>org.mockito</groupId>
86             <artifactId>mockito-core</artifactId>
87             <version>1.10.19</version>
88         </dependency>
89         <dependency>
90             <groupId>org.powermock</groupId>
91             <artifactId>powermock-module-junit4</artifactId>
92             <version>1.6.4</version>
93         </dependency>
94         <dependency>
95             <groupId>org.powermock</groupId>
96             <artifactId>powermock-api-mockito</artifactId>
97             <version>1.6.4</version>
98         </dependency>
99                 <dependency>
100                         <groupId>com.google.code.gson</groupId>
101                         <artifactId>gson</artifactId>
102                         <version>2.6.2</version>
103                 </dependency>
104                 <dependency>
105                         <groupId>log4j</groupId>
106                         <artifactId>log4j</artifactId>
107                         <version>1.2.17</version>
108                 </dependency>
109                 <dependency>
110                         <groupId>org.jasypt</groupId>
111                         <artifactId>jasypt</artifactId>
112                         <version>1.9.2</version>
113                 </dependency>
114         </dependencies>
115         <build>
116                 <plugins>
117                 <plugin>
118                                 <groupId>org.apache.maven.plugins</groupId>
119                                 <artifactId>maven-site-plugin</artifactId>
120                                 <version>3.6</version>
121                                 <dependencies>
122                                         <dependency>
123                                                 <groupId>org.apache.maven.wagon</groupId>
124                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
125                                                 <version>2.10</version>
126                                         </dependency>
127                                 </dependencies>
128                         </plugin>
129                         <plugin>
130                                 <groupId>org.apache.maven.plugins</groupId>
131                                 <artifactId>maven-javadoc-plugin</artifactId>
132                                 <version>2.10.4</version>
133                                 <configuration>
134                                         <additionalparam>-Xdoclint:none</additionalparam>
135                                 </configuration>
136                                 <executions>
137                                         <execution>
138                                                 <id>attach-javadocs</id>
139                                                 <goals>
140                                                         <goal>jar</goal>
141                                                 </goals>
142                                         </execution>
143                                 </executions>
144                         </plugin>
145                         <plugin>
146                                 <groupId>org.apache.maven.plugins</groupId>
147                                 <artifactId>maven-source-plugin</artifactId>
148                                 <version>3.0.0</version>
149                                 <executions>
150                                         <execution>
151                                                 <id>attach-sources</id>
152                                                 <goals>
153                                                         <goal>jar-no-fork</goal>
154                                                 </goals>
155                                         </execution>
156                                 </executions>
157                         </plugin>
158                         <plugin>
159                                 <groupId>org.codehaus.mojo</groupId>
160                                 <artifactId>cobertura-maven-plugin</artifactId>
161                                 <version>2.7</version>
162                                 <configuration>
163                                         <formats>
164                                                 <format>html</format>
165                                                 <format>xml</format>
166                                         </formats>
167                                 </configuration>
168                         </plugin>
169                         <plugin>
170                                 <artifactId>maven-assembly-plugin</artifactId>
171                                 <version>2.4</version>
172                                 <configuration>
173                                         <descriptorRefs>
174                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
175                                         </descriptorRefs>
176                                         <archive>
177
178                                                 <manifest>
179                                                         <addClasspath>true</addClasspath>
180                                                         <mainClass>com.att.nsa.dmaapMMAgent.MirrorMakerAgent</mainClass>
181                                                 </manifest>
182                                         </archive>
183                                 </configuration>
184
185                                 <executions>
186                                         <execution>
187                                                 <id>make-assembly</id> <!-- this is used for inheritance merges -->
188                                                 <phase>package</phase> <!-- bind to the packaging phase -->
189                                                 <goals>
190                                                         <goal>single</goal>
191                                                 </goals>
192                                         </execution>
193                                 </executions>
194                         </plugin>
195                         <plugin>
196           <groupId>org.jacoco</groupId>
197           <artifactId>jacoco-maven-plugin</artifactId>
198           <version>${jacoco.version}</version>
199           <configuration>
200             <!-- Note: This exclusion list should match <sonar.exclusions>
201          property above -->
202             <excludes>
203               <exclude>**/gen/**</exclude>
204               <exclude>**/generated-sources/**</exclude>
205               <exclude>**/yang-gen/**</exclude>
206               <exclude>**/pax/**</exclude>
207             </excludes>
208           </configuration>
209           <executions>
210             <!--
211         Prepares the property pointing to the JaCoCo runtime agent which
212         is passed as VM argument when Maven the Surefire plugin is executed.
213         -->
214             <execution>
215               <id>pre-unit-test</id>
216               <goals>
217                 <goal>prepare-agent</goal>
218               </goals>
219               <configuration>
220                 <!-- Sets the path to the file which contains the execution data. -->
221                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
222                 <!--
223             Sets the name of the property containing the settings
224             for JaCoCo runtime agent.
225         -->
226                 <propertyName>surefireArgLine</propertyName>
227               </configuration>
228             </execution>
229             <!--
230         Ensures that the code coverage report for unit tests is created after
231         unit tests have been run.
232         -->
233             <execution>
234               <id>post-unit-test</id>
235               <phase>test</phase>
236               <goals>
237                 <goal>report</goal>
238               </goals>
239               <configuration>
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>
244               </configuration>
245             </execution>
246             <execution>
247               <id>pre-integration-test</id>
248               <phase>pre-integration-test</phase>
249               <goals>
250                 <goal>prepare-agent</goal>
251               </goals>
252               <configuration>
253                 <!-- Sets the path to the file which contains the execution data. -->
254                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
255                 <!--
256             Sets the name of the property containing the settings
257             for JaCoCo runtime agent.
258         -->
259                 <propertyName>failsafeArgLine</propertyName>
260               </configuration>
261             </execution>
262             <!--
263         Ensures that the code coverage report for integration tests after
264         integration tests have been run.
265         -->
266             <execution>
267               <id>post-integration-test</id>
268               <phase>post-integration-test</phase>
269               <goals>
270                 <goal>report</goal>
271               </goals>
272               <configuration>
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>
277               </configuration>
278             </execution>
279           </executions>
280         </plugin>
281
282                 </plugins>
283         </build>
284 </project>