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