Fix for Sonar tests in POMs
[aaf/authz.git] / auth / auth-fs / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ============LICENSE_START==================================================== 
3         * org.onap.aaf * =========================================================================== 
4         * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =========================================================================== 
5         * Licensed under the Apache License, Version 2.0 (the "License"); * you may 
6         not use this file except in compliance with the License. * You may obtain 
7         a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * 
8         * Unless required by applicable law or agreed to in writing, software * distributed 
9         under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 
10         OR CONDITIONS OF ANY KIND, either express or implied. * See the License for 
11         the specific language governing permissions and * limitations under the License. 
12         * ============LICENSE_END==================================================== 
13         * -->
14 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
16         <modelVersion>4.0.0</modelVersion>
17         <parent>
18                 <groupId>org.onap.aaf.authz.auth</groupId>
19                 <artifactId>parent</artifactId>
20                 <version>2.1.0-SNAPSHOT</version>
21                 <relativePath>../pom.xml</relativePath>
22         </parent>
23
24         <artifactId>aaf-auth-fs</artifactId>
25         <name>AAF Auth File Server (http)</name>
26         <description>Independent FileServer Component via HTTP (not S) for Public Files (i.e. CRLs) for AAF Auth</description>
27
28         <properties>
29                 <maven.test.failure.ignore>true</maven.test.failure.ignore>
30                 <!-- SONAR -->
31                 <jacoco.version>0.7.7.201606060606</jacoco.version>
32                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
33                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34                 <!-- Default Sonar configuration -->
35                 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
36                 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
37                 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
38                         below -->
39                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
40                 <nexusproxy>https://nexus.onap.org</nexusproxy>
41                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
42                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
43                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
44                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
45
46         </properties>
47
48         <developers>
49                 <developer>
50                         <name>Jonathan Gathman</name>
51                         <email>jonathan.gathman@att.com</email>
52                         <organization>ATT</organization>
53                         <roles>
54                                 <role>Architect</role>
55                                 <role>Lead Developer</role>
56                         </roles>
57                 </developer>
58                 <developer>
59                         <name>Gabe Maurer</name>
60                         <email>gabe.maurer@att.com</email>
61                         <organization>ATT</organization>
62                         <roles>
63                                 <role>Developer</role>
64                         </roles>
65                 </developer>
66                 <developer>
67                         <name>Ian Howell</name>
68                         <email>ian.howell@att.com</email>
69                         <organization>ATT</organization>
70                         <roles>
71                                 <role>Developer</role>
72                         </roles>
73                 </developer>
74                 <developer>
75                         <name>Sai Gandham</name>
76                         <email>sai.gandham@att.com</email>
77                         <organization>ATT</organization>
78                         <roles>
79                                 <role>Developer</role>
80                         </roles>
81                 </developer>
82         </developers>
83
84         <dependencies>
85                 <dependency>
86                         <groupId>org.onap.aaf.authz.auth</groupId>
87                         <artifactId>aaf-auth-core</artifactId>
88                 </dependency>
89
90                 <dependency>
91                         <groupId>org.onap.aaf.authz.cadi</groupId>
92                         <artifactId>aaf-cadi-core</artifactId>
93                 </dependency>
94         </dependencies>
95
96         <build>
97                 <plugins>
98                         <plugin>
99                                 <groupId>org.apache.maven.plugins</groupId>
100                                 <artifactId>maven-deploy-plugin</artifactId>
101                                 <configuration>
102                                         <skip>false</skip>
103                                 </configuration>
104                         </plugin>
105                         <plugin>
106                                 <groupId>org.codehaus.mojo</groupId>
107                                 <artifactId>appassembler-maven-plugin</artifactId>
108                                 <configuration>
109                                         <programs>
110                                                 <program>
111                                                         <mainClass>org.onap.aaf.auth.fs.AAF_FS</mainClass>
112                                                         <name>fs</name>
113                                                         <commandLineArguments>
114                                                                 <commandLineArgument>cadi_prop_files=${project.conf_dir}/org.osaaf.fs.props</commandLineArgument>
115                                                         </commandLineArguments>
116                                                 </program>
117                                         </programs>
118                                 </configuration>
119                         </plugin>
120                         <plugin>
121                                 <groupId>org.sonatype.plugins</groupId>
122                                 <artifactId>nexus-staging-maven-plugin</artifactId>
123                                 <version>1.6.7</version>
124                                 <extensions>true</extensions>
125                                 <configuration>
126                                         <nexusUrl>${nexusproxy}</nexusUrl>
127                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
128                                         <serverId>ecomp-staging</serverId>
129                                 </configuration>
130                         </plugin>
131                         <plugin>
132                                 <groupId>org.jacoco</groupId>
133                                 <artifactId>jacoco-maven-plugin</artifactId>
134                                 <version>${jacoco.version}</version>
135                                 <configuration>
136                                         <excludes>
137                                                 <exclude>**/gen/**</exclude>
138                                                 <exclude>**/generated-sources/**</exclude>
139                                                 <exclude>**/yang-gen/**</exclude>
140                                                 <exclude>**/pax/**</exclude>
141                                         </excludes>
142                                 </configuration>
143                                 <executions>
144
145                                         <execution>
146                                                 <id>pre-unit-test</id>
147                                                 <goals>
148                                                         <goal>prepare-agent</goal>
149                                                 </goals>
150                                                 <configuration>
151                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
152                                                         <propertyName>surefireArgLine</propertyName>
153                                                 </configuration>
154                                         </execution>
155
156
157                                         <execution>
158                                                 <id>post-unit-test</id>
159                                                 <phase>test</phase>
160                                                 <goals>
161                                                         <goal>report</goal>
162                                                 </goals>
163                                                 <configuration>
164                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
165                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
166                                                 </configuration>
167                                         </execution>
168                                         <execution>
169                                                 <id>pre-integration-test</id>
170                                                 <phase>pre-integration-test</phase>
171                                                 <goals>
172                                                         <goal>prepare-agent</goal>
173                                                 </goals>
174                                                 <configuration>
175                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
176                                                         <propertyName>failsafeArgLine</propertyName>
177                                                 </configuration>
178                                         </execution>
179
180                                         <execution>
181                                                 <id>post-integration-test</id>
182                                                 <phase>post-integration-test</phase>
183                                                 <goals>
184                                                         <goal>report</goal>
185                                                 </goals>
186                                                 <configuration>
187                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
188                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
189                                                 </configuration>
190                                         </execution>
191                                 </executions>
192                         </plugin>
193                 </plugins>
194                 <pluginManagement>
195                         <plugins />
196                 </pluginManagement>
197         </build>
198
199         <distributionManagement>
200                 <repository>
201                         <id>ecomp-releases</id>
202                         <name>AAF Release Repository</name>
203                         <url>${nexusproxy}${releaseNexusPath}</url>
204                 </repository>
205                 <snapshotRepository>
206                         <id>ecomp-snapshots</id>
207                         <name>AAF Snapshot Repository</name>
208                         <url>${nexusproxy}${snapshotNexusPath}</url>
209                 </snapshotRepository>
210                 <site>
211                         <id>ecomp-site</id>
212                         <url>dav:${nexusproxy}${sitePath}</url>
213                 </site>
214         </distributionManagement>
215 </project>