Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-cass / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3   ============LICENSE_START====================================================\r
4   * org.onap.aaf\r
5   * ===========================================================================\r
6   * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
7   * ===========================================================================\r
8   * Licensed under the Apache License, Version 2.0 (the "License");\r
9   * you may not use this file except in compliance with the License.\r
10   * You may obtain a copy of the License at\r
11   * \r
12    *      http://www.apache.org/licenses/LICENSE-2.0\r
13   * \r
14    * Unless required by applicable law or agreed to in writing, software\r
15   * distributed under the License is distributed on an "AS IS" BASIS,\r
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17   * See the License for the specific language governing permissions and\r
18   * limitations under the License.\r
19   * ============LICENSE_END====================================================\r
20   *\r
21   * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
22   *\r
23 -->\r
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
26         <modelVersion>4.0.0</modelVersion>\r
27         <parent>\r
28                 <groupId>org.onap.aaf.authz</groupId>\r
29                 <artifactId>parent</artifactId>\r
30                 <version>1.0.1-SNAPSHOT</version>\r
31                 <relativePath>../pom.xml</relativePath>\r
32         </parent>\r
33                 \r
34         <artifactId>authz-cass</artifactId>\r
35         <name>Authz Cass</name>\r
36         <description>Cassandra DAOs for Authz</description>\r
37         <packaging>jar</packaging>\r
38                 <url>https://github.com/att/AAF</url>\r
39         <licenses>\r
40                 <license>\r
41                 <name>BSD License</name>\r
42                 <url> </url>\r
43                 </license>\r
44         </licenses>\r
45         <developers>\r
46                 <developer>\r
47                 <name>Jonathan Gathman</name>\r
48                 <email></email>\r
49         <organization>ATT</organization>\r
50         <organizationUrl></organizationUrl>\r
51                 </developer>\r
52         </developers>\r
53                 <properties>\r
54                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
55                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
56                 \r
57                 <!--  SONAR  -->\r
58                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
59                  <sonar.skip>true</sonar.skip>\r
60             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
61             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
62             <!-- Default Sonar configuration -->\r
63             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
64             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
65             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
66             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
67         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
68                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
69                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
70                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
71                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
72         </properties>\r
73         <dependencies>\r
74                 <dependency>\r
75                         <groupId>org.onap.aaf.authz</groupId>\r
76                         <artifactId>authz-core</artifactId>\r
77                         <version>${project.version}</version>\r
78                 </dependency>\r
79 \r
80                 <dependency>\r
81                         <groupId>org.onap.aaf.cadi</groupId>\r
82                         <artifactId>cadi-aaf</artifactId>\r
83                         <version>${project.cadiVersion}</version>\r
84                 </dependency>\r
85 \r
86         <dependency>\r
87                         <groupId>com.datastax.cassandra</groupId>\r
88                         <artifactId>cassandra-driver-core</artifactId>\r
89                         <version>2.1.10</version>\r
90                 </dependency>   \r
91                 \r
92                 <!-- Cassandra prefers Snappy and LZ4 libs for performance -->\r
93                 <dependency>\r
94                   <groupId>org.xerial.snappy</groupId>\r
95                   <artifactId>snappy-java</artifactId>\r
96                   <version>1.1.1-M1</version>\r
97                 </dependency>\r
98                 \r
99                 <dependency>\r
100                   <groupId>net.jpountz.lz4</groupId>\r
101                   <artifactId>lz4</artifactId>\r
102                   <version>1.2.0</version>\r
103                 </dependency>\r
104                 \r
105                 <dependency>\r
106           <groupId>com.googlecode.jcsv</groupId>\r
107           <artifactId>jcsv</artifactId>\r
108           <version>1.4.0</version>\r
109                 </dependency>\r
110                 \r
111                 <dependency>\r
112                         <groupId>org.slf4j</groupId>\r
113                         <artifactId>slf4j-log4j12</artifactId>\r
114                 <scope>test</scope>\r
115                 </dependency>\r
116                 \r
117         \r
118         </dependencies>\r
119         <build>\r
120                 <plugins>\r
121                         <plugin>\r
122                                 <groupId>org.apache.maven.plugins</groupId>\r
123                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
124                         </plugin>\r
125                         \r
126                         <plugin>\r
127                         <groupId>org.apache.maven.plugins</groupId>\r
128                         <artifactId>maven-javadoc-plugin</artifactId>\r
129                         <version>2.10.4</version>\r
130                         <configuration>\r
131                         <failOnError>false</failOnError>\r
132                         </configuration>\r
133                         <executions>\r
134                                 <execution>\r
135                                         <id>attach-javadocs</id>\r
136                                         <goals>\r
137                                                 <goal>jar</goal>\r
138                                         </goals>\r
139                                 </execution>\r
140                         </executions>\r
141                 </plugin> \r
142            \r
143            \r
144                <plugin>\r
145                       <groupId>org.apache.maven.plugins</groupId>\r
146                       <artifactId>maven-source-plugin</artifactId>\r
147                       <version>2.2.1</version>\r
148                       <executions>\r
149                         <execution>\r
150                           <id>attach-sources</id>\r
151                           <goals>\r
152                             <goal>jar-no-fork</goal>\r
153                           </goals>\r
154                         </execution>\r
155                       </executions>\r
156                     </plugin>\r
157 <plugin>\r
158                                 <groupId>org.sonatype.plugins</groupId>\r
159                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
160                                 <version>1.6.7</version>\r
161                                 <extensions>true</extensions>\r
162                                 <configuration>\r
163                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
164                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
165                                         <serverId>ecomp-staging</serverId>\r
166                                 </configuration>\r
167                         </plugin>               \r
168                         <plugin>\r
169           <groupId>org.jacoco</groupId>\r
170           <artifactId>jacoco-maven-plugin</artifactId>\r
171           <version>${jacoco.version}</version>\r
172           <configuration>\r
173             <excludes>\r
174               <exclude>**/gen/**</exclude>\r
175               <exclude>**/generated-sources/**</exclude>\r
176               <exclude>**/yang-gen/**</exclude>\r
177               <exclude>**/pax/**</exclude>\r
178             </excludes>\r
179           </configuration>\r
180           <executions>\r
181 \r
182             <execution>\r
183               <id>pre-unit-test</id>\r
184               <goals>\r
185                 <goal>prepare-agent</goal>\r
186               </goals>\r
187               <configuration>\r
188                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
189                 <propertyName>surefireArgLine</propertyName>\r
190               </configuration>\r
191             </execution>\r
192             \r
193        \r
194             <execution>\r
195               <id>post-unit-test</id>\r
196               <phase>test</phase>\r
197               <goals>\r
198                 <goal>report</goal>\r
199               </goals>\r
200               <configuration>\r
201                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
202                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
203               </configuration>\r
204             </execution>\r
205             <execution>\r
206               <id>pre-integration-test</id>\r
207               <phase>pre-integration-test</phase>\r
208               <goals>\r
209                 <goal>prepare-agent</goal>\r
210               </goals>\r
211               <configuration>\r
212                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
213 \r
214                 <propertyName>failsafeArgLine</propertyName>\r
215               </configuration>\r
216             </execution>\r
217 \r
218        \r
219             <execution>\r
220               <id>post-integration-test</id>\r
221               <phase>post-integration-test</phase>\r
222               <goals>\r
223                 <goal>report</goal>\r
224               </goals>\r
225               <configuration>\r
226                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
227                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
228               </configuration>\r
229             </execution>\r
230           </executions>\r
231         </plugin>       \r
232 \r
233                 </plugins>\r
234         </build>\r
235         <distributionManagement>\r
236                 <repository>\r
237                         <id>ecomp-releases</id>\r
238                         <name>AAF Release Repository</name>\r
239                         <url>${nexusproxy}${releaseNexusPath}</url>\r
240                 </repository>\r
241                 <snapshotRepository>\r
242                         <id>ecomp-snapshots</id>\r
243                         <name>AAF Snapshot Repository</name>\r
244                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
245                 </snapshotRepository>\r
246                 <site>\r
247                         <id>ecomp-site</id>\r
248                         <url>dav:${nexusproxy}${sitePath}</url>\r
249                 </site>\r
250         </distributionManagement>\r
251         \r
252 </project>\r
253 \r