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