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

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use