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                 <sonar.skip>true</sonar.skip>\r
42                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
43             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
44             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
45             <!-- Default Sonar configuration -->\r
46             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
47             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
48             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
49             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
50         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
51                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
52                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
53                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
54                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
55         </properties>\r
56         <dependencies>\r
57                 <dependency>\r
58                         <groupId>org.onap.aaf.inno</groupId>\r
59                         <artifactId>rosetta</artifactId>\r
60                 </dependency>\r
61                 <dependency>\r
62                         <groupId>org.onap.aaf.cadi</groupId>\r
63                         <artifactId>cadi-core</artifactId>\r
64                 </dependency>\r
65                 <dependency>\r
66                         <groupId>com.att.aft</groupId>\r
67                         <artifactId>dme2</artifactId>\r
68                         <scope>compile</scope>\r
69                 </dependency>\r
70                 <dependency>\r
71                         <groupId>org.mockito</groupId>\r
72                         <artifactId>mockito-all</artifactId>\r
73                         <version>1.9.5</version>\r
74                         <scope>test</scope>\r
75                         </dependency>\r
76         </dependencies>\r
77 \r
78         <build>\r
79                 <plugins>\r
80                         <plugin>\r
81                                 <groupId>org.apache.maven.plugins</groupId>\r
82                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
83                         </plugin>\r
84                         <plugin>\r
85                         <groupId>org.apache.maven.plugins</groupId>\r
86                         <artifactId>maven-javadoc-plugin</artifactId>\r
87                         <version>2.10.4</version>\r
88                         <configuration>\r
89                         <failOnError>false</failOnError>\r
90                         </configuration>\r
91                         <executions>\r
92                                 <execution>\r
93                                         <id>attach-javadocs</id>\r
94                                         <goals>\r
95                                                 <goal>jar</goal>\r
96                                         </goals>\r
97                                 </execution>\r
98                         </executions>\r
99                 </plugin> \r
100            \r
101            \r
102                <plugin>\r
103                       <groupId>org.apache.maven.plugins</groupId>\r
104                       <artifactId>maven-source-plugin</artifactId>\r
105                       <version>2.2.1</version>\r
106                       <executions>\r
107                         <execution>\r
108                           <id>attach-sources</id>\r
109                           <goals>\r
110                             <goal>jar-no-fork</goal>\r
111                           </goals>\r
112                         </execution>\r
113                       </executions>\r
114                     </plugin>\r
115         \r
116   <plugin>\r
117                                 <groupId>org.sonatype.plugins</groupId>\r
118                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
119                                 <version>1.6.7</version>\r
120                                 <extensions>true</extensions>\r
121                                 <configuration>\r
122                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
123                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
124                                         <serverId>ecomp-staging</serverId>\r
125                                 </configuration>\r
126                         </plugin>\r
127 \r
128 <plugin>\r
129           <groupId>org.jacoco</groupId>\r
130           <artifactId>jacoco-maven-plugin</artifactId>\r
131           <version>${jacoco.version}</version>\r
132           <configuration>\r
133             <excludes>\r
134               <exclude>**/gen/**</exclude>\r
135               <exclude>**/generated-sources/**</exclude>\r
136               <exclude>**/yang-gen/**</exclude>\r
137               <exclude>**/pax/**</exclude>\r
138             </excludes>\r
139           </configuration>\r
140           <executions>\r
141 \r
142             <execution>\r
143               <id>pre-unit-test</id>\r
144               <goals>\r
145                 <goal>prepare-agent</goal>\r
146               </goals>\r
147               <configuration>\r
148                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
149                 <propertyName>surefireArgLine</propertyName>\r
150               </configuration>\r
151             </execution>\r
152             \r
153        \r
154             <execution>\r
155               <id>post-unit-test</id>\r
156               <phase>test</phase>\r
157               <goals>\r
158                 <goal>report</goal>\r
159               </goals>\r
160               <configuration>\r
161                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
162                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
163               </configuration>\r
164             </execution>\r
165             <execution>\r
166               <id>pre-integration-test</id>\r
167               <phase>pre-integration-test</phase>\r
168               <goals>\r
169                 <goal>prepare-agent</goal>\r
170               </goals>\r
171               <configuration>\r
172                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
173 \r
174                 <propertyName>failsafeArgLine</propertyName>\r
175               </configuration>\r
176             </execution>\r
177 \r
178        \r
179             <execution>\r
180               <id>post-integration-test</id>\r
181               <phase>post-integration-test</phase>\r
182               <goals>\r
183                 <goal>report</goal>\r
184               </goals>\r
185               <configuration>\r
186                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
187                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
188               </configuration>\r
189             </execution>\r
190           </executions>\r
191         </plugin>       \r
192 \r
193 \r
194                 </plugins>\r
195         </build>\r
196                 <distributionManagement>\r
197                 <repository>\r
198                         <id>ecomp-releases</id>\r
199                         <name>AAF Release Repository</name>\r
200                         <url>${nexusproxy}${releaseNexusPath}</url>\r
201                 </repository>\r
202                 <snapshotRepository>\r
203                         <id>ecomp-snapshots</id>\r
204                         <name>AAF Snapshot Repository</name>\r
205                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
206                 </snapshotRepository>\r
207                 <site>\r
208                         <id>ecomp-site</id>\r
209                         <url>dav:${nexusproxy}${sitePath}</url>\r
210                 </site>\r
211         </distributionManagement>\r
212 \r
213 </project>\r