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