Improve code coverage for aaf authz modules.
[aaf/authz.git] / authz-test / 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-test</artifactId>\r
35         <name>Authz TestCases</name>\r
36         <description>TestCase Suite for Authz/Authn</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 \r
55         <properties>\r
56                 <maven.test.failure.ignore>false</maven.test.failure.ignore>\r
57                 <project.swmVersion>0</project.swmVersion>\r
58                                         <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>\r
59                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
60                                         <sonar.language>java</sonar.language>\r
61                                         <sonar.skip>true</sonar.skip>\r
62                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
63                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>\r
64                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>\r
65                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>\r
66                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>\r
67                 <sonar.projectVersion>${project.version}</sonar.projectVersion>\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 \r
74         </properties>\r
75         \r
76         <dependencies>\r
77                 <dependency>\r
78                         <groupId>org.onap.aaf.cadi</groupId>\r
79                         <artifactId>cadi-aaf</artifactId>\r
80                         <version>${project.cadiVersion}</version>\r
81                 </dependency>\r
82        \r
83             <dependency>\r
84             <groupId>org.onap.aaf.authz</groupId>\r
85             <artifactId>authz-client</artifactId>\r
86                         <version>${project.version}</version>\r
87         </dependency>\r
88 \r
89             <dependency>\r
90             <groupId>org.onap.aaf.authz</groupId>\r
91             <artifactId>authz-core</artifactId>\r
92                         <version>${project.version}</version>\r
93         </dependency>\r
94 \r
95             <dependency>\r
96             <groupId>org.onap.aaf.authz</groupId>\r
97             <artifactId>authz-cmd</artifactId>\r
98                         <version>${project.version}</version>\r
99         </dependency>\r
100 \r
101                 <dependency>\r
102                         <groupId>com.att.aft</groupId>\r
103                         <artifactId>dme2</artifactId>\r
104                 </dependency>\r
105 \r
106 \r
107                 <dependency>\r
108                         <groupId>org.apache.jmeter</groupId>\r
109                         <artifactId>ApacheJMeter_java</artifactId>\r
110                         <version>2.11</version>\r
111                 </dependency>\r
112                 \r
113                 <dependency>\r
114                         <groupId>junit</groupId>\r
115                         <artifactId>junit</artifactId>\r
116                         <version>4.7</version>\r
117                         <scope>test</scope>\r
118                 </dependency>\r
119         </dependencies>\r
120 \r
121         <build>\r
122                 <pluginManagement>\r
123                   <plugins>\r
124                         <plugin>\r
125                   <groupId>org.apache.maven.plugins</groupId>\r
126                   <artifactId>maven-failsafe-plugin</artifactId>\r
127                   <configuration>\r
128                                 <includes>\r
129                       <include>**/AAFJUnitTest.java</include>\r
130                                 </includes>\r
131                           </configuration>\r
132                         </plugin>\r
133         \r
134                         <plugin>\r
135                   <groupId>org.apache.maven.plugins</groupId>\r
136                   <artifactId>maven-surefire-plugin</artifactId>\r
137                   <configuration>\r
138                                 <excludes>\r
139                       <exclude>**/AAFJUnitTest.java</exclude>\r
140                                 </excludes>\r
141                   </configuration>\r
142                         </plugin>\r
143                         \r
144                 <plugin>\r
145                         <groupId>org.apache.maven.plugins</groupId>\r
146                         <artifactId>maven-javadoc-plugin</artifactId>\r
147                         <version>2.10.4</version>\r
148                         <configuration>\r
149                         <failOnError>false</failOnError>\r
150                         </configuration>\r
151                         <executions>\r
152                                 <execution>\r
153                                         <id>attach-javadocs</id>\r
154                                         <goals>\r
155                                                 <goal>jar</goal>\r
156                                         </goals>\r
157                                 </execution>\r
158                         </executions>\r
159                 </plugin> \r
160            \r
161            \r
162                <plugin>\r
163                       <groupId>org.apache.maven.plugins</groupId>\r
164                       <artifactId>maven-source-plugin</artifactId>\r
165                       <version>2.2.1</version>\r
166                       <executions>\r
167                         <execution>\r
168                           <id>attach-sources</id>\r
169                           <goals>\r
170                             <goal>jar-no-fork</goal>\r
171                           </goals>\r
172                         </execution>\r
173                       </executions>\r
174                     </plugin>\r
175 <plugin>\r
176                                 <groupId>org.sonatype.plugins</groupId>\r
177                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
178                                 <version>1.6.7</version>\r
179                                 <extensions>true</extensions>\r
180                                 <configuration>\r
181                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
182                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
183                                         <serverId>ecomp-staging</serverId>\r
184                                 </configuration>\r
185                         </plugin>               \r
186                         <plugin>\r
187                                 <groupId>org.jacoco</groupId>\r
188                                 <artifactId>jacoco-maven-plugin</artifactId>\r
189                                 <version>0.7.7.201606060606</version>\r
190                                 <configuration>\r
191                                         <dumpOnExit>true</dumpOnExit>\r
192                                         <includes>\r
193                                                 <include>org.onap.aaf.*</include>\r
194                                         </includes>\r
195                                 </configuration>\r
196                                 <executions>\r
197                                         <execution>\r
198                                                 <id>pre-unit-test</id>\r
199                                                 <goals>\r
200                                                         <goal>prepare-agent</goal>\r
201                                                 </goals>\r
202                                                 <configuration>\r
203                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>\r
204                                                         <!-- <append>true</append> -->\r
205                                                 </configuration>\r
206                                         </execution>\r
207                                         <execution>\r
208                                                 <id>pre-integration-test</id>\r
209                                                 <phase>pre-integration-test</phase>\r
210                                                 <goals>\r
211                                                         <goal>prepare-agent</goal>\r
212                                                 </goals>\r
213                                                 <configuration>\r
214                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>\r
215                                                         <!-- <append>true</append> -->\r
216                                                 </configuration>\r
217                                         </execution>\r
218                                         <execution>\r
219                         <goals>\r
220                             <goal>merge</goal>\r
221                         </goals>\r
222                         <phase>post-integration-test</phase>\r
223                         <configuration>\r
224                             <fileSets>\r
225                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">\r
226                                     <directory>${project.build.directory}/coverage-reports</directory>\r
227                                     <includes>\r
228                                         <include>*.exec</include>\r
229                                     </includes>\r
230                                 </fileSet>\r
231                             </fileSets>\r
232                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>\r
233                         </configuration>\r
234                     </execution>\r
235                                 </executions>\r
236                         </plugin> \r
237 \r
238                 \r
239                         </plugins>\r
240                 </pluginManagement>\r
241         </build>\r
242         <distributionManagement>\r
243                 <repository>\r
244                         <id>ecomp-releases</id>\r
245                         <name>AAF Release Repository</name>\r
246                         <url>${nexusproxy}${releaseNexusPath}</url>\r
247                 </repository>\r
248                 <snapshotRepository>\r
249                         <id>ecomp-snapshots</id>\r
250                         <name>AAF Snapshot Repository</name>\r
251                         <url>${nexusproxy}${snapshotNexusPath}</url>\r
252                 </snapshotRepository>\r
253                 <site>\r
254                         <id>ecomp-site</id>\r
255                         <url>dav:${nexusproxy}${sitePath}</url>\r
256                 </site>\r
257         </distributionManagement>\r
258 \r
259 </project>\r