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