Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-gw / 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-gw</artifactId>\r
35         <name>Authz Gate/Wall</name>\r
36         <description>GW 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         <properties>\r
54                 <maven.test.failure.ignore>true</maven.test.failure.ignore>\r
55                 <project.swmVersion>30</project.swmVersion>\r
56                         <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>\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          \r
78             <exclusions>\r
79                           <exclusion> \r
80                                         <groupId>javax.servlet</groupId>\r
81                         <artifactId>servlet-api</artifactId>\r
82                                            </exclusion>\r
83                     </exclusions> \r
84         </dependency>\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 \r
93                 \r
94         </dependencies>\r
95         \r
96         <build>\r
97                 <plugins>\r
98                         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->\r
99                                 <plugin>\r
100                                         <groupId>org.codehaus.mojo</groupId>\r
101                                         <artifactId>jaxb2-maven-plugin</artifactId>\r
102                                 </plugin>\r
103                     <plugin>\r
104                                 <groupId>org.apache.maven.plugins</groupId>\r
105                                 <artifactId>maven-jar-plugin</artifactId>\r
106                                         <configuration>\r
107                                 <includes>\r
108                                         <include>**/*.class</include>\r
109                                 </includes>\r
110                                         </configuration>\r
111                                         <version>2.3.1</version>\r
112                                 </plugin>\r
113 \r
114            <plugin>\r
115                         <groupId>org.apache.maven.plugins</groupId>\r
116                         <artifactId>maven-javadoc-plugin</artifactId>\r
117                         <version>2.10.4</version>\r
118                         <configuration>\r
119                         <failOnError>false</failOnError>\r
120                         </configuration>\r
121                         <executions>\r
122                                 <execution>\r
123                                         <id>attach-javadocs</id>\r
124                                         <goals>\r
125                                                 <goal>jar</goal>\r
126                                         </goals>\r
127                                 </execution>\r
128                         </executions>\r
129                 </plugin> \r
130                <plugin>\r
131                       <groupId>org.apache.maven.plugins</groupId>\r
132                       <artifactId>maven-source-plugin</artifactId>\r
133                       <version>2.2.1</version>\r
134                       <executions>\r
135                         <execution>\r
136                           <id>attach-sources</id>\r
137                           <goals>\r
138                             <goal>jar-no-fork</goal>\r
139                           </goals>\r
140                         </execution>\r
141                       </executions>\r
142                     </plugin>\r
143 \r
144 <plugin>\r
145                                 <groupId>org.sonatype.plugins</groupId>\r
146                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
147                                 <version>1.6.7</version>\r
148                                 <extensions>true</extensions>\r
149                                 <configuration>\r
150                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
151                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
152                                         <serverId>ecomp-staging</serverId>\r
153                                 </configuration>\r
154                         </plugin>               \r
155                         <plugin>\r
156           <groupId>org.jacoco</groupId>\r
157           <artifactId>jacoco-maven-plugin</artifactId>\r
158           <version>${jacoco.version}</version>\r
159           <configuration>\r
160             <!-- Note: This exclusion list should match <sonar.exclusions>\r
161          property above -->\r
162             <excludes>\r
163               <exclude>**/gen/**</exclude>\r
164               <exclude>**/generated-sources/**</exclude>\r
165               <exclude>**/yang-gen/**</exclude>\r
166               <exclude>**/pax/**</exclude>\r
167             </excludes>\r
168           </configuration>\r
169           <executions>\r
170             <!--\r
171         Prepares the property pointing to the JaCoCo runtime agent which\r
172         is passed as VM argument when Maven the Surefire plugin is executed.\r
173         -->\r
174             <execution>\r
175               <id>pre-unit-test</id>\r
176               <goals>\r
177                 <goal>prepare-agent</goal>\r
178               </goals>\r
179               <configuration>\r
180                 <!-- Sets the path to the file which contains the execution data. -->\r
181                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
182                 <!--\r
183             Sets the name of the property containing the settings\r
184             for JaCoCo runtime agent.\r
185         -->\r
186                 <propertyName>surefireArgLine</propertyName>\r
187               </configuration>\r
188             </execution>\r
189             <!--\r
190         Ensures that the code coverage report for unit tests is created after\r
191         unit tests have been run.\r
192         -->\r
193             <execution>\r
194               <id>post-unit-test</id>\r
195               <phase>test</phase>\r
196               <goals>\r
197                 <goal>report</goal>\r
198               </goals>\r
199               <configuration>\r
200                 <!-- Sets the path to the file which contains the execution data. -->\r
201                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
202                 <!-- Sets the output directory for the code coverage report. -->\r
203                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
204               </configuration>\r
205             </execution>\r
206             <execution>\r
207               <id>pre-integration-test</id>\r
208               <phase>pre-integration-test</phase>\r
209               <goals>\r
210                 <goal>prepare-agent</goal>\r
211               </goals>\r
212               <configuration>\r
213                 <!-- Sets the path to the file which contains the execution data. -->\r
214                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
215                 <!--\r
216             Sets the name of the property containing the settings\r
217             for JaCoCo runtime agent.\r
218         -->\r
219                 <propertyName>failsafeArgLine</propertyName>\r
220               </configuration>\r
221             </execution>\r
222             <!--\r
223         Ensures that the code coverage report for integration tests after\r
224         integration tests have been run.\r
225         -->\r
226             <execution>\r
227               <id>post-integration-test</id>\r
228               <phase>post-integration-test</phase>\r
229               <goals>\r
230                 <goal>report</goal>\r
231               </goals>\r
232               <configuration>\r
233                 <!-- Sets the path to the file which contains the execution data. -->\r
234                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>\r
235                 <!-- Sets the output directory for the code coverage report. -->\r
236                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
237               </configuration>\r
238             </execution>\r
239           </executions>\r
240         </plugin>                    \r
241 \r
242                 \r
243                         </plugins>\r
244         </build>\r
245 <distributionManagement>\r
246                 <repository>\r
247                         <id>ecomp-releases</id>\r
248                         <name>AAF Release Repository</name>\r
249                         <url>${nexusproxy}${releaseNexusPath}</url>\r
250                 </repository>\r
251                 <snapshotRepository>\r
252                         <id>ecomp-snapshots</id>\r
253                         <name>AAF Snapshot Repository</name>\r
254                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
255                 </snapshotRepository>\r
256                 <site>\r
257                         <id>ecomp-site</id>\r
258                         <url>dav:${nexusproxy}${sitePath}</url>\r
259                 </site>\r
260         </distributionManagement>\r
261 \r
262 </project>\r