Improve code coverage for aaf cadi modules
[aaf/cadi.git] / client / pom.xml
1 <!--\r
2   ============LICENSE_START====================================================\r
3   * org.onap.aaf\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
10   * \r
11    *      http://www.apache.org/licenses/LICENSE-2.0\r
12   * \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
19   *\r
20   * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
21   *\r
22 -->\r
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
24 <parent>\r
25                 <groupId>org.onap.aaf.cadi</groupId>\r
26                 <artifactId>parent</artifactId>\r
27                 <version>1.0.0-SNAPSHOT</version>\r
28                 <relativePath>..</relativePath>\r
29         </parent>\r
30         \r
31         <name>CADI Client</name>\r
32         <artifactId>cadi-client</artifactId>\r
33         <packaging>jar</packaging>\r
34         <url>https://github.com/att/AAF</url>\r
35         <description>CADI</description>\r
36         <modelVersion>4.0.0</modelVersion>\r
37 <properties>\r
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
39                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
40                 <!--  SONAR  -->\r
41                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
42             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
43             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
44             <!-- Default Sonar configuration -->\r
45             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
46             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
47             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
48             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
49         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
50                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
51                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
52                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
53                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
54         </properties>\r
55         <dependencies>\r
56                 <dependency>\r
57                         <groupId>org.onap.aaf.inno</groupId>\r
58                         <artifactId>rosetta</artifactId>\r
59                 </dependency>\r
60                 <dependency>\r
61                         <groupId>org.onap.aaf.cadi</groupId>\r
62                         <artifactId>cadi-core</artifactId>\r
63                 </dependency>\r
64                 <dependency>\r
65                         <groupId>com.att.aft</groupId>\r
66                         <artifactId>dme2</artifactId>\r
67                         <scope>compile</scope>\r
68                 </dependency>\r
69                 <dependency>\r
70                         <groupId>org.mockito</groupId>\r
71                         <artifactId>mockito-all</artifactId>\r
72                         <version>1.9.5</version>\r
73                         <scope>test</scope>\r
74                         </dependency>\r
75         </dependencies>\r
76 \r
77         <build>\r
78                 <plugins>\r
79                         <plugin>\r
80                                 <groupId>org.apache.maven.plugins</groupId>\r
81                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
82                         </plugin>\r
83                         <plugin>\r
84                         <groupId>org.apache.maven.plugins</groupId>\r
85                         <artifactId>maven-javadoc-plugin</artifactId>\r
86                         <version>2.10.4</version>\r
87                         <configuration>\r
88                         <failOnError>false</failOnError>\r
89                         </configuration>\r
90                         <executions>\r
91                                 <execution>\r
92                                         <id>attach-javadocs</id>\r
93                                         <goals>\r
94                                                 <goal>jar</goal>\r
95                                         </goals>\r
96                                 </execution>\r
97                         </executions>\r
98                 </plugin> \r
99            \r
100            \r
101                <plugin>\r
102                       <groupId>org.apache.maven.plugins</groupId>\r
103                       <artifactId>maven-source-plugin</artifactId>\r
104                       <version>2.2.1</version>\r
105                       <executions>\r
106                         <execution>\r
107                           <id>attach-sources</id>\r
108                           <goals>\r
109                             <goal>jar-no-fork</goal>\r
110                           </goals>\r
111                         </execution>\r
112                       </executions>\r
113                     </plugin>\r
114         \r
115   <plugin>\r
116                                 <groupId>org.sonatype.plugins</groupId>\r
117                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
118                                 <version>1.6.7</version>\r
119                                 <extensions>true</extensions>\r
120                                 <configuration>\r
121                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
122                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
123                                         <serverId>ecomp-staging</serverId>\r
124                                 </configuration>\r
125                         </plugin>\r
126 \r
127 <plugin>\r
128           <groupId>org.jacoco</groupId>\r
129           <artifactId>jacoco-maven-plugin</artifactId>\r
130           <version>${jacoco.version}</version>\r
131           <configuration>\r
132             <excludes>\r
133               <exclude>**/gen/**</exclude>\r
134               <exclude>**/generated-sources/**</exclude>\r
135               <exclude>**/yang-gen/**</exclude>\r
136               <exclude>**/pax/**</exclude>\r
137             </excludes>\r
138           </configuration>\r
139           <executions>\r
140 \r
141             <execution>\r
142               <id>pre-unit-test</id>\r
143               <goals>\r
144                 <goal>prepare-agent</goal>\r
145               </goals>\r
146               <configuration>\r
147                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
148                 <propertyName>surefireArgLine</propertyName>\r
149               </configuration>\r
150             </execution>\r
151             \r
152        \r
153             <execution>\r
154               <id>post-unit-test</id>\r
155               <phase>test</phase>\r
156               <goals>\r
157                 <goal>report</goal>\r
158               </goals>\r
159               <configuration>\r
160                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
161                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
162               </configuration>\r
163             </execution>\r
164             <execution>\r
165               <id>pre-integration-test</id>\r
166               <phase>pre-integration-test</phase>\r
167               <goals>\r
168                 <goal>prepare-agent</goal>\r
169               </goals>\r
170               <configuration>\r
171                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
172 \r
173                 <propertyName>failsafeArgLine</propertyName>\r
174               </configuration>\r
175             </execution>\r
176 \r
177        \r
178             <execution>\r
179               <id>post-integration-test</id>\r
180               <phase>post-integration-test</phase>\r
181               <goals>\r
182                 <goal>report</goal>\r
183               </goals>\r
184               <configuration>\r
185                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
186                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
187               </configuration>\r
188             </execution>\r
189           </executions>\r
190         </plugin>       \r
191 \r
192 \r
193                 </plugins>\r
194         </build>\r
195                 <distributionManagement>\r
196                 <repository>\r
197                         <id>ecomp-releases</id>\r
198                         <name>AAF Release Repository</name>\r
199                         <url>${nexusproxy}${releaseNexusPath}</url>\r
200                 </repository>\r
201                 <snapshotRepository>\r
202                         <id>ecomp-snapshots</id>\r
203                         <name>AAF Snapshot Repository</name>\r
204                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
205                 </snapshotRepository>\r
206                 <site>\r
207                         <id>ecomp-site</id>\r
208                         <url>dav:${nexusproxy}${sitePath}</url>\r
209                 </site>\r
210         </distributionManagement>\r
211 \r
212 </project>\r