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