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