Improve code coverage for aaf authz modules
[aaf/authz.git] / authz-gui / 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-gui</artifactId>
17         <name>Authz GUI (Mobile First)</name>
18         <description>GUI for Authz Management</description>
19                 <url>https://github.com/att/AAF</url>
20         <licenses>
21                 <license>
22                 <name>BSD License</name>
23                 <url> </url>
24                 </license>
25         </licenses>
26         <developers>
27                 <developer>
28                 <name>Jonathan Gathman</name>
29                 <email></email>
30         <organization>ATT</organization>
31         <organizationUrl></organizationUrl>
32                 </developer>
33         </developers>
34
35
36         <properties>
37                 <maven.test.failure.ignore>true</maven.test.failure.ignore>
38                 <project.swmVersion>28</project.swmVersion>
39                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40                 <skipTests>false</skipTests>
41                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
42                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
43                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
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>false</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                 
60         <dependencies>
61         <dependency>
62             <groupId>com.att.authz</groupId>
63             <artifactId>authz-core</artifactId>
64                         <version>${project.version}</version>
65             <exclusions>
66                           <exclusion> 
67                                         <groupId>javax.servlet</groupId>
68                         <artifactId>servlet-api</artifactId>
69                    </exclusion>
70                     </exclusions> 
71         </dependency>
72             
73         <dependency>
74             <groupId>com.att.authz</groupId>
75             <artifactId>authz-client</artifactId>
76                         <version>${project.version}</version>
77         </dependency>
78         
79      <!--    <dependency>
80             <groupId>com.att.authz</groupId>
81             <artifactId>authz-att</artifactId>
82         </dependency>    --> 
83         
84         
85         <dependency>
86             <groupId>com.att.authz</groupId>
87             <artifactId>authz-cmd</artifactId>
88                         <version>${project.version}</version>
89             <exclusions>
90                       <exclusion> 
91                         <groupId>org.slf4j</groupId>
92                         <artifactId>slf4j-log4j12</artifactId>
93                       </exclusion>
94                       <exclusion> 
95                         <groupId>log4j</groupId>
96                         <artifactId>log4j</artifactId>
97                       </exclusion>
98             </exclusions>
99         </dependency>
100
101                 <dependency> 
102                         <groupId>org.onap.aaf.cadi</groupId>
103                         <artifactId>cadi-aaf</artifactId>
104                         <version>${project.cadiVersion}</version>
105                 </dependency>
106
107                 <dependency> 
108                         <groupId>org.onap.aaf.cadi</groupId>
109                         <artifactId>cadi-tguard</artifactId>
110                         <version>${project.cadiVersion}</version>
111                 </dependency>
112
113                 <dependency> 
114                         <groupId>org.onap.aaf.cadi</groupId>
115                         <artifactId>cadi-client</artifactId>
116                         <version>${project.cadiVersion}</version>
117                 </dependency>
118
119                 <dependency>
120                         <groupId>gso</groupId>
121                         <artifactId>GLCookieDecryption</artifactId>
122                 </dependency>
123                 
124                 <dependency>
125                         <groupId>org.onap.aaf.inno</groupId>
126                         <artifactId>xgen</artifactId>
127                         <version>${project.innoVersion}</version>
128                 </dependency>
129                 
130         </dependencies>
131         
132         <build>
133                 <plugins>
134             <plugin>
135                         <groupId>org.apache.maven.plugins</groupId>
136                         <artifactId>maven-jar-plugin</artifactId>
137                                 <configuration>
138                         <includes>
139                                 <include>**/*.class</include>
140                         </includes>
141                                 </configuration>
142                                 <version>2.3.1</version>
143                         </plugin>
144         
145                         <plugin>
146                       <artifactId>maven-assembly-plugin</artifactId>
147                       <executions>
148                         <execution>
149                                 <id>swm</id>
150                                 <phase>package</phase>
151                                 <goals>
152                                         <goal>single</goal>
153                                 </goals>
154                                 <configuration>
155                                         <finalName>authz-gui-${project.version}.${project.swmVersion}</finalName>
156                                 
157                                          <descriptors>
158                                                 <descriptor>../authz-service/src/main/assemble/swm.xml</descriptor>
159                                         </descriptors>
160                                         <archive>
161                                         </archive>
162                                 </configuration>
163                         </execution>
164                       </executions>
165                     </plugin>
166                     
167                         
168                 <plugin>
169                         <groupId>org.apache.maven.plugins</groupId>
170                         <artifactId>maven-javadoc-plugin</artifactId>
171                         <version>2.10.4</version>
172                         <configuration>
173                         <failOnError>false</failOnError>
174                         </configuration>
175                         <executions>
176                                 <execution>
177                                         <id>attach-javadocs</id>
178                                         <goals>
179                                                 <goal>jar</goal>
180                                         </goals>
181                                 </execution>
182                         </executions>
183                 </plugin>  
184            
185            
186                <plugin>
187                       <groupId>org.apache.maven.plugins</groupId>
188                       <artifactId>maven-source-plugin</artifactId>
189                       <version>2.2.1</version>
190                       <executions>
191                         <execution>
192                           <id>attach-sources</id>
193                           <goals>
194                             <goal>jar-no-fork</goal>
195                           </goals>
196                         </execution>
197                       </executions>
198                     </plugin>
199         
200 <plugin>
201                                 <groupId>org.sonatype.plugins</groupId>
202                                 <artifactId>nexus-staging-maven-plugin</artifactId>
203                                 <version>1.6.7</version>
204                                 <extensions>true</extensions>
205                                 <configuration>
206                                         <nexusUrl>${nexusproxy}</nexusUrl>
207                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
208                                         <serverId>ecomp-staging</serverId>
209                                 </configuration>
210                         </plugin>               
211                         <plugin>
212           <groupId>org.jacoco</groupId>
213           <artifactId>jacoco-maven-plugin</artifactId>
214           <version>${jacoco.version}</version>
215           <configuration>
216             <!-- Note: This exclusion list should match <sonar.exclusions>
217          property above -->
218             <excludes>
219               <exclude>**/gen/**</exclude>
220               <exclude>**/generated-sources/**</exclude>
221               <exclude>**/yang-gen/**</exclude>
222               <exclude>**/pax/**</exclude>
223             </excludes>
224           </configuration>
225           <executions>
226             <!--
227         Prepares the property pointing to the JaCoCo runtime agent which
228         is passed as VM argument when Maven the Surefire plugin is executed.
229         -->
230             <execution>
231               <id>pre-unit-test</id>
232               <goals>
233                 <goal>prepare-agent</goal>
234               </goals>
235               <configuration>
236                 <!-- Sets the path to the file which contains the execution data. -->
237                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
238                 <!--
239             Sets the name of the property containing the settings
240             for JaCoCo runtime agent.
241         -->
242                 <propertyName>surefireArgLine</propertyName>
243               </configuration>
244             </execution>
245             <!--
246         Ensures that the code coverage report for unit tests is created after
247         unit tests have been run.
248         -->
249             <execution>
250               <id>post-unit-test</id>
251               <phase>test</phase>
252               <goals>
253                 <goal>report</goal>
254               </goals>
255               <configuration>
256                 <!-- Sets the path to the file which contains the execution data. -->
257                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
258                 <!-- Sets the output directory for the code coverage report. -->
259                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
260               </configuration>
261             </execution>
262             <execution>
263               <id>pre-integration-test</id>
264               <phase>pre-integration-test</phase>
265               <goals>
266                 <goal>prepare-agent</goal>
267               </goals>
268               <configuration>
269                 <!-- Sets the path to the file which contains the execution data. -->
270                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
271                 <!--
272             Sets the name of the property containing the settings
273             for JaCoCo runtime agent.
274         -->
275                 <propertyName>failsafeArgLine</propertyName>
276               </configuration>
277             </execution>
278             <!--
279         Ensures that the code coverage report for integration tests after
280         integration tests have been run.
281         -->
282             <execution>
283               <id>post-integration-test</id>
284               <phase>post-integration-test</phase>
285               <goals>
286                 <goal>report</goal>
287               </goals>
288               <configuration>
289                 <!-- Sets the path to the file which contains the execution data. -->
290                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
291                 <!-- Sets the output directory for the code coverage report. -->
292                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
293               </configuration>
294             </execution>
295           </executions>
296         </plugin>                    
297
298                 </plugins>
299         </build>
300 <distributionManagement>
301                 <repository>
302                         <id>ecomp-releases</id>
303                         <name>AAF Release Repository</name>
304                         <url>${nexusproxy}${releaseNexusPath}</url>
305                 </repository>
306                 <snapshotRepository>
307                         <id>ecomp-snapshots</id>
308                         <name>AAF Snapshot Repository</name>
309                         <url>${nexusproxy}${snapshotNexusPath}</url>
310                 </snapshotRepository>
311                 <site>
312                         <id>ecomp-site</id>
313                         <url>dav:${nexusproxy}${sitePath}</url>
314                 </site>
315         </distributionManagement>
316 </project>