Improve aaf sonar code coverage
[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                 <sonar.language>java</sonar.language>
46                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
47                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
48                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
49                 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
50                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
51                 <sonar.projectVersion>${project.version}</sonar.projectVersion>
52                 <nexusproxy>https://nexus.onap.org</nexusproxy>
53                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
54                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
55                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
56                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
57         </properties>
58         
59         <dependencies>
60
61                 <dependency>
62                         <groupId>org.onap.aaf.inno</groupId>
63                         <artifactId>env</artifactId>
64                         <version>${project.innoVersion}</version>
65                 </dependency>
66
67                 <dependency>
68                         <groupId>org.onap.aaf.inno</groupId>
69                         <artifactId>rosetta</artifactId>
70                         <version>${project.innoVersion}</version>
71                 </dependency>
72                 
73                 <dependency>
74                 <groupId>org.onap.aaf.cadi</groupId>
75                 <artifactId>cadi-core</artifactId>
76                         <version>${project.cadiVersion}</version>
77             </dependency>
78
79                 <dependency>
80                 <groupId>org.onap.aaf.cadi</groupId>
81                 <artifactId>cadi-aaf</artifactId>
82                         <version>${project.cadiVersion}</version>
83             </dependency>
84
85                 
86                 <dependency>
87                         <groupId>prg.onap.aaf.authz</groupId>
88                         <artifactId>authz-cass</artifactId>
89                         <version>${project.version}</version>
90                         <exclusions>
91                                 <exclusion> 
92                                         <groupId>javax.servlet</groupId>
93                                 <artifactId>servlet-api</artifactId>
94                         </exclusion>
95                         <exclusion>
96                                 <groupId>org.onap.aaf.cadi</groupId>
97                                 <artifactId>cadi-aaf</artifactId>
98                         </exclusion>
99                         <exclusion>
100                                 <groupId>org.onap.aaf.cadi</groupId>
101                                 <artifactId>cadi-core</artifactId>
102                             </exclusion>
103                             <exclusion>
104                                 <groupId>org.onap.aaf.cadi</groupId>
105                                 <artifactId>cadi-client</artifactId>
106                         </exclusion>
107                         
108                         </exclusions> 
109                 </dependency>
110
111                 <dependency>
112                         <groupId>org.joda</groupId>
113                         <artifactId>joda-time</artifactId>
114                         <version>2.5</version>
115                 </dependency>
116
117                 <dependency>
118                         <groupId>org.slf4j</groupId>
119                         <artifactId>slf4j-log4j12</artifactId>
120                 </dependency>
121
122         </dependencies>
123
124         <build>
125                 <plugins>
126                          
127                             
128                                 <plugin>
129                                         <artifactId>maven-assembly-plugin</artifactId>
130                                         <version>2.4</version>
131                                         
132                                         <configuration>
133                                                 <classifier>tests</classifier>
134                                                 <archive>
135                                                         <manifestEntries>
136                                                                 <Sealed>true</Sealed>
137                                                         </manifestEntries>
138                                                 </archive>
139                                         </configuration>
140                                         <executions>
141                                                 <execution>
142                                                         <id>depends</id>
143                                                         <phase>package</phase>
144                                                         <goals>
145                                                                 <goal>single</goal>
146                                                         </goals>
147                                                         <configuration>
148                                                         <descriptorRefs>
149                                                           <descriptorRef>jar-with-dependencies</descriptorRef>
150                                                         </descriptorRefs>
151                                                         <archive>
152                                                           <manifest>
153                                                             <mainClass>org.onap.aaf.authz.Batch</mainClass>
154                                                           </manifest>
155                                                         </archive>
156                                                         </configuration>
157                                                 </execution>
158                                                 <execution>
159                                                         <id>swm</id>
160                                                         <phase>package</phase>
161                                                         <goals>
162                                                                 <goal>single</goal>
163                                                         </goals>
164                                                 <configuration>
165                                                         <finalName>authz-batch-${project.version}.${project.swmVersion}</finalName>
166                                                          <descriptors>
167                                                                 <descriptor>../authz-service/src/main/assemble/swm.xml</descriptor>
168                                                         </descriptors>
169                                                         <archive>
170                                                         </archive>
171                                                 </configuration>
172                                                 </execution>
173                                         </executions>
174                                 </plugin>
175                 <plugin>
176                         <groupId>org.apache.maven.plugins</groupId>
177                         <artifactId>maven-javadoc-plugin</artifactId>
178                         <configuration>
179                         <failOnError>false</failOnError>
180                         </configuration>
181                         <executions>
182                                 <execution>
183                                         <id>attach-javadocs</id>
184                                         <goals>
185                                                 <goal>jar</goal>
186                                         </goals>
187                                 </execution>
188                         </executions>
189                 </plugin> 
190            
191            
192                <plugin>
193                       <groupId>org.apache.maven.plugins</groupId>
194                       <artifactId>maven-source-plugin</artifactId>
195                       <version>2.2.1</version>
196                       <executions>
197                         <execution>
198                           <id>attach-sources</id>
199                           <goals>
200                             <goal>jar-no-fork</goal>
201                           </goals>
202                         </execution>
203                       </executions>
204                     </plugin>
205         
206 <plugin>
207                                 <groupId>org.sonatype.plugins</groupId>
208                                 <artifactId>nexus-staging-maven-plugin</artifactId>
209                                 <version>1.6.7</version>
210                                 <extensions>true</extensions>
211                                 <configuration>
212                                         <nexusUrl>${nexusproxy}</nexusUrl>
213                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
214                                         <serverId>ecomp-staging</serverId>
215                                 </configuration>
216                         </plugin>               
217                         <plugin>
218                                 <groupId>org.jacoco</groupId>
219                                 <artifactId>jacoco-maven-plugin</artifactId>
220                                 <version>0.7.7.201606060606</version>
221                                 <configuration>
222                                         <dumpOnExit>true</dumpOnExit>
223                                         <includes>
224                                                 <include>org.onap.aaf.*</include>
225                                         </includes>
226                                 </configuration>
227                                 <executions>
228                                         <execution>
229                                                 <id>pre-unit-test</id>
230                                                 <goals>
231                                                         <goal>prepare-agent</goal>
232                                                 </goals>
233                                                 <configuration>
234                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
235                                                         <!-- <append>true</append> -->
236                                                 </configuration>
237                                         </execution>
238                                         <execution>
239                                                 <id>pre-integration-test</id>
240                                                 <phase>pre-integration-test</phase>
241                                                 <goals>
242                                                         <goal>prepare-agent</goal>
243                                                 </goals>
244                                                 <configuration>
245                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
246                                                         <!-- <append>true</append> -->
247                                                 </configuration>
248                                         </execution>
249                                         <execution>
250                         <goals>
251                             <goal>merge</goal>
252                         </goals>
253                         <phase>post-integration-test</phase>
254                         <configuration>
255                             <fileSets>
256                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
257                                     <directory>${project.build.directory}/coverage-reports</directory>
258                                     <includes>
259                                         <include>*.exec</include>
260                                     </includes>
261                                 </fileSet>
262                             </fileSets>
263                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
264                         </configuration>
265                     </execution>
266                                 </executions>
267                         </plugin>
268                                 
269                 
270                         </plugins>
271         </build>
272 </project>