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  -->\r
59                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
60                  <sonar.skip>true</sonar.skip>\r
61             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
62             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
63             <!-- Default Sonar configuration -->\r
64             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
65             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
66             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
67             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
68         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
69                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
70                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
71                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
72                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
73         </properties>\r
74                 \r
75         <dependencies>\r
76         <dependency>\r
77             <groupId>org.onap.aaf.authz</groupId>\r
78             <artifactId>authz-core</artifactId>\r
79                         <version>${project.version}</version>\r
80         </dependency>\r
81 \r
82         <dependency>\r
83             <groupId>org.onap.aaf.authz</groupId>\r
84             <artifactId>authz-cass</artifactId>\r
85                         <version>${project.version}</version>\r
86         </dependency>\r
87 \r
88             \r
89                 <dependency> \r
90                         <groupId>org.onap.aaf.cadi</groupId>\r
91                         <artifactId>cadi-aaf</artifactId>\r
92                         <version>${project.cadiVersion}</version>\r
93                 </dependency>\r
94                 \r
95                 <dependency>\r
96                         <groupId>com.google.code.jscep</groupId>\r
97                         <artifactId>jscep</artifactId>\r
98                         <version>2.4.0</version>\r
99                 </dependency>\r
100                 <!--  TESTING -->\r
101                 <dependency>\r
102                         <groupId>org.slf4j</groupId>\r
103                         <artifactId>slf4j-log4j12</artifactId>\r
104                 </dependency>\r
105         </dependencies>\r
106         \r
107         <build>\r
108                 <plugins>\r
109             <plugin>\r
110                                 <groupId>org.apache.maven.plugins</groupId>\r
111                                 <artifactId>maven-jar-plugin</artifactId>\r
112                                         <configuration>\r
113                                 <includes>\r
114                                         <include>**/*.class</include>\r
115                                 </includes>\r
116                                         </configuration>\r
117                                         <version>2.3.1</version>\r
118                                 </plugin>\r
119                             \r
120                                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->\r
121                         \r
122                          \r
123                 <plugin>\r
124                         <groupId>org.apache.maven.plugins</groupId>\r
125                         <artifactId>maven-javadoc-plugin</artifactId>\r
126                         <version>2.10.4</version>\r
127                         <configuration>\r
128                         <failOnError>false</failOnError>\r
129                         </configuration>\r
130                         <executions>\r
131                                 <execution>\r
132                                         <id>attach-javadocs</id>\r
133                                         <goals>\r
134                                                 <goal>jar</goal>\r
135                                         </goals>\r
136                                 </execution>\r
137                         </executions>\r
138                 </plugin>  \r
139            \r
140            \r
141                <plugin>\r
142                       <groupId>org.apache.maven.plugins</groupId>\r
143                       <artifactId>maven-source-plugin</artifactId>\r
144                       <version>2.2.1</version>\r
145                       <executions>\r
146                         <execution>\r
147                           <id>attach-sources</id>\r
148                           <goals>\r
149                             <goal>jar-no-fork</goal>\r
150                           </goals>\r
151                         </execution>\r
152                       </executions>\r
153                     </plugin> \r
154                         <plugin>\r
155                                 <groupId>org.sonatype.plugins</groupId>\r
156                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
157                                 <version>1.6.7</version>\r
158                                 <extensions>true</extensions>\r
159                                 <configuration>\r
160                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
161                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
162                                         <serverId>ecomp-staging</serverId>\r
163                                 </configuration>\r
164                         </plugin>               \r
165                         <plugin>\r
166           <groupId>org.jacoco</groupId>\r
167           <artifactId>jacoco-maven-plugin</artifactId>\r
168           <version>${jacoco.version}</version>\r
169           <configuration>\r
170             <excludes>\r
171               <exclude>**/gen/**</exclude>\r
172               <exclude>**/generated-sources/**</exclude>\r
173               <exclude>**/yang-gen/**</exclude>\r
174               <exclude>**/pax/**</exclude>\r
175             </excludes>\r
176           </configuration>\r
177           <executions>\r
178 \r
179             <execution>\r
180               <id>pre-unit-test</id>\r
181               <goals>\r
182                 <goal>prepare-agent</goal>\r
183               </goals>\r
184               <configuration>\r
185                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
186                 <propertyName>surefireArgLine</propertyName>\r
187               </configuration>\r
188             </execution>\r
189             \r
190        \r
191             <execution>\r
192               <id>post-unit-test</id>\r
193               <phase>test</phase>\r
194               <goals>\r
195                 <goal>report</goal>\r
196               </goals>\r
197               <configuration>\r
198                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
199                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
200               </configuration>\r
201             </execution>\r
202             <execution>\r
203               <id>pre-integration-test</id>\r
204               <phase>pre-integration-test</phase>\r
205               <goals>\r
206                 <goal>prepare-agent</goal>\r
207               </goals>\r
208               <configuration>\r
209                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
210 \r
211                 <propertyName>failsafeArgLine</propertyName>\r
212               </configuration>\r
213             </execution>\r
214 \r
215        \r
216             <execution>\r
217               <id>post-integration-test</id>\r
218               <phase>post-integration-test</phase>\r
219               <goals>\r
220                 <goal>report</goal>\r
221               </goals>\r
222               <configuration>\r
223                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
224                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
225               </configuration>\r
226             </execution>\r
227           </executions>\r
228         </plugin>       \r
229 \r
230                         </plugins>\r
231                 <pluginManagement>\r
232                         <plugins/>\r
233                 </pluginManagement>\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