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