Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-defOrg / 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-defOrg</artifactId>\r
35   <name>Default Organization</name>\r
36   <description>Example Organization Module</description>\r
37   <packaging>jar</packaging>\r
38         <url>https://github.com/att/AAF</url>\r
39         <licenses>\r
40                 <license>\r
41                 <name>BSD License</name>\r
42                 <url> </url>\r
43                 </license>\r
44         </licenses>\r
45         <developers>\r
46                 <developer>\r
47                 <name>Jonathan Gathman</name>\r
48                 <email></email>\r
49         <organization>ATT</organization>\r
50         <organizationUrl></organizationUrl>\r
51                 </developer>\r
52         </developers>\r
53 \r
54   <properties>\r
55     <maven.test.failure.ignore>false</maven.test.failure.ignore>\r
56     <project.swmVersion>0</project.swmVersion>\r
57         <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
58         <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>\r
59         <!--  SONAR  -->\r
60                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
61                  <sonar.skip>true</sonar.skip>\r
62             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
63             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
64             <!-- Default Sonar configuration -->\r
65             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
66             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
67             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
68             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
69         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
70                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
71                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
72                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
73                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
74 </properties>\r
75 \r
76   \r
77   <dependencies>\r
78     <dependency>\r
79       <groupId>org.onap.aaf.cadi</groupId>\r
80       <artifactId>cadi-core</artifactId>\r
81           <version>${project.cadiVersion}</version>\r
82     </dependency>\r
83     \r
84     <dependency>\r
85       <groupId>org.onap.aaf.authz</groupId>\r
86       <artifactId>authz-core</artifactId>\r
87           <version>${project.version}</version>\r
88     </dependency>\r
89     \r
90     <dependency>\r
91                 <groupId>javax.mail</groupId>\r
92                 <artifactId>mail</artifactId>\r
93         </dependency> \r
94   </dependencies>\r
95 \r
96         <build>\r
97                 <pluginManagement>\r
98                 <plugins>\r
99                 <plugin>\r
100                         <groupId>org.apache.maven.plugins</groupId>\r
101                         <artifactId>maven-javadoc-plugin</artifactId>\r
102                         <version>2.10.4</version>\r
103                         <configuration>\r
104                         <failOnError>false</failOnError>\r
105                         </configuration>\r
106                         <executions>\r
107                                 <execution>\r
108                                         <id>attach-javadocs</id>\r
109                                         <goals>\r
110                                                 <goal>jar</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>${jacoco.version}</version>\r
130           <configuration>\r
131             <excludes>\r
132               <exclude>**/gen/**</exclude>\r
133               <exclude>**/generated-sources/**</exclude>\r
134               <exclude>**/yang-gen/**</exclude>\r
135               <exclude>**/pax/**</exclude>\r
136             </excludes>\r
137           </configuration>\r
138           <executions>\r
139 \r
140             <execution>\r
141               <id>pre-unit-test</id>\r
142               <goals>\r
143                 <goal>prepare-agent</goal>\r
144               </goals>\r
145               <configuration>\r
146                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
147                 <propertyName>surefireArgLine</propertyName>\r
148               </configuration>\r
149             </execution>\r
150             \r
151        \r
152             <execution>\r
153               <id>post-unit-test</id>\r
154               <phase>test</phase>\r
155               <goals>\r
156                 <goal>report</goal>\r
157               </goals>\r
158               <configuration>\r
159                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
160                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
161               </configuration>\r
162             </execution>\r
163             <execution>\r
164               <id>pre-integration-test</id>\r
165               <phase>pre-integration-test</phase>\r
166               <goals>\r
167                 <goal>prepare-agent</goal>\r
168               </goals>\r
169               <configuration>\r
170                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
171 \r
172                 <propertyName>failsafeArgLine</propertyName>\r
173               </configuration>\r
174             </execution>\r
175 \r
176        \r
177             <execution>\r
178               <id>post-integration-test</id>\r
179               <phase>post-integration-test</phase>\r
180               <goals>\r
181                 <goal>report</goal>\r
182               </goals>\r
183               <configuration>\r
184                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
185                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
186               </configuration>\r
187             </execution>\r
188           </executions>\r
189         </plugin>       \r
190 \r
191                 </plugins>\r
192                 </pluginManagement>\r
193         </build>\r
194         <distributionManagement>\r
195                 <repository>\r
196                         <id>ecomp-releases</id>\r
197                         <name>AAF Release Repository</name>\r
198                         <url>${nexusproxy}${releaseNexusPath}</url>\r
199                 </repository>\r
200                 <snapshotRepository>\r
201                         <id>ecomp-snapshots</id>\r
202                         <name>AAF Snapshot Repository</name>\r
203                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
204                 </snapshotRepository>\r
205                 <site>\r
206                         <id>ecomp-site</id>\r
207                         <url>dav:${nexusproxy}${sitePath}</url>\r
208                 </site>\r
209         </distributionManagement>\r
210 \r
211         \r
212 </project>\r