Improve code coverage for aaf cadi modules
[aaf/cadi.git] / cass / 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         <modelVersion>4.0.0</modelVersion>\r
32         <name>CADI Cassandra Plugin</name>\r
33         <packaging>jar</packaging>\r
34         <url>https://github.com/att/AAF</url>\r
35         <description>CADI</description>\r
36         <artifactId>cadi-cass</artifactId>\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.language>java</sonar.language>\r
41                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
42                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
43                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
44                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
45                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>\r
46                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
47         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
48                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
49                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
50                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
51                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
52         </properties>\r
53         <dependencies>\r
54         <dependency>\r
55                         <groupId>org.mockito</groupId>\r
56                         <artifactId>mockito-all</artifactId>\r
57                         <version>1.9.5</version>\r
58                         <scope>test</scope>\r
59                         </dependency>\r
60                 <dependency>\r
61                         <groupId>org.onap.aaf.cadi</groupId>\r
62                         <artifactId>cadi-aaf</artifactId>\r
63                 </dependency>\r
64                 \r
65                 <dependency>\r
66                 <groupId>org.apache.cassandra</groupId>\r
67                 <artifactId>cassandra-all</artifactId>\r
68                 <version>2.1.14</version>\r
69                 <scope>compile</scope>\r
70                 <exclusions>\r
71                       <exclusion> \r
72                         <groupId>org.slf4j</groupId>\r
73                         <artifactId>slf4j-log4j12</artifactId>\r
74                       </exclusion>\r
75                       <exclusion> \r
76                         <groupId>log4j</groupId>\r
77                         <artifactId>log4j</artifactId>\r
78                       </exclusion>\r
79                     </exclusions> \r
80                 </dependency>\r
81                 \r
82         </dependencies>\r
83         <build>\r
84                 <plugins>\r
85                         <plugin>\r
86                                 <groupId>org.apache.maven.plugins</groupId>\r
87                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
88                         </plugin>\r
89                 \r
90                 <plugin>\r
91                         <groupId>org.apache.maven.plugins</groupId>\r
92                         <artifactId>maven-javadoc-plugin</artifactId>\r
93                         <version>2.10.4</version>\r
94                         <configuration>\r
95                         <failOnError>false</failOnError>\r
96                         </configuration>\r
97                         <executions>\r
98                                 <execution>\r
99                                         <id>attach-javadocs</id>\r
100                                         <goals>\r
101                                                 <goal>jar</goal>\r
102                                         </goals>\r
103                                 </execution>\r
104                         </executions>\r
105                 </plugin> \r
106            \r
107            \r
108                <plugin>\r
109                       <groupId>org.apache.maven.plugins</groupId>\r
110                       <artifactId>maven-source-plugin</artifactId>\r
111                       <version>2.2.1</version>\r
112                       <executions>\r
113                         <execution>\r
114                           <id>attach-sources</id>\r
115                           <goals>\r
116                             <goal>jar-no-fork</goal>\r
117                           </goals>\r
118                         </execution>\r
119                       </executions>\r
120                     </plugin>\r
121   <plugin>\r
122                                 <groupId>org.sonatype.plugins</groupId>\r
123                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
124                                 <version>1.6.7</version>\r
125                                 <extensions>true</extensions>\r
126                                 <configuration>\r
127                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
128                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
129                                         <serverId>ecomp-staging</serverId>\r
130                                 </configuration>\r
131                         </plugin> \r
132                         <plugin>\r
133           <groupId>org.jacoco</groupId>\r
134           <artifactId>jacoco-maven-plugin</artifactId>\r
135           <version>${jacoco.version}</version>\r
136           <configuration>\r
137             <!-- Note: This exclusion list should match <sonar.exclusions>\r
138          property above -->\r
139             <excludes>\r
140               <exclude>**/gen/**</exclude>\r
141               <exclude>**/generated-sources/**</exclude>\r
142               <exclude>**/yang-gen/**</exclude>\r
143               <exclude>**/pax/**</exclude>\r
144             </excludes>\r
145           </configuration>\r
146           <executions>\r
147             <!--\r
148         Prepares the property pointing to the JaCoCo runtime agent which\r
149         is passed as VM argument when Maven the Surefire plugin is executed.\r
150         -->\r
151             <execution>\r
152               <id>pre-unit-test</id>\r
153               <goals>\r
154                 <goal>prepare-agent</goal>\r
155               </goals>\r
156               <configuration>\r
157                 <!-- Sets the path to the file which contains the execution data. -->\r
158                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
159                 <!--\r
160             Sets the name of the property containing the settings\r
161             for JaCoCo runtime agent.\r
162         -->\r
163                 <propertyName>surefireArgLine</propertyName>\r
164               </configuration>\r
165             </execution>\r
166             <!--\r
167         Ensures that the code coverage report for unit tests is created after\r
168         unit tests have been run.\r
169         -->\r
170             <execution>\r
171               <id>post-unit-test</id>\r
172               <phase>test</phase>\r
173               <goals>\r
174                 <goal>report</goal>\r
175               </goals>\r
176               <configuration>\r
177                 <!-- Sets the path to the file which contains the execution data. -->\r
178                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
179                 <!-- Sets the output directory for the code coverage report. -->\r
180                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
181               </configuration>\r
182             </execution>\r
183             <execution>\r
184               <id>pre-integration-test</id>\r
185               <phase>pre-integration-test</phase>\r
186               <goals>\r
187                 <goal>prepare-agent</goal>\r
188               </goals>\r
189               <configuration>\r
190                 <!-- Sets the path to the file which contains the execution data. -->\r
191                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
192                 <!--\r
193             Sets the name of the property containing the settings\r
194             for JaCoCo runtime agent.\r
195         -->\r
196                 <propertyName>failsafeArgLine</propertyName>\r
197               </configuration>\r
198             </execution>\r
199             <!--\r
200         Ensures that the code coverage report for integration tests after\r
201         integration tests have been run.\r
202         -->\r
203             <execution>\r
204               <id>post-integration-test</id>\r
205               <phase>post-integration-test</phase>\r
206               <goals>\r
207                 <goal>report</goal>\r
208               </goals>\r
209               <configuration>\r
210                 <!-- Sets the path to the file which contains the execution data. -->\r
211                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
212                 <!-- Sets the output directory for the code coverage report. -->\r
213                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
214               </configuration>\r
215             </execution>\r
216           </executions>\r
217         </plugin>                    \r
218 \r
219                 </plugins>\r
220         </build>\r
221                 <distributionManagement>\r
222                 <repository>\r
223                         <id>ecomp-releases</id>\r
224                         <name>AAF Release Repository</name>\r
225                         <url>${nexusproxy}${releaseNexusPath}</url>\r
226                 </repository>\r
227                 <snapshotRepository>\r
228                         <id>ecomp-snapshots</id>\r
229                         <name>AAF Snapshot Repository</name>\r
230                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
231                 </snapshotRepository>\r
232                 <site>\r
233                         <id>ecomp-site</id>\r
234                         <url>dav:${nexusproxy}${sitePath}</url>\r
235                 </site>\r
236         </distributionManagement>\r
237 \r
238 </project>\r