Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-certman / 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/maven-v4_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-certman</artifactId>\r
35         <name>AAF Certification Managmenent</name>\r
36         <description>Certificate Manager API</description>\r
37                 <url>https://github.com/att/AAF</url>\r
38         <licenses>\r
39                 <license>\r
40                 <name>BSD License</name>\r
41                 <url> </url>\r
42                 </license>\r
43         </licenses>\r
44         <developers>\r
45                 <developer>\r
46                 <name>Jonathan Gathman</name>\r
47                 <email></email>\r
48         <organization>ATT</organization>\r
49         <organizationUrl></organizationUrl>\r
50                 </developer>\r
51         </developers>\r
52 \r
53 \r
54         <properties>\r
55                 <project.swmVersion>45</project.swmVersion>\r
56                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
57                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
58                 <sonar.language>java</sonar.language>\r
59                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
60                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
61                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
62                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
63                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>\r
64                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
65         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
66                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
67                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
68                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
69                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
70         </properties>\r
71                 \r
72         <dependencies>\r
73         <dependency>\r
74             <groupId>org.onap.aaf.authz</groupId>\r
75             <artifactId>authz-core</artifactId>\r
76                         <version>${project.version}</version>\r
77         </dependency>\r
78 \r
79         <dependency>\r
80             <groupId>org.onap.aaf.authz</groupId>\r
81             <artifactId>authz-cass</artifactId>\r
82                         <version>${project.version}</version>\r
83         </dependency>\r
84 \r
85             \r
86                 <dependency> \r
87                         <groupId>org.onap.aaf.cadi</groupId>\r
88                         <artifactId>cadi-aaf</artifactId>\r
89                         <version>${project.cadiVersion}</version>\r
90                 </dependency>\r
91                 \r
92                 <dependency>\r
93                         <groupId>com.google.code.jscep</groupId>\r
94                         <artifactId>jscep</artifactId>\r
95                         <version>2.4.0</version>\r
96                 </dependency>\r
97                 <!--  TESTING -->\r
98                 <dependency>\r
99                         <groupId>org.slf4j</groupId>\r
100                         <artifactId>slf4j-log4j12</artifactId>\r
101                 </dependency>\r
102         </dependencies>\r
103         \r
104         <build>\r
105                 <plugins>\r
106             <plugin>\r
107                                 <groupId>org.apache.maven.plugins</groupId>\r
108                                 <artifactId>maven-jar-plugin</artifactId>\r
109                                         <configuration>\r
110                                 <includes>\r
111                                         <include>**/*.class</include>\r
112                                 </includes>\r
113                                         </configuration>\r
114                                         <version>2.3.1</version>\r
115                                 </plugin>\r
116                             \r
117                                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->\r
118                         \r
119                          \r
120                 <plugin>\r
121                         <groupId>org.apache.maven.plugins</groupId>\r
122                         <artifactId>maven-javadoc-plugin</artifactId>\r
123                         <version>2.10.4</version>\r
124                         <configuration>\r
125                         <failOnError>false</failOnError>\r
126                         </configuration>\r
127                         <executions>\r
128                                 <execution>\r
129                                         <id>attach-javadocs</id>\r
130                                         <goals>\r
131                                                 <goal>jar</goal>\r
132                                         </goals>\r
133                                 </execution>\r
134                         </executions>\r
135                 </plugin>  \r
136            \r
137            \r
138                <plugin>\r
139                       <groupId>org.apache.maven.plugins</groupId>\r
140                       <artifactId>maven-source-plugin</artifactId>\r
141                       <version>2.2.1</version>\r
142                       <executions>\r
143                         <execution>\r
144                           <id>attach-sources</id>\r
145                           <goals>\r
146                             <goal>jar-no-fork</goal>\r
147                           </goals>\r
148                         </execution>\r
149                       </executions>\r
150                     </plugin> \r
151                         <plugin>\r
152                                 <groupId>org.sonatype.plugins</groupId>\r
153                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
154                                 <version>1.6.7</version>\r
155                                 <extensions>true</extensions>\r
156                                 <configuration>\r
157                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
158                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
159                                         <serverId>ecomp-staging</serverId>\r
160                                 </configuration>\r
161                         </plugin>               \r
162                         <plugin>\r
163           <groupId>org.jacoco</groupId>\r
164           <artifactId>jacoco-maven-plugin</artifactId>\r
165           <version>${jacoco.version}</version>\r
166           <configuration>\r
167             <!-- Note: This exclusion list should match <sonar.exclusions>\r
168          property above -->\r
169             <excludes>\r
170               <exclude>**/gen/**</exclude>\r
171               <exclude>**/generated-sources/**</exclude>\r
172               <exclude>**/yang-gen/**</exclude>\r
173               <exclude>**/pax/**</exclude>\r
174             </excludes>\r
175           </configuration>\r
176           <executions>\r
177             <!--\r
178         Prepares the property pointing to the JaCoCo runtime agent which\r
179         is passed as VM argument when Maven the Surefire plugin is executed.\r
180         -->\r
181             <execution>\r
182               <id>pre-unit-test</id>\r
183               <goals>\r
184                 <goal>prepare-agent</goal>\r
185               </goals>\r
186               <configuration>\r
187                 <!-- Sets the path to the file which contains the execution data. -->\r
188                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
189                 <!--\r
190             Sets the name of the property containing the settings\r
191             for JaCoCo runtime agent.\r
192         -->\r
193                 <propertyName>surefireArgLine</propertyName>\r
194               </configuration>\r
195             </execution>\r
196             <!--\r
197         Ensures that the code coverage report for unit tests is created after\r
198         unit tests have been run.\r
199         -->\r
200             <execution>\r
201               <id>post-unit-test</id>\r
202               <phase>test</phase>\r
203               <goals>\r
204                 <goal>report</goal>\r
205               </goals>\r
206               <configuration>\r
207                 <!-- Sets the path to the file which contains the execution data. -->\r
208                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
209                 <!-- Sets the output directory for the code coverage report. -->\r
210                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
211               </configuration>\r
212             </execution>\r
213             <execution>\r
214               <id>pre-integration-test</id>\r
215               <phase>pre-integration-test</phase>\r
216               <goals>\r
217                 <goal>prepare-agent</goal>\r
218               </goals>\r
219               <configuration>\r
220                 <!-- Sets the path to the file which contains the execution data. -->\r
221                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
222                 <!--\r
223             Sets the name of the property containing the settings\r
224             for JaCoCo runtime agent.\r
225         -->\r
226                 <propertyName>failsafeArgLine</propertyName>\r
227               </configuration>\r
228             </execution>\r
229             <!--\r
230         Ensures that the code coverage report for integration tests after\r
231         integration tests have been run.\r
232         -->\r
233             <execution>\r
234               <id>post-integration-test</id>\r
235               <phase>post-integration-test</phase>\r
236               <goals>\r
237                 <goal>report</goal>\r
238               </goals>\r
239               <configuration>\r
240                 <!-- Sets the path to the file which contains the execution data. -->\r
241                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
242                 <!-- Sets the output directory for the code coverage report. -->\r
243                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
244               </configuration>\r
245             </execution>\r
246           </executions>\r
247         </plugin>                    \r
248 \r
249 \r
250                         </plugins>\r
251                 <pluginManagement>\r
252                         <plugins/>\r
253                 </pluginManagement>\r
254         </build>\r
255 <distributionManagement>\r
256                 <repository>\r
257                         <id>ecomp-releases</id>\r
258                         <name>AAF Release Repository</name>\r
259                         <url>${nexusproxy}${releaseNexusPath}</url>\r
260                 </repository>\r
261                 <snapshotRepository>\r
262                         <id>ecomp-snapshots</id>\r
263                         <name>AAF Snapshot Repository</name>\r
264                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
265                 </snapshotRepository>\r
266                 <site>\r
267                         <id>ecomp-site</id>\r
268                         <url>dav:${nexusproxy}${sitePath}</url>\r
269                 </site>\r
270         </distributionManagement>\r
271 \r
272 </project>\r