Fix for Sonar tests in POMs
[aaf/authz.git] / auth / auth-cmd / 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
15 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
17         <modelVersion>4.0.0</modelVersion>
18         <parent>
19                 <groupId>org.onap.aaf.authz.auth</groupId>
20                 <artifactId>parent</artifactId>
21                 <version>2.1.0-SNAPSHOT</version>
22                 <relativePath>../pom.xml</relativePath>
23         </parent>
24
25         <artifactId>aaf-auth-cmd</artifactId>
26         <name>AAF Auth Command</name>
27         <description>Command Line Processor for AAF Auth</description>
28         <packaging>jar</packaging>
29
30         <properties>
31                 <maven.test.failure.ignore>false</maven.test.failure.ignore>
32                 <!-- SONAR -->
33                 <jacoco.version>0.7.7.201606060606</jacoco.version>
34                 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
35                 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
36                 <!-- Default Sonar configuration -->
37                 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
38                 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
39                 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 
40                         below -->
41                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
42                 <nexusproxy>https://nexus.onap.org</nexusproxy>
43                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
44                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
45                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
46                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
47         </properties>
48
49         <developers>
50                 <developer>
51                         <name>Jonathan Gathman</name>
52                         <email>jonathan.gathman@att.com</email>
53                         <organization>ATT</organization>
54                         <roles>
55                                 <role>Architect</role>
56                                 <role>Lead Developer</role>
57                         </roles>
58                 </developer>
59                 <developer>
60                         <name>Gabe Maurer</name>
61                         <email>gabe.maurer@att.com</email>
62                         <organization>ATT</organization>
63                         <roles>
64                                 <role>Developer</role>
65                         </roles>
66                 </developer>
67                 <developer>
68                         <name>Ian Howell</name>
69                         <email>ian.howell@att.com</email>
70                         <organization>ATT</organization>
71                         <roles>
72                                 <role>Developer</role>
73                         </roles>
74                 </developer>
75                 <developer>
76                         <name>Sai Gandham</name>
77                         <email>sai.gandham@att.com</email>
78                         <organization>ATT</organization>
79                         <roles>
80                                 <role>Developer</role>
81                         </roles>
82                 </developer>
83         </developers>
84
85         <build>
86                 <plugins>
87                         <plugin>
88                                 <groupId>org.apache.maven.plugins</groupId>
89                                 <artifactId>maven-deploy-plugin</artifactId>
90                                 <configuration>
91                                         <skip>false</skip>
92                                 </configuration>
93                         </plugin>
94                         <plugin>
95                                 <groupId>org.sonatype.plugins</groupId>
96                                 <artifactId>nexus-staging-maven-plugin</artifactId>
97                                 <version>1.6.7</version>
98                                 <extensions>true</extensions>
99                                 <configuration>
100                                         <nexusUrl>${nexusproxy}</nexusUrl>
101                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
102                                         <serverId>ecomp-staging</serverId>
103                                 </configuration>
104                         </plugin>
105                         <plugin>
106                                 <groupId>org.jacoco</groupId>
107                                 <artifactId>jacoco-maven-plugin</artifactId>
108                                 <version>${jacoco.version}</version>
109                                 <configuration>
110                                         <excludes>
111                                                 <exclude>**/gen/**</exclude>
112                                                 <exclude>**/generated-sources/**</exclude>
113                                                 <exclude>**/yang-gen/**</exclude>
114                                                 <exclude>**/pax/**</exclude>
115                                         </excludes>
116                                 </configuration>
117                                 <executions>
118
119                                         <execution>
120                                                 <id>pre-unit-test</id>
121                                                 <goals>
122                                                         <goal>prepare-agent</goal>
123                                                 </goals>
124                                                 <configuration>
125                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
126                                                         <propertyName>surefireArgLine</propertyName>
127                                                 </configuration>
128                                         </execution>
129
130
131                                         <execution>
132                                                 <id>post-unit-test</id>
133                                                 <phase>test</phase>
134                                                 <goals>
135                                                         <goal>report</goal>
136                                                 </goals>
137                                                 <configuration>
138                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
139                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
140                                                 </configuration>
141                                         </execution>
142                                         <execution>
143                                                 <id>pre-integration-test</id>
144                                                 <phase>pre-integration-test</phase>
145                                                 <goals>
146                                                         <goal>prepare-agent</goal>
147                                                 </goals>
148                                                 <configuration>
149                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
150                                                         <propertyName>failsafeArgLine</propertyName>
151                                                 </configuration>
152                                         </execution>
153
154                                         <execution>
155                                                 <id>post-integration-test</id>
156                                                 <phase>post-integration-test</phase>
157                                                 <goals>
158                                                         <goal>report</goal>
159                                                 </goals>
160                                                 <configuration>
161                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
162                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
163                                                 </configuration>
164                                         </execution>
165                                 </executions>
166                         </plugin>
167                 </plugins>
168         </build>
169
170         <dependencies>
171                 <dependency>
172                         <groupId>org.onap.aaf.authz.cadi</groupId>
173                         <artifactId>aaf-cadi-aaf</artifactId>
174                 </dependency>
175
176                 <dependency>
177                         <groupId>org.onap.aaf.authz.auth</groupId>
178                         <artifactId>aaf-auth-core</artifactId>
179                 </dependency>
180
181                 <dependency>
182                         <groupId>jline</groupId>
183                         <artifactId>jline</artifactId>
184                         <version>2.14.2</version>
185                 </dependency>
186
187         </dependencies>
188
189         <distributionManagement>
190                 <repository>
191                         <id>ecomp-releases</id>
192                         <name>AAF Release Repository</name>
193                         <url>${nexusproxy}${releaseNexusPath}</url>
194                 </repository>
195                 <snapshotRepository>
196                         <id>ecomp-snapshots</id>
197                         <name>AAF Snapshot Repository</name>
198                         <url>${nexusproxy}${snapshotNexusPath}</url>
199                 </snapshotRepository>
200                 <site>
201                         <id>ecomp-site</id>
202                         <url>dav:${nexusproxy}${sitePath}</url>
203                 </site>
204         </distributionManagement>
205 </project>