Fix for Sonar tests in POMs
[aaf/authz.git] / auth / auth-oauth / 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-oauth</artifactId>
25         <name>AAF Auth OAuth Service</name>
26         <description>OAuth Component for AAF Auth</description>
27
28         <properties>
29                 <project.swmVersion>25</project.swmVersion>
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         </properties>
46
47         <dependencies>
48                 <dependency>
49                         <groupId>org.onap.aaf.authz.auth</groupId>
50                         <artifactId>aaf-auth-core</artifactId>
51                 </dependency>
52
53                 <dependency>
54                         <groupId>org.onap.aaf.authz.auth</groupId>
55                         <artifactId>aaf-auth-cass</artifactId>
56                 </dependency>
57
58                 <dependency>
59                         <groupId>org.onap.aaf.authz.cadi</groupId>
60                         <artifactId>aaf-cadi-aaf</artifactId>
61                 </dependency>
62         </dependencies>
63
64         <build>
65                 <plugins>
66                         <plugin>
67                                 <groupId>org.apache.maven.plugins</groupId>
68                                 <artifactId>maven-jar-plugin</artifactId>
69                                 <configuration>
70                                         <includes>
71                                                 <include>**/*.class</include>
72                                         </includes>
73                                 </configuration>
74                                 <version>2.3.1</version>
75                         </plugin>
76                         <!--This plugin's configuration is used to store Eclipse m2e settings 
77                                 only. It has no influence on the Maven build itself. -->
78                         <plugin>
79                                 <groupId>org.apache.maven.plugins</groupId>
80                                 <artifactId>maven-deploy-plugin</artifactId>
81                                 <configuration>
82                                         <skip>false</skip>
83                                 </configuration>
84                         </plugin>
85                         <plugin>
86                                 <groupId>org.codehaus.mojo</groupId>
87                                 <artifactId>appassembler-maven-plugin</artifactId>
88                                 <configuration>
89                                         <programs>
90                                                 <program>
91                                                         <mainClass>org.onap.aaf.auth.oauth.AAF_OAuth</mainClass>
92                                                         <name>oauth</name>
93                                                         <commandLineArguments>
94                                                                 <commandLineArgument>cadi_prop_files=${project.conf_dir}/org.osaaf.oauth.props</commandLineArgument>
95                                                         </commandLineArguments>
96                                                 </program>
97                                         </programs>
98                                 </configuration>
99                         </plugin>
100                         <plugin>
101                                 <groupId>org.sonatype.plugins</groupId>
102                                 <artifactId>nexus-staging-maven-plugin</artifactId>
103                                 <version>1.6.7</version>
104                                 <extensions>true</extensions>
105                                 <configuration>
106                                         <nexusUrl>${nexusproxy}</nexusUrl>
107                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
108                                         <serverId>ecomp-staging</serverId>
109                                 </configuration>
110                         </plugin>
111                         <plugin>
112                                 <groupId>org.jacoco</groupId>
113                                 <artifactId>jacoco-maven-plugin</artifactId>
114                                 <version>${jacoco.version}</version>
115                                 <configuration>
116                                         <excludes>
117                                                 <exclude>**/gen/**</exclude>
118                                                 <exclude>**/generated-sources/**</exclude>
119                                                 <exclude>**/yang-gen/**</exclude>
120                                                 <exclude>**/pax/**</exclude>
121                                         </excludes>
122                                 </configuration>
123                                 <executions>
124
125                                         <execution>
126                                                 <id>pre-unit-test</id>
127                                                 <goals>
128                                                         <goal>prepare-agent</goal>
129                                                 </goals>
130                                                 <configuration>
131                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
132                                                         <propertyName>surefireArgLine</propertyName>
133                                                 </configuration>
134                                         </execution>
135
136
137                                         <execution>
138                                                 <id>post-unit-test</id>
139                                                 <phase>test</phase>
140                                                 <goals>
141                                                         <goal>report</goal>
142                                                 </goals>
143                                                 <configuration>
144                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
145                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
146                                                 </configuration>
147                                         </execution>
148                                         <execution>
149                                                 <id>pre-integration-test</id>
150                                                 <phase>pre-integration-test</phase>
151                                                 <goals>
152                                                         <goal>prepare-agent</goal>
153                                                 </goals>
154                                                 <configuration>
155                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
156                                                         <propertyName>failsafeArgLine</propertyName>
157                                                 </configuration>
158                                         </execution>
159
160                                         <execution>
161                                                 <id>post-integration-test</id>
162                                                 <phase>post-integration-test</phase>
163                                                 <goals>
164                                                         <goal>report</goal>
165                                                 </goals>
166                                                 <configuration>
167                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
168                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
169                                                 </configuration>
170                                         </execution>
171                                 </executions>
172                         </plugin>
173                 </plugins>
174         </build>
175
176         <distributionManagement>
177                 <repository>
178                         <id>ecomp-releases</id>
179                         <name>AAF Release Repository</name>
180                         <url>${nexusproxy}${releaseNexusPath}</url>
181                 </repository>
182                 <snapshotRepository>
183                         <id>ecomp-snapshots</id>
184                         <name>AAF Snapshot Repository</name>
185                         <url>${nexusproxy}${snapshotNexusPath}</url>
186                 </snapshotRepository>
187                 <site>
188                         <id>ecomp-site</id>
189                         <url>dav:${nexusproxy}${sitePath}</url>
190                 </site>
191         </distributionManagement>
192
193 </project>