Include all modules in AAF parent
[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>parent</artifactId>
27     <version>2.1.0-SNAPSHOT</version>
28     </parent>
29         <groupId>org.onap.aaf.authz</groupId>
30         <artifactId>cadiparent</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.jettyVersion>9.3.9.v20160517</project.jettyVersion>
44                 <powermock.version>1.5.1</powermock.version>
45                 <!--  SONAR  -->
46                  <jacoco.version>0.7.7.201606060606</jacoco.version>
47             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
48             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
49             <!-- Default Sonar configuration -->
50             <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
51             <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
52             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
53             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
54                 <nexusproxy>https://nexus.onap.org</nexusproxy>
55                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
56                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
57                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
58                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
59         </properties>
60
61         <!-- ============================================================== -->
62         <!-- Define the major contributors and developers of CADI -->
63         <!-- ============================================================== -->
64         <developers>
65                 <developer>
66                         <name>Jonathan Gathman</name>
67                         <email>jonathan.gathman@att.com</email>
68                         <organization>ATT</organization>
69                         <roles>
70                                 <role>Architect</role>
71                                 <role>Lead Developer</role>
72                         </roles>
73                 </developer>
74                 <developer>
75                         <name>Gabe Maurer</name>
76                         <email>gabe.maurer@att.com</email>
77                         <organization>ATT</organization>
78                         <roles>
79                                 <role>Developer</role>
80                         </roles>
81                 </developer>
82                 <developer>
83                         <name>Ian Howell</name>
84                         <email>ian.howell@att.com</email>
85                         <organization>ATT</organization>
86                         <roles>
87                                 <role>Developer</role>
88                         </roles>
89                 </developer>
90                 <developer>
91                         <name>Sai Gandham</name>
92                         <email>sai.gandham@att.com</email>
93                         <organization>ATT</organization>
94                         <roles>
95                                 <role>Developer</role>
96                         </roles>
97                 </developer>
98         </developers>
99
100
101         <dependencies>
102                 <dependency>
103                         <groupId>org.mockito</groupId>
104                         <artifactId>mockito-all</artifactId>
105                         <version>1.9.5</version>
106                         <scope>test</scope>
107                 </dependency>
108
109                 <dependency>
110                         <groupId>org.powermock</groupId>
111                         <artifactId>powermock-module-junit4</artifactId>
112                         <version>${powermock.version}</version>
113                         <scope>test</scope>
114                 </dependency>
115                 <dependency>
116                         <groupId>org.powermock</groupId>
117                         <artifactId>powermock-api-mockito</artifactId>
118                         <version>${powermock.version}</version>
119                         <scope>test</scope>
120                 </dependency>
121
122                 <dependency>
123                         <groupId>junit</groupId>
124                         <artifactId>junit</artifactId>
125                         <version>4.10</version>
126                         <scope>test</scope>
127                 </dependency>
128         </dependencies>
129
130         <!-- ============================================================== -->
131         <!-- Define sub-projects (modules) -->
132         <!-- ============================================================== -->
133         <modules>
134                 <module>core</module>
135                 <module>client</module>
136                 <module>aaf</module>
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</groupId>
148                                 <artifactId>aaf-auth-client</artifactId>
149                                 <version>${project.version}</version>
150                         </dependency>
151
152                         <dependency>
153                                 <groupId>org.onap.aaf.authz</groupId>
154                                 <artifactId>aaf-cadi-core</artifactId>
155                                 <version>${project.version}</version>
156                         </dependency>
157
158                         <dependency>
159                                 <groupId>org.onap.aaf.authz</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</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</groupId>
175                                 <artifactId>aaf-cadi-jetty</artifactId>
176                                 <version>${project.version}</version>
177                         </dependency>
178
179                         <dependency>
180                                 <groupId>org.onap.aaf.authz</groupId>
181                                 <artifactId>aaf-cadi-cass</artifactId>
182                                 <version>${project.version}</version>
183                         </dependency>
184
185                         <dependency>
186                                 <groupId>org.onap.aaf.authz</groupId>
187                                 <artifactId>aaf-cadi-aaf</artifactId>
188                                 <version>${project.version}</version>
189                         </dependency>
190
191                         <dependency>
192                                 <groupId>org.onap.aaf.authz</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</groupId>
200                                 <artifactId>aaf-cadi-client</artifactId>
201                                 <version>${project.version}</version>
202                         </dependency>
203
204                         <dependency>
205                                 <groupId>org.onap.aaf.authz</groupId>
206                                 <artifactId>aaf-misc-env</artifactId>
207                                 <version>${project.version}</version>
208                         </dependency>
209
210                         <dependency>
211                                 <groupId>org.onap.aaf.authz</groupId>
212                                 <artifactId>aaf-misc-rosetta</artifactId>
213                                 <version>${project.version}</version>
214                         </dependency>
215
216                         <dependency>
217                                 <groupId>org.onap.aaf.authz</groupId>
218                                 <artifactId>aaf-misc-log4j</artifactId>
219                                 <version>${project.version}</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>javax.servlet-api</artifactId>
261                                 <version>3.0.1</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>false</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                                                 <skipTests>false</skipTests>
351                                                 <includes>
352                                                         <include>**/JU*.java</include>
353                                                 </includes>
354                                                 <excludes>
355                                                 </excludes>
356                                         </configuration>
357                                 </plugin>
358
359                                 <!--This plugin's configuration is used to store Eclipse m2e settings
360                                         only. It has no influence on the Maven build itself. -->
361                                 <plugin>
362                                         <groupId>org.eclipse.m2e</groupId>
363                                         <artifactId>lifecycle-mapping</artifactId>
364                                         <version>1.0.0</version>
365                                         <configuration>
366                                                 <lifecycleMappingMetadata>
367                                                         <pluginExecutions>
368                                                                 <pluginExecution>
369                                                                         <pluginExecutionFilter>
370                                                                                 <groupId>
371                                                                                         org.codehaus.mojo
372                                                                                 </groupId>
373                                                                                 <artifactId>
374                                                                                         jaxb2-maven-plugin
375                                                                                 </artifactId>
376                                                                                 <versionRange>
377                                                                                         [1.3,)
378                                                                                 </versionRange>
379                                                                                 <goals>
380                                                                                         <goal>xjc</goal>
381                                                                                 </goals>
382                                                                         </pluginExecutionFilter>
383                                                                         <action>
384                                                                                 <ignore />
385                                                                         </action>
386                                                                 </pluginExecution>
387                                                         </pluginExecutions>
388                                                 </lifecycleMappingMetadata>
389                                         </configuration>
390                                 </plugin>
391                                 <plugin>
392                                         <groupId>org.sonatype.plugins</groupId>
393                                         <artifactId>nexus-staging-maven-plugin</artifactId>
394                                         <version>1.6.7</version>
395                                         <extensions>true</extensions>
396                                         <configuration>
397                                                 <nexusUrl>${nexusproxy}</nexusUrl>
398                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
399                                                 <serverId>ecomp-staging</serverId>
400                                         </configuration>
401                                 </plugin>
402                                 <plugin>
403                                         <groupId>org.jacoco</groupId>
404                                         <artifactId>jacoco-maven-plugin</artifactId>
405                                         <version>${jacoco.version}</version>
406                                         <configuration>
407                                                 <excludes>
408                                                         <exclude>**/gen/**</exclude>
409                                                         <exclude>**/generated-sources/**</exclude>
410                                                         <exclude>**/yang-gen/**</exclude>
411                                                         <exclude>**/pax/**</exclude>
412                                                 </excludes>
413                                         </configuration>
414                                         <executions>
415                                                 <execution>
416                                                         <id>pre-unit-test</id>
417                                                         <goals>
418                                                                 <goal>prepare-agent</goal>
419                                                         </goals>
420                                                         <configuration>
421                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
422                                                                 <propertyName>surefireArgLine</propertyName>
423                                                         </configuration>
424                                                 </execution>
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                                                                 <propertyName>failsafeArgLine</propertyName>
445                                                         </configuration>
446                                                 </execution>
447                                                 <execution>
448                                                         <id>post-integration-test</id>
449                                                         <phase>post-integration-test</phase>
450                                                         <goals>
451                                                                 <goal>report</goal>
452                                                         </goals>
453                                                         <configuration>
454                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
455                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
456                                                         </configuration>
457                                                 </execution>
458                                         </executions>
459                                 </plugin>
460                         </plugins>
461                 </pluginManagement>
462         </build>
463
464         <distributionManagement>
465                 <repository>
466                         <id>ecomp-releases</id>
467                         <name>AAF Release Repository</name>
468                         <url>${nexusproxy}${releaseNexusPath}</url>
469                 </repository>
470                 <snapshotRepository>
471                         <id>ecomp-snapshots</id>
472                         <name>AAF Snapshot Repository</name>
473                         <url>${nexusproxy}${snapshotNexusPath}</url>
474                 </snapshotRepository>
475                 <site>
476                         <id>ecomp-site</id>
477                         <url>dav:${nexusproxy}${sitePath}</url>
478                 </site>
479         </distributionManagement>
480
481 </project>