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.language>java</sonar.language>\r
60                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
61                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
62                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
63                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
64                 <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>\r
65                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\r
66         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
67                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
68                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
69                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
70                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
71 </properties>\r
72 \r
73   \r
74   <dependencies>\r
75     <dependency>\r
76       <groupId>org.onap.aaf.cadi</groupId>\r
77       <artifactId>cadi-core</artifactId>\r
78           <version>${project.cadiVersion}</version>\r
79     </dependency>\r
80     \r
81     <dependency>\r
82       <groupId>org.onap.aaf.authz</groupId>\r
83       <artifactId>authz-core</artifactId>\r
84           <version>${project.version}</version>\r
85     </dependency>\r
86     \r
87     <dependency>\r
88                 <groupId>javax.mail</groupId>\r
89                 <artifactId>mail</artifactId>\r
90         </dependency> \r
91   </dependencies>\r
92 \r
93         <build>\r
94                 <pluginManagement>\r
95                 <plugins>\r
96                 <plugin>\r
97                         <groupId>org.apache.maven.plugins</groupId>\r
98                         <artifactId>maven-javadoc-plugin</artifactId>\r
99                         <version>2.10.4</version>\r
100                         <configuration>\r
101                         <failOnError>false</failOnError>\r
102                         </configuration>\r
103                         <executions>\r
104                                 <execution>\r
105                                         <id>attach-javadocs</id>\r
106                                         <goals>\r
107                                                 <goal>jar</goal>\r
108                                         </goals>\r
109                                 </execution>\r
110                         </executions>\r
111                 </plugin> \r
112                  <plugin>\r
113                                 <groupId>org.sonatype.plugins</groupId>\r
114                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
115                                 <version>1.6.7</version>\r
116                                 <extensions>true</extensions>\r
117                                 <configuration>\r
118                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
119                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
120                                         <serverId>ecomp-staging</serverId>\r
121                                 </configuration>\r
122                         </plugin>               \r
123                         <plugin>\r
124           <groupId>org.jacoco</groupId>\r
125           <artifactId>jacoco-maven-plugin</artifactId>\r
126           <version>${jacoco.version}</version>\r
127           <configuration>\r
128             <!-- Note: This exclusion list should match <sonar.exclusions>\r
129          property above -->\r
130             <excludes>\r
131               <exclude>**/gen/**</exclude>\r
132               <exclude>**/generated-sources/**</exclude>\r
133               <exclude>**/yang-gen/**</exclude>\r
134               <exclude>**/pax/**</exclude>\r
135             </excludes>\r
136           </configuration>\r
137           <executions>\r
138             <!--\r
139         Prepares the property pointing to the JaCoCo runtime agent which\r
140         is passed as VM argument when Maven the Surefire plugin is executed.\r
141         -->\r
142             <execution>\r
143               <id>pre-unit-test</id>\r
144               <goals>\r
145                 <goal>prepare-agent</goal>\r
146               </goals>\r
147               <configuration>\r
148                 <!-- Sets the path to the file which contains the execution data. -->\r
149                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
150                 <!--\r
151             Sets the name of the property containing the settings\r
152             for JaCoCo runtime agent.\r
153         -->\r
154                 <propertyName>surefireArgLine</propertyName>\r
155               </configuration>\r
156             </execution>\r
157             <!--\r
158         Ensures that the code coverage report for unit tests is created after\r
159         unit tests have been run.\r
160         -->\r
161             <execution>\r
162               <id>post-unit-test</id>\r
163               <phase>test</phase>\r
164               <goals>\r
165                 <goal>report</goal>\r
166               </goals>\r
167               <configuration>\r
168                 <!-- Sets the path to the file which contains the execution data. -->\r
169                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
170                 <!-- Sets the output directory for the code coverage report. -->\r
171                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
172               </configuration>\r
173             </execution>\r
174             <execution>\r
175               <id>pre-integration-test</id>\r
176               <phase>pre-integration-test</phase>\r
177               <goals>\r
178                 <goal>prepare-agent</goal>\r
179               </goals>\r
180               <configuration>\r
181                 <!-- Sets the path to the file which contains the execution data. -->\r
182                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
183                 <!--\r
184             Sets the name of the property containing the settings\r
185             for JaCoCo runtime agent.\r
186         -->\r
187                 <propertyName>failsafeArgLine</propertyName>\r
188               </configuration>\r
189             </execution>\r
190             <!--\r
191         Ensures that the code coverage report for integration tests after\r
192         integration tests have been run.\r
193         -->\r
194             <execution>\r
195               <id>post-integration-test</id>\r
196               <phase>post-integration-test</phase>\r
197               <goals>\r
198                 <goal>report</goal>\r
199               </goals>\r
200               <configuration>\r
201                 <!-- Sets the path to the file which contains the execution data. -->\r
202                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
203                 <!-- Sets the output directory for the code coverage report. -->\r
204                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
205               </configuration>\r
206             </execution>\r
207           </executions>\r
208         </plugin>                    \r
209 \r
210                 </plugins>\r
211                 </pluginManagement>\r
212         </build>\r
213         <distributionManagement>\r
214                 <repository>\r
215                         <id>ecomp-releases</id>\r
216                         <name>AAF Release Repository</name>\r
217                         <url>${nexusproxy}${releaseNexusPath}</url>\r
218                 </repository>\r
219                 <snapshotRepository>\r
220                         <id>ecomp-snapshots</id>\r
221                         <name>AAF Snapshot Repository</name>\r
222                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
223                 </snapshotRepository>\r
224                 <site>\r
225                         <id>ecomp-site</id>\r
226                         <url>dav:${nexusproxy}${sitePath}</url>\r
227                 </site>\r
228         </distributionManagement>\r
229 \r
230         \r
231 </project>\r