Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-batch / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
4  -->
5
6 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
8         <modelVersion>4.0.0</modelVersion>
9         <parent>
10                 <groupId>com.att.authz</groupId>
11                 <artifactId>parent</artifactId>
12                 <version>1.0.1-SNAPSHOT</version>
13                 <relativePath>../pom.xml</relativePath>
14         </parent>
15                 
16         <artifactId>authz-batch</artifactId>
17         <name>Authz Batch</name>
18         <description>Batch Processing for Authz</description>
19         <packaging>jar</packaging>
20                 <url>https://github.com/att/AAF</url>
21         <licenses>
22                 <license>
23                 <name>BSD License</name>
24                 <url> </url>
25                 </license>
26         </licenses>
27         <developers>
28                 <developer>
29                 <name>Jonathan Gathman</name>
30                 <email></email>
31         <organization>ATT</organization>
32         <organizationUrl></organizationUrl>
33                 </developer>
34         </developers>
35
36         <properties>
37                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
38                 <project.swmVersion>1</project.swmVersion>
39                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
40                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
41                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
42                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43                 <skipTests>false</skipTests>
44                 <project.dme2Version>3.1.200</project.dme2Version>
45                 
46                 <!--  SONAR  -->
47                  <jacoco.version>0.7.7.201606060606</jacoco.version>
48                  <sonar.skip>true</sonar.skip>
49             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
50             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
51             <!-- Default Sonar configuration -->
52             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
55             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
56                 <nexusproxy>https://nexus.onap.org</nexusproxy>
57                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
58                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
59                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
60                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
61         </properties>
62         
63         <dependencies>
64
65                 <dependency>
66                         <groupId>org.onap.aaf.inno</groupId>
67                         <artifactId>env</artifactId>
68                         <version>${project.innoVersion}</version>
69                 </dependency>
70
71                 <dependency>
72                         <groupId>org.onap.aaf.inno</groupId>
73                         <artifactId>rosetta</artifactId>
74                         <version>${project.innoVersion}</version>
75                 </dependency>
76                 
77                 <dependency>
78                 <groupId>org.onap.aaf.cadi</groupId>
79                 <artifactId>cadi-core</artifactId>
80                         <version>${project.cadiVersion}</version>
81             </dependency>
82
83                 <dependency>
84                 <groupId>org.onap.aaf.cadi</groupId>
85                 <artifactId>cadi-aaf</artifactId>
86                         <version>${project.cadiVersion}</version>
87             </dependency>
88
89                 
90                 <dependency>
91                         <groupId>prg.onap.aaf.authz</groupId>
92                         <artifactId>authz-cass</artifactId>
93                         <version>${project.version}</version>
94                         <exclusions>
95                                 <exclusion> 
96                                         <groupId>javax.servlet</groupId>
97                                 <artifactId>servlet-api</artifactId>
98                         </exclusion>
99                         <exclusion>
100                                 <groupId>org.onap.aaf.cadi</groupId>
101                                 <artifactId>cadi-aaf</artifactId>
102                         </exclusion>
103                         <exclusion>
104                                 <groupId>org.onap.aaf.cadi</groupId>
105                                 <artifactId>cadi-core</artifactId>
106                             </exclusion>
107                             <exclusion>
108                                 <groupId>org.onap.aaf.cadi</groupId>
109                                 <artifactId>cadi-client</artifactId>
110                         </exclusion>
111                         
112                         </exclusions> 
113                 </dependency>
114
115                 <dependency>
116                         <groupId>org.joda</groupId>
117                         <artifactId>joda-time</artifactId>
118                         <version>2.5</version>
119                 </dependency>
120
121                 <dependency>
122                         <groupId>org.slf4j</groupId>
123                         <artifactId>slf4j-log4j12</artifactId>
124                 </dependency>
125
126         </dependencies>
127
128         <build>
129                 <plugins>
130                          
131                             
132                                 <plugin>
133                                         <artifactId>maven-assembly-plugin</artifactId>
134                                         <version>2.4</version>
135                                         
136                                         <configuration>
137                                                 <classifier>tests</classifier>
138                                                 <archive>
139                                                         <manifestEntries>
140                                                                 <Sealed>true</Sealed>
141                                                         </manifestEntries>
142                                                 </archive>
143                                         </configuration>
144                                         <executions>
145                                                 <execution>
146                                                         <id>depends</id>
147                                                         <phase>package</phase>
148                                                         <goals>
149                                                                 <goal>single</goal>
150                                                         </goals>
151                                                         <configuration>
152                                                         <descriptorRefs>
153                                                           <descriptorRef>jar-with-dependencies</descriptorRef>
154                                                         </descriptorRefs>
155                                                         <archive>
156                                                           <manifest>
157                                                             <mainClass>org.onap.aaf.authz.Batch</mainClass>
158                                                           </manifest>
159                                                         </archive>
160                                                         </configuration>
161                                                 </execution>
162                                                 <execution>
163                                                         <id>swm</id>
164                                                         <phase>package</phase>
165                                                         <goals>
166                                                                 <goal>single</goal>
167                                                         </goals>
168                                                 <configuration>
169                                                         <finalName>authz-batch-${project.version}.${project.swmVersion}</finalName>
170                                                          <descriptors>
171                                                                 <descriptor>../authz-service/src/main/assemble/swm.xml</descriptor>
172                                                         </descriptors>
173                                                         <archive>
174                                                         </archive>
175                                                 </configuration>
176                                                 </execution>
177                                         </executions>
178                                 </plugin>
179                 <plugin>
180                         <groupId>org.apache.maven.plugins</groupId>
181                         <artifactId>maven-javadoc-plugin</artifactId>
182                         <configuration>
183                         <failOnError>false</failOnError>
184                         </configuration>
185                         <executions>
186                                 <execution>
187                                         <id>attach-javadocs</id>
188                                         <goals>
189                                                 <goal>jar</goal>
190                                         </goals>
191                                 </execution>
192                         </executions>
193                 </plugin> 
194            
195            
196                <plugin>
197                       <groupId>org.apache.maven.plugins</groupId>
198                       <artifactId>maven-source-plugin</artifactId>
199                       <version>2.2.1</version>
200                       <executions>
201                         <execution>
202                           <id>attach-sources</id>
203                           <goals>
204                             <goal>jar-no-fork</goal>
205                           </goals>
206                         </execution>
207                       </executions>
208                     </plugin>
209         
210 <plugin>
211                                 <groupId>org.sonatype.plugins</groupId>
212                                 <artifactId>nexus-staging-maven-plugin</artifactId>
213                                 <version>1.6.7</version>
214                                 <extensions>true</extensions>
215                                 <configuration>
216                                         <nexusUrl>${nexusproxy}</nexusUrl>
217                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
218                                         <serverId>ecomp-staging</serverId>
219                                 </configuration>
220                         </plugin>
221                         
222                         <plugin>
223           <groupId>org.jacoco</groupId>
224           <artifactId>jacoco-maven-plugin</artifactId>
225           <version>${jacoco.version}</version>
226           <configuration>
227             <excludes>
228               <exclude>**/gen/**</exclude>
229               <exclude>**/generated-sources/**</exclude>
230               <exclude>**/yang-gen/**</exclude>
231               <exclude>**/pax/**</exclude>
232             </excludes>
233           </configuration>
234           <executions>
235
236             <execution>
237               <id>pre-unit-test</id>
238               <goals>
239                 <goal>prepare-agent</goal>
240               </goals>
241               <configuration>
242                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
243                 <propertyName>surefireArgLine</propertyName>
244               </configuration>
245             </execution>
246             
247        
248             <execution>
249               <id>post-unit-test</id>
250               <phase>test</phase>
251               <goals>
252                 <goal>report</goal>
253               </goals>
254               <configuration>
255                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
256                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
257               </configuration>
258             </execution>
259             <execution>
260               <id>pre-integration-test</id>
261               <phase>pre-integration-test</phase>
262               <goals>
263                 <goal>prepare-agent</goal>
264               </goals>
265               <configuration>
266                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
267
268                 <propertyName>failsafeArgLine</propertyName>
269               </configuration>
270             </execution>
271
272        
273             <execution>
274               <id>post-integration-test</id>
275               <phase>post-integration-test</phase>
276               <goals>
277                 <goal>report</goal>
278               </goals>
279               <configuration>
280                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
281                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
282               </configuration>
283             </execution>
284           </executions>
285         </plugin>       
286
287                                 
288                 
289                         </plugins>
290         </build>
291 </project>