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.onap.aaf.cadi</groupId>\r
56                         <artifactId>cadi-aaf</artifactId>\r
57                 </dependency>\r
58                 \r
59                 <dependency>\r
60                 <groupId>org.apache.cassandra</groupId>\r
61                 <artifactId>cassandra-all</artifactId>\r
62                 <version>2.1.14</version>\r
63                 <scope>compile</scope>\r
64                 <exclusions>\r
65                       <exclusion> \r
66                         <groupId>org.slf4j</groupId>\r
67                         <artifactId>slf4j-log4j12</artifactId>\r
68                       </exclusion>\r
69                       <exclusion> \r
70                         <groupId>log4j</groupId>\r
71                         <artifactId>log4j</artifactId>\r
72                       </exclusion>\r
73                     </exclusions> \r
74                 </dependency>\r
75                 \r
76         </dependencies>\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                 \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   <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                         <plugin>\r
127                                 <groupId>org.jacoco</groupId>\r
128                                 <artifactId>jacoco-maven-plugin</artifactId>\r
129                                 <version>0.7.7.201606060606</version>\r
130                                 <configuration>\r
131                                         <dumpOnExit>true</dumpOnExit>\r
132                                 </configuration>\r
133                                 <executions>\r
134                                         <execution>\r
135                                                 <id>pre-unit-test</id>\r
136                                                 <goals>\r
137                                                         <goal>prepare-agent</goal>\r
138                                                 </goals>\r
139                                                 <configuration>\r
140                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
141                                                         <!-- <append>true</append> -->\r
142                                                 </configuration>\r
143                                         </execution>\r
144                                         <execution>\r
145                                                 <id>pre-integration-test</id>\r
146                                                 <phase>pre-integration-test</phase>\r
147                                                 <goals>\r
148                                                         <goal>prepare-agent</goal>\r
149                                                 </goals>\r
150                                                 <configuration>\r
151                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
152                                                         <!-- <append>true</append> -->\r
153                                                 </configuration>\r
154                                         </execution>\r
155                                         <execution>\r
156                         <goals>\r
157                             <goal>merge</goal>\r
158                         </goals>\r
159                         <phase>post-integration-test</phase>\r
160                         <configuration>\r
161                             <fileSets>\r
162                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
163                                     <directory>${project.build.directory}/coverage-reports</directory>\r
164                                     <includes>\r
165                                         <include>*.exec</include>\r
166                                     </includes>\r
167                                 </fileSet>\r
168                             </fileSets>\r
169                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
170                         </configuration>\r
171                     </execution>\r
172                                 </executions>\r
173                         </plugin>\r
174                 </plugins>\r
175         </build>\r
176                 <distributionManagement>\r
177                 <repository>\r
178                         <id>ecomp-releases</id>\r
179                         <name>AAF Release Repository</name>\r
180                         <url>${nexusproxy}${releaseNexusPath}</url>\r
181                 </repository>\r
182                 <snapshotRepository>\r
183                         <id>ecomp-snapshots</id>\r
184                         <name>AAF Snapshot Repository</name>\r
185                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
186                 </snapshotRepository>\r
187                 <site>\r
188                         <id>ecomp-site</id>\r
189                         <url>dav:${nexusproxy}${sitePath}</url>\r
190                 </site>\r
191         </distributionManagement>\r
192 \r
193 </project>\r