Fix sonar issues & modify deploy property
[aaf/authz.git] / cadi / aaf / 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         <artifactId>aaf-cadi-aaf</artifactId>
33         <name>AAF CADI AAF Connection Library</name>
34         <packaging>jar</packaging>
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         <developers>
53                 <developer>
54                         <name>Jonathan Gathman</name>
55                         <email>jonathan.gathman@att.com</email>
56                         <organization>ATT</organization>
57                         <roles>
58                                 <role>Architect</role>
59                                 <role>Lead Developer</role>
60                         </roles>
61                 </developer>
62                 <developer>
63                         <name>Gabe Maurer</name>
64                         <email>gabe.maurer@att.com</email>
65                         <organization>ATT</organization>
66                         <roles>
67                                 <role>Developer</role>
68                         </roles>
69                 </developer>
70                 <developer>
71                         <name>Ian Howell</name>
72                         <email>ian.howell@att.com</email>
73                         <organization>ATT</organization>
74                         <roles>
75                                 <role>Developer</role>
76                         </roles>
77                 </developer>
78                 <developer>
79                         <name>Sai Gandham</name>
80                         <email>sai.gandham@att.com</email>
81                         <organization>ATT</organization>
82                         <roles>
83                                 <role>Developer</role>
84                         </roles>
85                 </developer>
86         </developers>
87
88
89         <dependencies>
90                 <dependency>
91                         <groupId>org.onap.aaf.authz.auth</groupId>
92                         <artifactId>aaf-auth-client</artifactId>
93                 </dependency>
94
95                 <dependency>
96                         <groupId>org.onap.aaf.authz.cadi</groupId>
97                         <artifactId>aaf-cadi-client</artifactId>
98                 </dependency>
99
100                 <dependency>
101                         <groupId>org.onap.aaf.authz.misc</groupId>
102                         <artifactId>aaf-misc-env</artifactId>
103                 </dependency>
104
105                 <dependency>
106                         <groupId>org.onap.aaf.authz.cadi</groupId>
107                         <artifactId>aaf-cadi-core</artifactId>
108                 </dependency>
109
110                 <dependency>
111                         <groupId>javax.servlet</groupId>
112                         <artifactId>servlet-api</artifactId>
113                         <scope>provided</scope>
114                 </dependency>
115         </dependencies>
116         <build>
117                 <plugins>
118                         <plugin>
119                                 <groupId>org.apache.maven.plugins</groupId>
120                                 <artifactId>maven-compiler-plugin</artifactId>
121                         </plugin>
122                                 <plugin>
123                                 <groupId>org.sonatype.plugins</groupId>
124                                 <artifactId>nexus-staging-maven-plugin</artifactId>
125                                 <extensions>true</extensions>
126                                 <configuration>
127                                         <nexusUrl>${nexusproxy}</nexusUrl>
128                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
129                                         <serverId>ecomp-staging</serverId>
130                                 </configuration>
131                         </plugin>               
132                         <plugin>
133           <groupId>org.jacoco</groupId>
134           <artifactId>jacoco-maven-plugin</artifactId>
135           <version>${jacoco.version}</version>
136           <configuration>
137             <excludes>
138               <exclude>**/gen/**</exclude>
139               <exclude>**/generated-sources/**</exclude>
140               <exclude>**/yang-gen/**</exclude>
141               <exclude>**/pax/**</exclude>
142             </excludes>
143           </configuration>
144           <executions>
145
146             <execution>
147               <id>pre-unit-test</id>
148               <goals>
149                 <goal>prepare-agent</goal>
150               </goals>
151               <configuration>
152                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
153                 <propertyName>surefireArgLine</propertyName>
154               </configuration>
155             </execution>
156             
157        
158             <execution>
159               <id>post-unit-test</id>
160               <phase>test</phase>
161               <goals>
162                 <goal>report</goal>
163               </goals>
164               <configuration>
165                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
166                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
167               </configuration>
168             </execution>
169             <execution>
170               <id>pre-integration-test</id>
171               <phase>pre-integration-test</phase>
172               <goals>
173                 <goal>prepare-agent</goal>
174               </goals>
175               <configuration>
176                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
177
178                 <propertyName>failsafeArgLine</propertyName>
179               </configuration>
180             </execution>
181
182        
183             <execution>
184               <id>post-integration-test</id>
185               <phase>post-integration-test</phase>
186               <goals>
187                 <goal>report</goal>
188               </goals>
189               <configuration>
190                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
191                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
192               </configuration>
193             </execution>
194           </executions>
195         </plugin>
196                         <!-- We want to create a Jar with Rosetta built in (since I don't want 
197                                 a separate deployment at this time Use this one as the jar to put in SWM 
198                                 packages <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> 
199                                 <classifier>tests</classifier> <archive> <manifest> <mainClass>org.onap.aaf.cadi.cm.CmAgent</mainClass> 
200                                 </manifest> <manifestEntries> <Sealed>true</Sealed> </manifestEntries> </archive> 
201                                 </configuration> <executions> <execution> <id>full</id> <phase>package</phase> 
202                                 <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/assemble/cadi-aaf.xml</descriptor> 
203                                 </descriptors> </configuration> </execution> </executions> </plugin> -->
204                 </plugins>
205         </build>
206         
207         <distributionManagement>
208                 <repository>
209                         <id>ecomp-releases</id>
210                         <name>AAF Release Repository</name>
211                         <url>${nexusproxy}${releaseNexusPath}</url>
212                 </repository>
213                 <snapshotRepository>
214                         <id>ecomp-snapshots</id>
215                         <name>AAF Snapshot Repository</name>
216                         <url>${nexusproxy}${snapshotNexusPath}</url>
217                 </snapshotRepository>
218                 <site>
219                         <id>ecomp-site</id>
220                         <url>dav:${nexusproxy}${sitePath}</url>
221                 </site>
222         </distributionManagement>
223 </project>