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