Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-cmd / 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-cmd</artifactId>\r
35   <name>Authz Command</name>\r
36   <description>Command Line Processor for Authz</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>21</project.swmVersion>\r
57         <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
58                 <!--  SONAR  -->\r
59                  <jacoco.version>0.7.7.201606060606</jacoco.version>\r
60             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>\r
61             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>\r
62             <!-- Default Sonar configuration -->\r
63             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>\r
64             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>\r
65             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->\r
66             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>\r
67         <nexusproxy>https://nexus.onap.org</nexusproxy>\r
68                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>\r
69                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
70                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
71                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
72   </properties>\r
73   \r
74   <dependencies>\r
75     <dependency>\r
76       <groupId>org.onap.aaf.cadi</groupId>\r
77       <artifactId>cadi-aaf</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>jline</groupId> \r
89       <artifactId>jline</artifactId> \r
90       <version>2.14.2</version> \r
91     </dependency>\r
92 \r
93         <dependency>\r
94                 <groupId>org.slf4j</groupId>\r
95                 <artifactId>slf4j-log4j12</artifactId>\r
96         </dependency>\r
97 \r
98   </dependencies>\r
99 \r
100         <build>\r
101                 <plugins>\r
102                         <plugin>\r
103                                 <artifactId>maven-assembly-plugin</artifactId>\r
104                                 <version>2.4</version>\r
105                                 <configuration>\r
106                                         <classifier>tests</classifier>\r
107                                         <archive>\r
108                                                 <manifestEntries>\r
109                                                         <Sealed>true</Sealed>\r
110                                                 </manifestEntries>\r
111                                         </archive>\r
112                                 </configuration>\r
113                                 <executions>\r
114                                         <execution>\r
115                                                 <id>full</id>\r
116                                                 <phase>package</phase>\r
117                                                 <goals>\r
118                                                         <goal>single</goal>\r
119                                                 </goals>\r
120                                                 <configuration>\r
121                                                         <descriptors>\r
122                                                                 <descriptor>src/main/assemble/authz-cmd.xml</descriptor>\r
123                                                         </descriptors>\r
124                                                 </configuration>\r
125                                         </execution>\r
126                                 </executions>\r
127                         </plugin>\r
128                 \r
129                 <plugin>\r
130                         <groupId>org.apache.maven.plugins</groupId>\r
131                         <artifactId>maven-javadoc-plugin</artifactId>\r
132                         <version>2.10.4</version>\r
133                         <configuration>\r
134                         <failOnError>false</failOnError>\r
135                         </configuration>\r
136                         <executions>\r
137                                 <execution>\r
138                                         <id>attach-javadocs</id>\r
139                                         <goals>\r
140                                                 <goal>jar</goal>\r
141                                         </goals>\r
142                                 </execution>\r
143                         </executions>\r
144                 </plugin>  \r
145            \r
146            \r
147                <plugin>\r
148                       <groupId>org.apache.maven.plugins</groupId>\r
149                       <artifactId>maven-source-plugin</artifactId>\r
150                       <version>2.2.1</version>\r
151                       <executions>\r
152                         <execution>\r
153                           <id>attach-sources</id>\r
154                           <goals>\r
155                             <goal>jar-no-fork</goal>\r
156                           </goals>\r
157                         </execution>\r
158                       </executions>\r
159                     </plugin>\r
160                  <plugin>\r
161                                 <groupId>org.sonatype.plugins</groupId>\r
162                                 <artifactId>nexus-staging-maven-plugin</artifactId>\r
163                                 <version>1.6.7</version>\r
164                                 <extensions>true</extensions>\r
165                                 <configuration>\r
166                                         <nexusUrl>${nexusproxy}</nexusUrl>\r
167                                         <stagingProfileId>176c31dfe190a</stagingProfileId>\r
168                                         <serverId>ecomp-staging</serverId>\r
169                                 </configuration>\r
170                         </plugin>               \r
171                         <plugin>\r
172           <groupId>org.jacoco</groupId>\r
173           <artifactId>jacoco-maven-plugin</artifactId>\r
174           <version>${jacoco.version}</version>\r
175           <configuration>\r
176             <excludes>\r
177               <exclude>**/gen/**</exclude>\r
178               <exclude>**/generated-sources/**</exclude>\r
179               <exclude>**/yang-gen/**</exclude>\r
180               <exclude>**/pax/**</exclude>\r
181             </excludes>\r
182           </configuration>\r
183           <executions>\r
184 \r
185             <execution>\r
186               <id>pre-unit-test</id>\r
187               <goals>\r
188                 <goal>prepare-agent</goal>\r
189               </goals>\r
190               <configuration>\r
191                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>\r
192                 <propertyName>surefireArgLine</propertyName>\r
193               </configuration>\r
194             </execution>\r
195             \r
196        \r
197             <execution>\r
198               <id>post-unit-test</id>\r
199               <phase>test</phase>\r
200               <goals>\r
201                 <goal>report</goal>\r
202               </goals>\r
203               <configuration>\r
204                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>\r
205                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>\r
206               </configuration>\r
207             </execution>\r
208             <execution>\r
209               <id>pre-integration-test</id>\r
210               <phase>pre-integration-test</phase>\r
211               <goals>\r
212                 <goal>prepare-agent</goal>\r
213               </goals>\r
214               <configuration>\r
215                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>\r
216 \r
217                 <propertyName>failsafeArgLine</propertyName>\r
218               </configuration>\r
219             </execution>\r
220 \r
221        \r
222             <execution>\r
223               <id>post-integration-test</id>\r
224               <phase>post-integration-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-it.exec</dataFile>\r
230                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>\r
231               </configuration>\r
232             </execution>\r
233           </executions>\r
234         </plugin>       \r
235 \r
236                 \r
237                         </plugins>\r
238                 <pluginManagement>\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