Improve code coverage for aaf cadi modules
[aaf/cadi.git] / core / 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                 <relativePath>..</relativePath>\r
28                 <version>1.0.0-SNAPSHOT</version>\r
29         </parent>\r
30         \r
31         <modelVersion>4.0.0</modelVersion>\r
32         <name>CADI Core Framework (Code, Access, Data, Identity)</name>\r
33         <artifactId>cadi-core</artifactId>\r
34         <packaging>jar</packaging>\r
35         <url>https://github.com/att/AAF</url>\r
36         <description>CADI</description>\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                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
42             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
43             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
44             <!-- Default Sonar configuration -->\r
45             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
46             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
47             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
48             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
49         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
50                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
51                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
52                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
53                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>\r
54         </properties>\r
55         <dependencies>\r
56          <dependency>\r
57                         <groupId>org.mockito</groupId>\r
58                         <artifactId>mockito-all</artifactId>\r
59                         <version>1.9.5</version>\r
60                         <scope>test</scope>\r
61                         </dependency>\r
62                 <dependency>\r
63                         <groupId>javax.servlet</groupId>\r
64                         <artifactId>servlet-api</artifactId>\r
65                         <scope>provided</scope>\r
66                 </dependency>\r
67                 \r
68                 <dependency>\r
69                         <groupId>org.slf4j</groupId>\r
70                         <artifactId>slf4j-api</artifactId>\r
71                         <scope>provided</scope>\r
72                 </dependency>\r
73                 \r
74         </dependencies>\r
75         <build>\r
76                 <plugins>\r
77                         <plugin>\r
78                                 <!-- Must put this in to turn on Signing, but Configuration itself is \r
79                                         in Parent -->\r
80                                 <groupId>org.apache.maven.plugins</groupId>\r
81                                 <artifactId>maven-jarsigner-plugin</artifactId>\r
82                         </plugin>\r
83                         <plugin>\r
84                         <groupId>org.apache.maven.plugins</groupId>\r
85                         <artifactId>maven-jar-plugin</artifactId>\r
86                         <configuration>\r
87                                 <archive>\r
88                                         <manifest>\r
89                                                 <mainClass>com.att.cadi.CmdLine</mainClass>\r
90                                         </manifest>\r
91                                         <manifestEntries>\r
92                                                 <Sealed>true</Sealed>\r
93                                         </manifestEntries>\r
94                                 </archive>\r
95                         </configuration>\r
96                         <executions>\r
97                                 <execution>\r
98                                         <id>test-jar</id>\r
99                                         <phase>package</phase>\r
100                                         <goals>\r
101                                                 <goal>test-jar</goal>\r
102                                         </goals>\r
103                                 </execution>\r
104                         </executions>\r
105                 </plugin>\r
106                 \r
107                 <plugin>\r
108                         <groupId>org.apache.maven.plugins</groupId>\r
109                         <artifactId>maven-javadoc-plugin</artifactId>\r
110                         <version>2.10.4</version>\r
111                         <configuration>\r
112                         <failOnError>false</failOnError>\r
113                         </configuration>\r
114                         <executions>\r
115                                 <execution>\r
116                                         <id>attach-javadocs</id>\r
117                                         <goals>\r
118                                                 <goal>jar</goal>\r
119                                         </goals>\r
120                                 </execution>\r
121                         </executions>\r
122                 </plugin> \r
123            \r
124            \r
125                <plugin>\r
126                       <groupId>org.apache.maven.plugins</groupId>\r
127                       <artifactId>maven-source-plugin</artifactId>\r
128                       <version>2.2.1</version>\r
129                       <executions>\r
130                         <execution>\r
131                           <id>attach-sources</id>\r
132                           <goals>\r
133                             <goal>jar-no-fork</goal>\r
134                           </goals>\r
135                         </execution>\r
136                       </executions>\r
137                     </plugin>\r
138   <plugin>\r
139                                 <groupId>org.sonatype.plugins</groupId>\r
140                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
141                                 <version>1.6.7</version>\r
142                                 <extensions>true</extensions>\r
143                                 <configuration>\r
144                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
145                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
146                                         <serverId>ecomp-staging</serverId>\r
147                                 </configuration>\r
148                         </plugin> \r
149                         \r
150 <plugin>\r
151           <groupId>org.jacoco</groupId>\r
152           <artifactId>jacoco-maven-plugin</artifactId>\r
153           <version>${jacoco.version}</version>\r
154           <configuration>\r
155             <excludes>\r
156               <exclude>**/gen/**</exclude>\r
157               <exclude>**/generated-sources/**</exclude>\r
158               <exclude>**/yang-gen/**</exclude>\r
159               <exclude>**/pax/**</exclude>\r
160             </excludes>\r
161           </configuration>\r
162           <executions>\r
163 \r
164             <execution>\r
165               <id>pre-unit-test</id>\r
166               <goals>\r
167                 <goal>prepare-agent</goal>\r
168               </goals>\r
169               <configuration>\r
170                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
171                 <propertyName>surefireArgLine</propertyName>\r
172               </configuration>\r
173             </execution>\r
174             \r
175        \r
176             <execution>\r
177               <id>post-unit-test</id>\r
178               <phase>test</phase>\r
179               <goals>\r
180                 <goal>report</goal>\r
181               </goals>\r
182               <configuration>\r
183                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
184                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
185               </configuration>\r
186             </execution>\r
187             <execution>\r
188               <id>pre-integration-test</id>\r
189               <phase>pre-integration-test</phase>\r
190               <goals>\r
191                 <goal>prepare-agent</goal>\r
192               </goals>\r
193               <configuration>\r
194                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
195 \r
196                 <propertyName>failsafeArgLine</propertyName>\r
197               </configuration>\r
198             </execution>\r
199 \r
200        \r
201             <execution>\r
202               <id>post-integration-test</id>\r
203               <phase>post-integration-test</phase>\r
204               <goals>\r
205                 <goal>report</goal>\r
206               </goals>\r
207               <configuration>\r
208                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
209                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
210               </configuration>\r
211             </execution>\r
212           </executions>\r
213         </plugin>       \r
214 \r
215                         \r
216                 </plugins>\r
217         </build>\r
218         <distributionManagement>\r
219                 <repository>\r
220                         <id>ecomp-releases</id>\r
221                         <name>AAF Release Repository</name>\r
222                         <url>${nexusproxy}${releaseNexusPath}</url>\r
223                 </repository>\r
224                 <snapshotRepository>\r
225                         <id>ecomp-snapshots</id>\r
226                         <name>AAF Snapshot Repository</name>\r
227                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
228                 </snapshotRepository>\r
229                 <site>\r
230                         <id>ecomp-site</id>\r
231                         <url>dav:${nexusproxy}${sitePath}</url>\r
232                 </site>\r
233         </distributionManagement>\r
234 \r
235 </project>\r