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