blob: d196eba333f170fd44d71bccbe21ae1ffc6e6104 [file] [log] [blame]
Sai Gandhama7f4def2018-07-02 22:37:37 -05001<?xml version="1.0" encoding="UTF-8"?>
sg481n4a51a8f2017-08-03 17:39:12 -04002<!--
Sai Gandhama7f4def2018-07-02 22:37:37 -05003 * ============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 *
sg481n4a51a8f2017-08-03 17:39:12 -040021-->
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +010022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
sg481n4a51a8f2017-08-03 17:39:12 -040024 <modelVersion>4.0.0</modelVersion>
sg481n62c4eb42017-08-25 01:57:24 -040025 <groupId>org.onap.aaf.cadi</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -050026 <artifactId>cadimiscparent</artifactId>
27 <version>2.1.2-SNAPSHOT</version>
Gildas Lanilisa3532682018-09-05 17:34:34 -070028 <name>aaf-cadi</name>
sg481n4a51a8f2017-08-03 17:39:12 -040029 <packaging>pom</packaging>
Sai Gandhama7f4def2018-07-02 22:37:37 -050030
31 <parent>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
Gary Wu3dabe932018-08-24 15:13:38 -070034 <version>1.2.0</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -050035 </parent>
Gary Wu3dabe932018-08-24 15:13:38 -070036
sg481n4a51a8f2017-08-03 17:39:12 -040037 <properties>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +010038 <!-- This version needs to be RELEASED version. Fails on SNAPSHOT -->
Sai Gandhamffe43232018-10-04 16:16:50 -050039 <cadi.version>2.1.2</cadi.version>
Sai Gandhama7f4def2018-07-02 22:37:37 -050040 <!-- <sonar.skip>true</sonar.skip> -->
sg481n4a51a8f2017-08-03 17:39:12 -040041 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Sai Gandhama7f4def2018-07-02 22:37:37 -050042 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
43 <powermock.version>1.5.1</powermock.version>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +010044 <!-- SONAR -->
45 <jacoco.version>0.7.7.201606060606</jacoco.version>
46 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
47 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48 <!-- Default Sonar configuration -->
49 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
50 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
51 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
52 below -->
53 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
sg481n62c4eb42017-08-25 01:57:24 -040054 <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/cadi/${project.artifactId}/${project.version}</sitePath>
sg481n4a51a8f2017-08-03 17:39:12 -040059 </properties>
Sai Gandhama7f4def2018-07-02 22:37:37 -050060
sg481n4a51a8f2017-08-03 17:39:12 -040061 <!-- ============================================================== -->
62 <!-- Define the major contributors and developers of CADI -->
63 <!-- ============================================================== -->
Sai Gandhama7f4def2018-07-02 22:37:37 -050064 <developers>
65 <developer>
sg481n4a51a8f2017-08-03 17:39:12 -040066 <name>Jonathan Gathman</name>
Sai Gandhama7f4def2018-07-02 22:37:37 -050067 <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
sg481n4a51a8f2017-08-03 17:39:12 -0400100
101 <dependencies>
102 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500103 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400123 <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>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500134 <module>shiro</module>
135 <module>shiro-osgi-bundle</module>
Ravi Geda6c3031e2018-09-17 12:57:44 +0100136 <module>sidecar</module>
sg481n4a51a8f2017-08-03 17:39:12 -0400137 </modules>
138
139 <!-- ============================================================== -->
140 <!-- Define project-wide dependencies -->
141 <!-- ============================================================== -->
142 <dependencyManagement>
143 <dependencies>
sg481n7bc6ef22017-10-01 19:47:49 +0000144 <dependency>
sg481n62c4eb42017-08-25 01:57:24 -0400145 <groupId>org.onap.aaf.authz</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500146 <artifactId>aaf-auth-client</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500147 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400148 </dependency>
149
150 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500151 <groupId>org.onap.aaf.authz</groupId>
152 <artifactId>aaf-cadi-core</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500153 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500154 </dependency>
155
156 <dependency>
157 <groupId>org.onap.aaf.authz</groupId>
158 <artifactId>aaf-cadi-oauth</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500159 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500160 </dependency>
161
162
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100163 <!-- Prevent Cycles in Testing -->
Sai Gandhama7f4def2018-07-02 22:37:37 -0500164 <dependency>
165 <groupId>org.onap.aaf.authz</groupId>
166 <artifactId>aaf-cadi-core</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500167 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400168 <classifier>tests</classifier>
169 </dependency>
170
171 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500172 <groupId>org.onap.aaf.authz</groupId>
173 <artifactId>aaf-cadi-jetty</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500174 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400175 </dependency>
176
177 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500178 <groupId>org.onap.aaf.authz</groupId>
179 <artifactId>aaf-cadi-cass</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500180 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500181 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400182
Sai Gandhama7f4def2018-07-02 22:37:37 -0500183 <dependency>
184 <groupId>org.onap.aaf.authz</groupId>
185 <artifactId>aaf-cadi-aaf</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500186 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500187 </dependency>
188
189 <dependency>
190 <groupId>org.onap.aaf.authz</groupId>
191 <artifactId>aaf-cadi-aaf</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500192 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400193 <classifier>full</classifier>
194 </dependency>
195
196 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500197 <groupId>org.onap.aaf.authz</groupId>
198 <artifactId>aaf-cadi-client</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500199 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400200 </dependency>
201
202 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500203 <groupId>org.onap.aaf.authz</groupId>
204 <artifactId>aaf-misc-env</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500205 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400206 </dependency>
207
208 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500209 <groupId>org.onap.aaf.authz</groupId>
210 <artifactId>aaf-misc-rosetta</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500211 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400212 </dependency>
213
214 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500215 <groupId>org.onap.aaf.authz</groupId>
216 <artifactId>aaf-misc-log4j</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500217 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400218 </dependency>
219
220 <dependency>
221 <groupId>org.eclipse.jetty</groupId>
222 <artifactId>jetty-servlet</artifactId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500223 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400224 </dependency>
225
226 <dependency>
227 <groupId>org.eclipse.jetty</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500228 <artifactId>jetty-io</artifactId>
229 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400230 </dependency>
231
232 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500233 <groupId>org.eclipse.jetty</groupId>
234 <artifactId>jetty-security</artifactId>
235 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400236 </dependency>
237
238 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500239 <groupId>org.eclipse.jetty</groupId>
240 <artifactId>jetty-http</artifactId>
241 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400242 </dependency>
243
244 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500245 <groupId>org.eclipse.jetty</groupId>
246 <artifactId>jetty-util</artifactId>
247 <version>${project.jettyVersion}</version>
248 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400249
Sai Gandhama7f4def2018-07-02 22:37:37 -0500250 <dependency>
251 <groupId>org.eclipse.jetty</groupId>
252 <artifactId>jetty-server</artifactId>
253 <version>${project.jettyVersion}</version>
254 </dependency>
255
256 <dependency>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100257 <groupId>javax.servlet</groupId>
258 <artifactId>javax.servlet-api</artifactId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500259 <version>3.0.1</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400260 </dependency>
261
262 <dependency>
263 <groupId>org.slf4j</groupId>
264 <artifactId>slf4j-api</artifactId>
265 <version>1.7.5</version>
266 </dependency>
267 </dependencies>
268 </dependencyManagement>
269
270 <!-- ============================================================== -->
271 <!-- Define common plugins and make them available for all modules -->
272 <!-- ============================================================== -->
273 <build>
274 <testSourceDirectory>src/test/java</testSourceDirectory>
275 <plugins>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500276 </plugins>
277 <pluginManagement>
278 <plugins>
sg481n4a51a8f2017-08-03 17:39:12 -0400279 <plugin>
280 <inherited>true</inherited>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-compiler-plugin</artifactId>
283 <version>2.3.2</version>
284 <configuration>
285 <source>1.7</source>
286 <target>1.7</target>
287 </configuration>
288 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500289
sg481n4a51a8f2017-08-03 17:39:12 -0400290 <plugin>
291 <groupId>org.apache.maven.plugins</groupId>
292 <version>2.4</version>
293 <artifactId>maven-jar-plugin</artifactId>
294 <configuration>
295 <outputDirectory>target</outputDirectory>
296 <archive>
297 <manifestEntries>
298 <Sealed>true</Sealed>
299 </manifestEntries>
300 </archive>
301 </configuration>
302 </plugin>
sg481n4a51a8f2017-08-03 17:39:12 -0400303
Sai Gandhama7f4def2018-07-02 22:37:37 -0500304 <!-- Define the javadoc plugin -->
sg481n4a51a8f2017-08-03 17:39:12 -0400305 <plugin>
306 <groupId>org.apache.maven.plugins</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500307 <artifactId>maven-javadoc-plugin</artifactId>
308 <version>2.10</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400309 <configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500310 <excludePackageNames>org.opendaylight.*</excludePackageNames>
sg481n4a51a8f2017-08-03 17:39:12 -0400311 </configuration>
312 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500313
sg481n4a51a8f2017-08-03 17:39:12 -0400314 <plugin>
315 <artifactId>maven-release-plugin</artifactId>
316 <version>2.5.2</version>
317 <configuration>
318 <goals>-s ${mvn.settings} deploy</goals>
319 </configuration>
320 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500321
sg481n4a51a8f2017-08-03 17:39:12 -0400322 <plugin>
323 <artifactId>maven-assembly-plugin</artifactId>
324 <version>2.5.5</version>
325 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500326
sg481n4a51a8f2017-08-03 17:39:12 -0400327 <plugin>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-deploy-plugin</artifactId>
330 <version>2.8.1</version>
331 <configuration>
332 <skip>false</skip>
333 </configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500334
sg481n4a51a8f2017-08-03 17:39:12 -0400335 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500336
sg481n4a51a8f2017-08-03 17:39:12 -0400337 <plugin>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-dependency-plugin</artifactId>
340 <version>2.10</version>
341 </plugin>
sg481n62c4eb42017-08-25 01:57:24 -0400342
Sai Gandhama7f4def2018-07-02 22:37:37 -0500343 <!-- Maven surefire plugin for testing -->
344 <plugin>
345 <artifactId>maven-surefire-plugin</artifactId>
346 <version>2.17</version>
347 <configuration>
348 <skipTests>false</skipTests>
349 <includes>
350 <include>**/JU*.java</include>
351 </includes>
352 <excludes>
353 </excludes>
354 </configuration>
355 </plugin>
356
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100357 <!--This plugin's configuration is used to store Eclipse m2e settings
sg481n4a51a8f2017-08-03 17:39:12 -0400358 only. It has no influence on the Maven build itself. -->
359 <plugin>
360 <groupId>org.eclipse.m2e</groupId>
361 <artifactId>lifecycle-mapping</artifactId>
362 <version>1.0.0</version>
363 <configuration>
364 <lifecycleMappingMetadata>
365 <pluginExecutions>
366 <pluginExecution>
367 <pluginExecutionFilter>
368 <groupId>
369 org.codehaus.mojo
370 </groupId>
371 <artifactId>
372 jaxb2-maven-plugin
373 </artifactId>
374 <versionRange>
375 [1.3,)
376 </versionRange>
377 <goals>
378 <goal>xjc</goal>
379 </goals>
380 </pluginExecutionFilter>
381 <action>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100382 <ignore />
sg481n4a51a8f2017-08-03 17:39:12 -0400383 </action>
384 </pluginExecution>
385 </pluginExecutions>
386 </lifecycleMappingMetadata>
387 </configuration>
388 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500389 <plugin>
390 <groupId>org.sonatype.plugins</groupId>
391 <artifactId>nexus-staging-maven-plugin</artifactId>
392 <version>1.6.7</version>
393 <extensions>true</extensions>
394 <configuration>
395 <nexusUrl>${nexusproxy}</nexusUrl>
396 <stagingProfileId>176c31dfe190a</stagingProfileId>
397 <serverId>ecomp-staging</serverId>
398 </configuration>
399 </plugin>
400 <plugin>
401 <groupId>org.jacoco</groupId>
402 <artifactId>jacoco-maven-plugin</artifactId>
403 <version>${jacoco.version}</version>
404 <configuration>
405 <excludes>
406 <exclude>**/gen/**</exclude>
407 <exclude>**/generated-sources/**</exclude>
408 <exclude>**/yang-gen/**</exclude>
409 <exclude>**/pax/**</exclude>
410 </excludes>
411 </configuration>
412 <executions>
413 <execution>
414 <id>pre-unit-test</id>
415 <goals>
416 <goal>prepare-agent</goal>
417 </goals>
418 <configuration>
419 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
420 <propertyName>surefireArgLine</propertyName>
421 </configuration>
422 </execution>
423 <execution>
424 <id>post-unit-test</id>
425 <phase>test</phase>
426 <goals>
427 <goal>report</goal>
428 </goals>
429 <configuration>
430 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
431 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
432 </configuration>
433 </execution>
434 <execution>
435 <id>pre-integration-test</id>
436 <phase>pre-integration-test</phase>
437 <goals>
438 <goal>prepare-agent</goal>
439 </goals>
440 <configuration>
441 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
442 <propertyName>failsafeArgLine</propertyName>
443 </configuration>
444 </execution>
445 <execution>
446 <id>post-integration-test</id>
447 <phase>post-integration-test</phase>
448 <goals>
449 <goal>report</goal>
450 </goals>
451 <configuration>
452 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
453 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
454 </configuration>
455 </execution>
456 </executions>
457 </plugin>
458 </plugins>
459 </pluginManagement>
sg481n4a51a8f2017-08-03 17:39:12 -0400460 </build>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500461
sg481n62c4eb42017-08-25 01:57:24 -0400462 <distributionManagement>
463 <repository>
464 <id>ecomp-releases</id>
465 <name>AAF Release Repository</name>
466 <url>${nexusproxy}${releaseNexusPath}</url>
467 </repository>
468 <snapshotRepository>
469 <id>ecomp-snapshots</id>
470 <name>AAF Snapshot Repository</name>
471 <url>${nexusproxy}${snapshotNexusPath}</url>
472 </snapshotRepository>
473 <site>
474 <id>ecomp-site</id>
475 <url>dav:${nexusproxy}${sitePath}</url>
476 </site>
sg481n4a51a8f2017-08-03 17:39:12 -0400477 </distributionManagement>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500478
sg481n4a51a8f2017-08-03 17:39:12 -0400479</project>