Fix for Sonar tests in POMs
[aaf/authz.git] / auth / auth-service / 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-service</artifactId>
25         <name>AAF Auth Service</name>
26         <description>Core API Component 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         <dependencies>
49                 <dependency>
50                         <groupId>org.onap.aaf.authz.auth</groupId>
51                         <artifactId>aaf-auth-client</artifactId>
52                 </dependency>
53
54                 <dependency>
55                         <groupId>org.onap.aaf.authz.auth</groupId>
56                         <artifactId>aaf-auth-core</artifactId>
57                 </dependency>
58
59                 <!-- Add the Organizations you wish to support. You can delete ONAP if 
60                         you have something else Match with Property Entry: Organization.<root ns>, 
61                         i.e. Organization.onap.org=org.onap.org.DefaultOrg -->
62                 <dependency>
63                         <groupId>org.onap.aaf.authz.auth</groupId>
64                         <artifactId>aaf-auth-deforg</artifactId>
65                 </dependency>
66
67                 <dependency>
68                         <groupId>org.onap.aaf.authz.auth</groupId>
69                         <artifactId>aaf-auth-cass</artifactId>
70                 </dependency>
71
72                 <dependency>
73                         <groupId>org.onap.aaf.authz.auth</groupId>
74                         <artifactId>aaf-auth-oauth</artifactId>
75                 </dependency>
76
77                 <dependency>
78                         <groupId>org.onap.aaf.authz.misc</groupId>
79                         <artifactId>aaf-misc-rosetta</artifactId>
80                 </dependency>
81
82                 <dependency>
83                         <groupId>org.onap.aaf.authz.cadi</groupId>
84                         <artifactId>aaf-cadi-aaf</artifactId>
85                 </dependency>
86
87                 <dependency>
88                         <groupId>org.eclipse.jetty</groupId>
89                         <artifactId>jetty-servlet</artifactId>
90                 </dependency>
91
92                 <dependency>
93                         <groupId>org.slf4j</groupId>
94                         <artifactId>slf4j-log4j12</artifactId>
95                 </dependency>
96
97         </dependencies>
98
99         <build>
100                 <plugins>
101                         <plugin>
102                                 <groupId>org.apache.maven.plugins</groupId>
103                                 <artifactId>maven-jar-plugin</artifactId>
104                                 <configuration>
105                                         <excludes>
106                                                 <exclude>*.properties</exclude>
107                                         </excludes>
108                                 </configuration>
109                                 <version>2.3.1</version>
110                         </plugin>
111                         <plugin>
112                                 <groupId>org.apache.maven.plugins</groupId>
113                                 <artifactId>maven-deploy-plugin</artifactId>
114                                 <configuration>
115                                         <skip>false</skip>
116                                 </configuration>
117                         </plugin>
118                         <plugin>
119                                 <groupId>org.codehaus.mojo</groupId>
120                                 <artifactId>appassembler-maven-plugin</artifactId>
121                                 <configuration>
122                                         <programs>
123                                                 <program>
124                                                         <mainClass>org.onap.aaf.auth.service.AAF_Service</mainClass>
125                                                         <name>service</name>
126                                                         <commandLineArguments>
127                                                                 <commandLineArgument>cadi_prop_files=${project.conf_dir}/org.osaaf.service.props</commandLineArgument>
128                                                         </commandLineArguments>
129                                                 </program>
130                                         </programs>
131                                 </configuration>
132                         </plugin>
133                         <plugin>
134                                 <groupId>org.sonatype.plugins</groupId>
135                                 <artifactId>nexus-staging-maven-plugin</artifactId>
136                                 <version>1.6.7</version>
137                                 <extensions>true</extensions>
138                                 <configuration>
139                                         <nexusUrl>${nexusproxy}</nexusUrl>
140                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
141                                         <serverId>ecomp-staging</serverId>
142                                 </configuration>
143                         </plugin>
144                         <plugin>
145                                 <groupId>org.jacoco</groupId>
146                                 <artifactId>jacoco-maven-plugin</artifactId>
147                                 <version>${jacoco.version}</version>
148                                 <configuration>
149                                         <excludes>
150                                                 <exclude>**/gen/**</exclude>
151                                                 <exclude>**/generated-sources/**</exclude>
152                                                 <exclude>**/yang-gen/**</exclude>
153                                                 <exclude>**/pax/**</exclude>
154                                         </excludes>
155                                 </configuration>
156                                 <executions>
157
158                                         <execution>
159                                                 <id>pre-unit-test</id>
160                                                 <goals>
161                                                         <goal>prepare-agent</goal>
162                                                 </goals>
163                                                 <configuration>
164                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
165                                                         <propertyName>surefireArgLine</propertyName>
166                                                 </configuration>
167                                         </execution>
168
169
170                                         <execution>
171                                                 <id>post-unit-test</id>
172                                                 <phase>test</phase>
173                                                 <goals>
174                                                         <goal>report</goal>
175                                                 </goals>
176                                                 <configuration>
177                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
178                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
179                                                 </configuration>
180                                         </execution>
181                                         <execution>
182                                                 <id>pre-integration-test</id>
183                                                 <phase>pre-integration-test</phase>
184                                                 <goals>
185                                                         <goal>prepare-agent</goal>
186                                                 </goals>
187                                                 <configuration>
188                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
189                                                         <propertyName>failsafeArgLine</propertyName>
190                                                 </configuration>
191                                         </execution>
192
193                                         <execution>
194                                                 <id>post-integration-test</id>
195                                                 <phase>post-integration-test</phase>
196                                                 <goals>
197                                                         <goal>report</goal>
198                                                 </goals>
199                                                 <configuration>
200                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
201                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
202                                                 </configuration>
203                                         </execution>
204                                 </executions>
205                         </plugin>
206                         <!-- plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> 
207                                 </plugin -->
208                 </plugins>
209         </build>
210
211         <distributionManagement>
212                 <repository>
213                         <id>ecomp-releases</id>
214                         <name>AAF Release Repository</name>
215                         <url>${nexusproxy}${releaseNexusPath}</url>
216                 </repository>
217                 <snapshotRepository>
218                         <id>ecomp-snapshots</id>
219                         <name>AAF Snapshot Repository</name>
220                         <url>${nexusproxy}${snapshotNexusPath}</url>
221                 </snapshotRepository>
222                 <site>
223                         <id>ecomp-site</id>
224                         <url>dav:${nexusproxy}${sitePath}</url>
225                 </site>
226         </distributionManagement>
227
228 </project>