Fix sonar issues & modify deploy property
[aaf/authz.git] / cadi / 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24         <groupId>org.onap.aaf.authz.cadi</groupId>
25         <artifactId>parent</artifactId>
26         <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
27         <version>1.5.0-SNAPSHOT</version>
28         <inceptionYear>2015-07-20</inceptionYear>
29         <organization>
30                 <name>ONAP</name>
31         </organization>
32         <packaging>pom</packaging>
33
34    <parent>             
35         <groupId>org.onap.oparent</groupId>
36         <artifactId>oparent</artifactId>
37         <version>1.1.0</version>
38     </parent>
39         
40         <properties>
41                 <skipSigning>true</skipSigning>
42                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43                 <project.miscVersion>1.3.0-SNAPSHOT</project.miscVersion>
44                 <project.authClientVersion>2.10-SNAPSHOT</project.authClientVersion>
45                 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
46                 <powermock.version>1.5.1</powermock.version>
47                 <!--  SONAR  -->
48                  <jacoco.version>0.7.7.201606060606</jacoco.version>
49             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
50             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
51             <!-- Default Sonar configuration -->
52             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
53             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
54             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
55             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
56                 <nexusproxy>https://nexus.onap.org</nexusproxy>
57                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
58                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
59                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
60                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
61         </properties>
62
63         <!-- ============================================================== -->
64         <!-- Define the major contributors and developers of CADI -->
65         <!-- ============================================================== -->
66         <developers>
67                 <developer>
68                         <name>Jonathan Gathman</name>
69                         <email>jonathan.gathman@att.com</email>
70                         <organization>ATT</organization>
71                         <roles>
72                                 <role>Architect</role>
73                                 <role>Lead Developer</role>
74                         </roles>
75                 </developer>
76                 <developer>
77                         <name>Gabe Maurer</name>
78                         <email>gabe.maurer@att.com</email>
79                         <organization>ATT</organization>
80                         <roles>
81                                 <role>Developer</role>
82                         </roles>
83                 </developer>
84                 <developer>
85                         <name>Ian Howell</name>
86                         <email>ian.howell@att.com</email>
87                         <organization>ATT</organization>
88                         <roles>
89                                 <role>Developer</role>
90                         </roles>
91                 </developer>
92                 <developer>
93                         <name>Sai Gandham</name>
94                         <email>sai.gandham@att.com</email>
95                         <organization>ATT</organization>
96                         <roles>
97                                 <role>Developer</role>
98                         </roles>
99                 </developer>
100         </developers>
101
102
103         <dependencies>
104                 <dependency>
105                         <groupId>org.mockito</groupId>
106                         <artifactId>mockito-all</artifactId>
107                         <version>1.9.5</version>
108                         <scope>test</scope>
109                 </dependency>
110         
111                 <dependency>
112                         <groupId>org.powermock</groupId>
113                         <artifactId>powermock-module-junit4</artifactId>
114                         <version>${powermock.version}</version>
115                         <scope>test</scope>
116                 </dependency>
117                 <dependency>
118                         <groupId>org.powermock</groupId>
119                         <artifactId>powermock-api-mockito</artifactId>
120                         <version>${powermock.version}</version>
121                         <scope>test</scope>
122                 </dependency>
123
124                 <dependency>
125                         <groupId>junit</groupId>
126                         <artifactId>junit</artifactId>
127                         <version>4.10</version>
128                         <scope>test</scope>
129                 </dependency>
130         </dependencies>
131
132         <!-- ============================================================== -->
133         <!-- Define sub-projects (modules) -->
134         <!-- ============================================================== -->
135         <modules>
136                 <module>core</module>
137                 <module>client</module>
138                 <module>aaf</module>
139                 <module>cass</module>
140                 <module>oauth-enduser</module>
141                 <module>shiro</module>
142         </modules>
143
144         <!-- ============================================================== -->
145         <!-- Define project-wide dependencies -->
146         <!-- ============================================================== -->
147         <dependencyManagement>
148                 <dependencies>
149                         <dependency>
150                                 <groupId>org.onap.aaf.authz.auth</groupId>
151                                 <artifactId>aaf-auth-client</artifactId>
152                                 <version>${project.authClientVersion}</version>
153                         </dependency>
154
155                         <dependency>
156                                 <groupId>org.onap.aaf.authz.cadi</groupId>
157                                 <artifactId>aaf-cadi-core</artifactId>
158                                 <version>${project.version}</version>
159                         </dependency>
160
161                         <dependency>
162                                 <groupId>org.onap.aaf.authz.cadi</groupId>
163                                 <artifactId>aaf-cadi-oauth</artifactId>
164                                 <version>${project.version}</version>
165                         </dependency>
166
167
168                         <!-- Prevent Cycles in Testing  -->
169                         <dependency>
170                                 <groupId>org.onap.aaf.authz.cadi</groupId>
171                                 <artifactId>aaf-cadi-core</artifactId>
172                                 <version>${project.version}</version>
173                                 <classifier>tests</classifier>
174                         </dependency>
175
176                         <dependency>
177                                 <groupId>org.onap.aaf.authz.cadi</groupId>
178                                 <artifactId>aaf-cadi-jetty</artifactId>
179                                 <version>${project.version}</version>
180                         </dependency>
181
182                         <dependency>
183                                 <groupId>org.onap.aaf.authz.cadi</groupId>
184                                 <artifactId>aaf-cadi-cass</artifactId>
185                                 <version>${project.version}</version>
186                         </dependency>
187
188                         <dependency>
189                                 <groupId>org.onap.aaf.authz.cadi</groupId>
190                                 <artifactId>aaf-cadi-aaf</artifactId>
191                                 <version>${project.version}</version>
192                         </dependency>
193
194                         <dependency>
195                                 <groupId>org.onap.aaf.authz.cadi</groupId>
196                                 <artifactId>aaf-cadi-aaf</artifactId>
197                                 <version>${project.version}</version>
198                                 <classifier>full</classifier>
199                         </dependency>
200
201                         <dependency>
202                                 <groupId>org.onap.aaf.authz.cadi</groupId>
203                                 <artifactId>aaf-cadi-client</artifactId>
204                                 <version>${project.version}</version>
205                         </dependency>
206
207                         <dependency>
208                                 <groupId>org.onap.aaf.authz.misc</groupId>
209                                 <artifactId>aaf-misc-env</artifactId>
210                                 <version>${project.miscVersion}</version>
211                         </dependency>
212
213                         <dependency>
214                                 <groupId>org.onap.aaf.authz.misc</groupId>
215                                 <artifactId>aaf-misc-rosetta</artifactId>
216                                 <version>${project.miscVersion}</version>
217                         </dependency>
218
219                         <dependency>
220                                 <groupId>org.onap.aaf.authz.misc</groupId>
221                                 <artifactId>aaf-misc-log4j</artifactId>
222                                 <version>${project.miscVersion}</version>
223                         </dependency>
224
225                         <dependency>
226                                 <groupId>org.eclipse.jetty</groupId>
227                                 <artifactId>jetty-servlet</artifactId>
228                                 <version>${project.jettyVersion}</version>
229                         </dependency>
230                         
231                         <dependency>
232                                 <groupId>org.eclipse.jetty</groupId>
233                                 <artifactId>jetty-io</artifactId>
234                                 <version>${project.jettyVersion}</version>
235                         </dependency>
236         
237                         <dependency>
238                                 <groupId>org.eclipse.jetty</groupId>
239                                 <artifactId>jetty-security</artifactId>
240                                 <version>${project.jettyVersion}</version>
241                         </dependency>
242         
243                         <dependency>
244                                 <groupId>org.eclipse.jetty</groupId>
245                                 <artifactId>jetty-http</artifactId>
246                                 <version>${project.jettyVersion}</version>
247                         </dependency>
248         
249                         <dependency>
250                                 <groupId>org.eclipse.jetty</groupId>
251                                 <artifactId>jetty-util</artifactId>
252                                 <version>${project.jettyVersion}</version>
253                         </dependency>
254         
255                         <dependency>
256                                 <groupId>org.eclipse.jetty</groupId>
257                                 <artifactId>jetty-server</artifactId>
258                                 <version>${project.jettyVersion}</version>
259                         </dependency>
260
261                         <dependency>
262                             <groupId>javax.servlet</groupId>
263                             <artifactId>servlet-api</artifactId>
264                                 <version>2.5</version>
265                         </dependency>
266                         
267                         <dependency>
268                                 <groupId>org.slf4j</groupId>
269                                 <artifactId>slf4j-api</artifactId>
270                                 <version>1.7.5</version>
271                         </dependency>
272                 </dependencies>
273         </dependencyManagement>
274
275         <!-- ============================================================== -->
276         <!-- Define common plugins and make them available for all modules -->
277         <!-- ============================================================== -->
278         <build>
279                 <testSourceDirectory>src/test/java</testSourceDirectory>
280                 <plugins>
281                 </plugins>
282                 <pluginManagement>                      
283                         <plugins>
284                                 <plugin>
285                                         <inherited>true</inherited>
286                                         <groupId>org.apache.maven.plugins</groupId>
287                                         <artifactId>maven-compiler-plugin</artifactId>
288                                         <version>2.3.2</version>
289                                         <configuration>
290                                                 <source>1.7</source>
291                                                 <target>1.7</target>
292                                         </configuration>
293                                 </plugin>
294         
295                                 <plugin>
296                                         <groupId>org.apache.maven.plugins</groupId>
297                                         <version>2.4</version>
298                                         <artifactId>maven-jar-plugin</artifactId>
299                                         <configuration>
300                                                 <outputDirectory>target</outputDirectory>
301                                                 <archive>
302                                                         <manifestEntries>
303                                                                 <Sealed>true</Sealed>
304                                                         </manifestEntries>
305                                                 </archive>
306                                         </configuration>
307                                 </plugin>
308
309                                 <!-- Define the javadoc plugin -->
310                                 <plugin>
311                                         <groupId>org.apache.maven.plugins</groupId>
312                                         <artifactId>maven-javadoc-plugin</artifactId>
313                                         <version>2.10</version>
314                                         <configuration>
315                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
316                                         </configuration>
317                                 </plugin>
318         
319                                 <plugin>
320                                         <artifactId>maven-release-plugin</artifactId>
321                                         <version>2.5.2</version>
322                                         <configuration>
323                                                 <goals>-s ${mvn.settings} deploy</goals>
324                                         </configuration>
325                                 </plugin>
326         
327                                 <plugin>
328                                         <artifactId>maven-assembly-plugin</artifactId>
329                                         <version>2.5.5</version>
330                                 </plugin>
331         
332                                 <plugin>
333                                         <groupId>org.apache.maven.plugins</groupId>
334                                         <artifactId>maven-deploy-plugin</artifactId>
335                                         <version>2.8.1</version>
336                                         <configuration>
337                                                 <skip>false</skip>
338                                         </configuration>
339         
340                                 </plugin>
341         
342                                 <plugin>
343                                         <groupId>org.apache.maven.plugins</groupId>
344                                         <artifactId>maven-dependency-plugin</artifactId>
345                                         <version>2.10</version>
346                                 </plugin>
347         
348                                 <!-- Maven surefire plugin for testing -->
349                                 <plugin>
350                                         <artifactId>maven-surefire-plugin</artifactId>
351                                         <version>2.17</version>
352                                         <configuration>
353                                         </configuration>
354                                 </plugin>
355                                 
356                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
357                                         only. It has no influence on the Maven build itself. -->
358                                 <plugin>
359                                         <groupId>org.eclipse.m2e</groupId>
360                                         <artifactId>lifecycle-mapping</artifactId>
361                                         <version>1.0.0</version>
362                                         <configuration>
363                                                 <lifecycleMappingMetadata>
364                                                         <pluginExecutions>
365                                                                 <pluginExecution>
366                                                                         <pluginExecutionFilter>
367                                                                                 <groupId>
368                                                                                         org.codehaus.mojo
369                                                                                 </groupId>
370                                                                                 <artifactId>
371                                                                                         jaxb2-maven-plugin
372                                                                                 </artifactId>
373                                                                                 <versionRange>
374                                                                                         [1.3,)
375                                                                                 </versionRange>
376                                                                                 <goals>
377                                                                                         <goal>xjc</goal>
378                                                                                 </goals>
379                                                                         </pluginExecutionFilter>
380                                                                         <action>
381                                                                                 <ignore />
382                                                                         </action>
383                                                                 </pluginExecution>
384                                                         </pluginExecutions>
385                                                 </lifecycleMappingMetadata>
386                                         </configuration>
387                                 </plugin>
388                                                                 <plugin>
389                                 <groupId>org.sonatype.plugins</groupId>
390                                 <artifactId>nexus-staging-maven-plugin</artifactId>
391                                 <version>1.6.7</version>
392                                 <extensions>true</extensions>
393                                 <configuration>
394                                         <nexusUrl>${nexusproxy}</nexusUrl>
395                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
396                                         <serverId>ecomp-staging</serverId>
397                                 </configuration>
398                         </plugin>               
399                         <plugin>
400           <groupId>org.jacoco</groupId>
401           <artifactId>jacoco-maven-plugin</artifactId>
402           <version>${jacoco.version}</version>
403           <configuration>
404             <excludes>
405               <exclude>**/gen/**</exclude>
406               <exclude>**/generated-sources/**</exclude>
407               <exclude>**/yang-gen/**</exclude>
408               <exclude>**/pax/**</exclude>
409             </excludes>
410           </configuration>
411           <executions>
412
413             <execution>
414               <id>pre-unit-test</id>
415               <goals>
416                 <goal>prepare-agent</goal>
417               </goals>
418               <configuration>
419                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
420                 <propertyName>surefireArgLine</propertyName>
421               </configuration>
422             </execution>
423             
424        
425             <execution>
426               <id>post-unit-test</id>
427               <phase>test</phase>
428               <goals>
429                 <goal>report</goal>
430               </goals>
431               <configuration>
432                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
433                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
434               </configuration>
435             </execution>
436             <execution>
437               <id>pre-integration-test</id>
438               <phase>pre-integration-test</phase>
439               <goals>
440                 <goal>prepare-agent</goal>
441               </goals>
442               <configuration>
443                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
444
445                 <propertyName>failsafeArgLine</propertyName>
446               </configuration>
447             </execution>
448
449        
450             <execution>
451               <id>post-integration-test</id>
452               <phase>post-integration-test</phase>
453               <goals>
454                 <goal>report</goal>
455               </goals>
456               <configuration>
457                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
458                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
459               </configuration>
460             </execution>
461           </executions>
462         </plugin>
463                         </plugins>
464                 </pluginManagement>                     
465         </build>
466
467
468         <distributionManagement>
469                 <repository>
470                         <id>ecomp-releases</id>
471                         <name>AAF Release Repository</name>
472                         <url>${nexusproxy}${releaseNexusPath}</url>
473                 </repository>
474                 <snapshotRepository>
475                         <id>ecomp-snapshots</id>
476                         <name>AAF Snapshot Repository</name>
477                         <url>${nexusproxy}${snapshotNexusPath}</url>
478                 </snapshotRepository>
479                 <site>
480                         <id>ecomp-site</id>
481                         <url>dav:${nexusproxy}${sitePath}</url>
482                 </site>
483         </distributionManagement>
484         
485 </project>