Adding oparent to modules
[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         <parent>
25     <groupId>org.onap.aaf.authz</groupId>
26     <artifactId>super-pom</artifactId>
27     <version>2.1.0-SNAPSHOT</version>
28     </parent>
29         <groupId>org.onap.aaf.authz.cadi</groupId>
30         <artifactId>parent</artifactId>
31         <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
32         <version>2.1.0-SNAPSHOT</version>
33         <inceptionYear>2015-07-20</inceptionYear>
34         <organization>
35                 <name>ONAP</name>
36         </organization>
37         <packaging>pom</packaging>
38
39         
40         <properties>
41                 <skipSigning>true</skipSigning>
42                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43                 <project.miscVersion>2.1.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.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
53             <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
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/cadi/${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>oauth-enduser</module>
140                 <module>shiro</module>
141         </modules>
142
143         <!-- ============================================================== -->
144         <!-- Define project-wide dependencies -->
145         <!-- ============================================================== -->
146         <dependencyManagement>
147                 <dependencies>
148                         <dependency>
149                                 <groupId>org.onap.aaf.authz.auth</groupId>
150                                 <artifactId>aaf-auth-client</artifactId>
151                                 <version>${project.authClientVersion}</version>
152                         </dependency>
153
154                         <dependency>
155                                 <groupId>org.onap.aaf.authz.cadi</groupId>
156                                 <artifactId>aaf-cadi-core</artifactId>
157                                 <version>${project.version}</version>
158                         </dependency>
159
160                         <dependency>
161                                 <groupId>org.onap.aaf.authz.cadi</groupId>
162                                 <artifactId>aaf-cadi-oauth</artifactId>
163                                 <version>${project.version}</version>
164                         </dependency>
165
166
167                         <!-- Prevent Cycles in Testing  -->
168                         <dependency>
169                                 <groupId>org.onap.aaf.authz.cadi</groupId>
170                                 <artifactId>aaf-cadi-core</artifactId>
171                                 <version>${project.version}</version>
172                                 <classifier>tests</classifier>
173                         </dependency>
174
175                         <dependency>
176                                 <groupId>org.onap.aaf.authz.cadi</groupId>
177                                 <artifactId>aaf-cadi-jetty</artifactId>
178                                 <version>${project.version}</version>
179                         </dependency>
180
181                         <dependency>
182                                 <groupId>org.onap.aaf.authz.cadi</groupId>
183                                 <artifactId>aaf-cadi-cass</artifactId>
184                                 <version>${project.version}</version>
185                         </dependency>
186
187                         <dependency>
188                                 <groupId>org.onap.aaf.authz.cadi</groupId>
189                                 <artifactId>aaf-cadi-aaf</artifactId>
190                                 <version>${project.version}</version>
191                         </dependency>
192
193                         <dependency>
194                                 <groupId>org.onap.aaf.authz.cadi</groupId>
195                                 <artifactId>aaf-cadi-aaf</artifactId>
196                                 <version>${project.version}</version>
197                                 <classifier>full</classifier>
198                         </dependency>
199
200                         <dependency>
201                                 <groupId>org.onap.aaf.authz.cadi</groupId>
202                                 <artifactId>aaf-cadi-client</artifactId>
203                                 <version>${project.version}</version>
204                         </dependency>
205
206                         <dependency>
207                                 <groupId>org.onap.aaf.authz.misc</groupId>
208                                 <artifactId>aaf-misc-env</artifactId>
209                                 <version>${project.miscVersion}</version>
210                         </dependency>
211
212                         <dependency>
213                                 <groupId>org.onap.aaf.authz.misc</groupId>
214                                 <artifactId>aaf-misc-rosetta</artifactId>
215                                 <version>${project.miscVersion}</version>
216                         </dependency>
217
218                         <dependency>
219                                 <groupId>org.onap.aaf.authz.misc</groupId>
220                                 <artifactId>aaf-misc-log4j</artifactId>
221                                 <version>${project.miscVersion}</version>
222                         </dependency>
223
224                         <dependency>
225                                 <groupId>org.eclipse.jetty</groupId>
226                                 <artifactId>jetty-servlet</artifactId>
227                                 <version>${project.jettyVersion}</version>
228                         </dependency>
229
230                         <dependency>
231                                 <groupId>org.eclipse.jetty</groupId>
232                                 <artifactId>jetty-io</artifactId>
233                                 <version>${project.jettyVersion}</version>
234                         </dependency>
235
236                         <dependency>
237                                 <groupId>org.eclipse.jetty</groupId>
238                                 <artifactId>jetty-security</artifactId>
239                                 <version>${project.jettyVersion}</version>
240                         </dependency>
241
242                         <dependency>
243                                 <groupId>org.eclipse.jetty</groupId>
244                                 <artifactId>jetty-http</artifactId>
245                                 <version>${project.jettyVersion}</version>
246                         </dependency>
247
248                         <dependency>
249                                 <groupId>org.eclipse.jetty</groupId>
250                                 <artifactId>jetty-util</artifactId>
251                                 <version>${project.jettyVersion}</version>
252                         </dependency>
253
254                         <dependency>
255                                 <groupId>org.eclipse.jetty</groupId>
256                                 <artifactId>jetty-server</artifactId>
257                                 <version>${project.jettyVersion}</version>
258                         </dependency>
259
260                         <dependency>
261                             <groupId>javax.servlet</groupId>
262                             <artifactId>javax.servlet-api</artifactId>
263                                 <version>3.0.1</version>
264                         </dependency>
265
266                         <dependency>
267                                 <groupId>org.slf4j</groupId>
268                                 <artifactId>slf4j-api</artifactId>
269                                 <version>1.7.5</version>
270                         </dependency>
271                 </dependencies>
272         </dependencyManagement>
273
274         <!-- ============================================================== -->
275         <!-- Define common plugins and make them available for all modules -->
276         <!-- ============================================================== -->
277         <build>
278                 <testSourceDirectory>src/test/java</testSourceDirectory>
279                 <plugins>
280                 </plugins>
281                 <pluginManagement>
282                         <plugins>
283                                 <plugin>
284                                         <inherited>true</inherited>
285                                         <groupId>org.apache.maven.plugins</groupId>
286                                         <artifactId>maven-compiler-plugin</artifactId>
287                                         <version>2.3.2</version>
288                                         <configuration>
289                                                 <source>1.7</source>
290                                                 <target>1.7</target>
291                                         </configuration>
292                                 </plugin>
293
294                                 <plugin>
295                                         <groupId>org.apache.maven.plugins</groupId>
296                                         <version>2.4</version>
297                                         <artifactId>maven-jar-plugin</artifactId>
298                                         <configuration>
299                                                 <outputDirectory>target</outputDirectory>
300                                                 <archive>
301                                                         <manifestEntries>
302                                                                 <Sealed>true</Sealed>
303                                                         </manifestEntries>
304                                                 </archive>
305                                         </configuration>
306                                 </plugin>
307
308                                 <!-- Define the javadoc plugin -->
309                                 <plugin>
310                                         <groupId>org.apache.maven.plugins</groupId>
311                                         <artifactId>maven-javadoc-plugin</artifactId>
312                                         <version>2.10</version>
313                                         <configuration>
314                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
315                                         </configuration>
316                                 </plugin>
317
318                                 <plugin>
319                                         <artifactId>maven-release-plugin</artifactId>
320                                         <version>2.5.2</version>
321                                         <configuration>
322                                                 <goals>-s ${mvn.settings} deploy</goals>
323                                         </configuration>
324                                 </plugin>
325
326                                 <plugin>
327                                         <artifactId>maven-assembly-plugin</artifactId>
328                                         <version>2.5.5</version>
329                                 </plugin>
330
331                                 <plugin>
332                                         <groupId>org.apache.maven.plugins</groupId>
333                                         <artifactId>maven-deploy-plugin</artifactId>
334                                         <version>2.8.1</version>
335                                         <configuration>
336                                                 <skip>false</skip>
337                                         </configuration>
338
339                                 </plugin>
340
341                                 <plugin>
342                                         <groupId>org.apache.maven.plugins</groupId>
343                                         <artifactId>maven-dependency-plugin</artifactId>
344                                         <version>2.10</version>
345                                 </plugin>
346
347                                 <!-- Maven surefire plugin for testing -->
348                                 <plugin>
349                                         <artifactId>maven-surefire-plugin</artifactId>
350                                         <version>2.17</version>
351                                         <configuration>
352                                                 <skipTests>false</skipTests>
353                                                 <includes>
354                                                         <include>**/JU*.java</include>
355                                                 </includes>
356                                                 <excludes>
357                                                 </excludes>
358                                         </configuration>
359                                 </plugin>
360
361                                 <!--This plugin's configuration is used to store Eclipse m2e settings
362                                         only. It has no influence on the Maven build itself. -->
363                                 <plugin>
364                                         <groupId>org.eclipse.m2e</groupId>
365                                         <artifactId>lifecycle-mapping</artifactId>
366                                         <version>1.0.0</version>
367                                         <configuration>
368                                                 <lifecycleMappingMetadata>
369                                                         <pluginExecutions>
370                                                                 <pluginExecution>
371                                                                         <pluginExecutionFilter>
372                                                                                 <groupId>
373                                                                                         org.codehaus.mojo
374                                                                                 </groupId>
375                                                                                 <artifactId>
376                                                                                         jaxb2-maven-plugin
377                                                                                 </artifactId>
378                                                                                 <versionRange>
379                                                                                         [1.3,)
380                                                                                 </versionRange>
381                                                                                 <goals>
382                                                                                         <goal>xjc</goal>
383                                                                                 </goals>
384                                                                         </pluginExecutionFilter>
385                                                                         <action>
386                                                                                 <ignore />
387                                                                         </action>
388                                                                 </pluginExecution>
389                                                         </pluginExecutions>
390                                                 </lifecycleMappingMetadata>
391                                         </configuration>
392                                 </plugin>
393                                 <plugin>
394                                         <groupId>org.sonatype.plugins</groupId>
395                                         <artifactId>nexus-staging-maven-plugin</artifactId>
396                                         <version>1.6.7</version>
397                                         <extensions>true</extensions>
398                                         <configuration>
399                                                 <nexusUrl>${nexusproxy}</nexusUrl>
400                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
401                                                 <serverId>ecomp-staging</serverId>
402                                         </configuration>
403                                 </plugin>
404                                 <plugin>
405                                         <groupId>org.jacoco</groupId>
406                                         <artifactId>jacoco-maven-plugin</artifactId>
407                                         <version>${jacoco.version}</version>
408                                         <configuration>
409                                                 <excludes>
410                                                         <exclude>**/gen/**</exclude>
411                                                         <exclude>**/generated-sources/**</exclude>
412                                                         <exclude>**/yang-gen/**</exclude>
413                                                         <exclude>**/pax/**</exclude>
414                                                 </excludes>
415                                         </configuration>
416                                         <executions>
417                                                 <execution>
418                                                         <id>pre-unit-test</id>
419                                                         <goals>
420                                                                 <goal>prepare-agent</goal>
421                                                         </goals>
422                                                         <configuration>
423                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
424                                                                 <propertyName>surefireArgLine</propertyName>
425                                                         </configuration>
426                                                 </execution>
427                                                 <execution>
428                                                         <id>post-unit-test</id>
429                                                         <phase>test</phase>
430                                                         <goals>
431                                                                 <goal>report</goal>
432                                                         </goals>
433                                                         <configuration>
434                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
435                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
436                                                         </configuration>
437                                                 </execution>
438                                                 <execution>
439                                                         <id>pre-integration-test</id>
440                                                         <phase>pre-integration-test</phase>
441                                                         <goals>
442                                                                 <goal>prepare-agent</goal>
443                                                         </goals>
444                                                         <configuration>
445                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
446                                                                 <propertyName>failsafeArgLine</propertyName>
447                                                         </configuration>
448                                                 </execution>
449                                                 <execution>
450                                                         <id>post-integration-test</id>
451                                                         <phase>post-integration-test</phase>
452                                                         <goals>
453                                                                 <goal>report</goal>
454                                                         </goals>
455                                                         <configuration>
456                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
457                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
458                                                         </configuration>
459                                                 </execution>
460                                         </executions>
461                                 </plugin>
462                         </plugins>
463                 </pluginManagement>
464         </build>
465
466         <distributionManagement>
467                 <repository>
468                         <id>ecomp-releases</id>
469                         <name>AAF Release Repository</name>
470                         <url>${nexusproxy}${releaseNexusPath}</url>
471                 </repository>
472                 <snapshotRepository>
473                         <id>ecomp-snapshots</id>
474                         <name>AAF Snapshot Repository</name>
475                         <url>${nexusproxy}${snapshotNexusPath}</url>
476                 </snapshotRepository>
477                 <site>
478                         <id>ecomp-site</id>
479                         <url>dav:${nexusproxy}${sitePath}</url>
480                 </site>
481         </distributionManagement>
482
483 </project>