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