blob: b20804fe36849f2ea0bb8ea6b39c3057804f39a5 [file] [log] [blame]
Sai Gandhama7f4def2018-07-02 22:37:37 -05001<?xml version="1.0" encoding="UTF-8"?>
Sai Gandham25129102018-11-06 11:29:31 -06002<!--* ============LICENSE_START====================================================
3 * ===========================================================================
4 * org.onap.aaf
5 * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END====================================================
19 * -->
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +010020<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 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 -040022 <modelVersion>4.0.0</modelVersion>
sg481n62c4eb42017-08-25 01:57:24 -040023 <groupId>org.onap.aaf.cadi</groupId>
Instrumentalc7014072018-11-07 11:21:03 -060024 <artifactId>parent</artifactId>
GANDHAM05e395c2019-10-15 09:16:11 -050025 <version>2.1.16-SNAPSHOT</version>
Instrumentalc7014072018-11-07 11:21:03 -060026 <name>CADI Plugins Parent</name>
sg481n4a51a8f2017-08-03 17:39:12 -040027 <packaging>pom</packaging>
Sai Gandhama7f4def2018-07-02 22:37:37 -050028
29 <parent>
30 <groupId>org.onap.oparent</groupId>
31 <artifactId>oparent</artifactId>
Instrumentalc932b382019-06-03 14:31:04 -050032 <version>2.0.0</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -050033 </parent>
Gary Wu3dabe932018-08-24 15:13:38 -070034
sg481n4a51a8f2017-08-03 17:39:12 -040035 <properties>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +010036 <!-- This version needs to be RELEASED version. Fails on SNAPSHOT -->
Instrumental32667842019-06-03 14:03:22 -050037 <cadi.version>2.1.13</cadi.version>
Sai Gandhama7f4def2018-07-02 22:37:37 -050038 <!-- <sonar.skip>true</sonar.skip> -->
sg481n4a51a8f2017-08-03 17:39:12 -040039 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Instrumental5aa8aec2018-11-07 20:52:15 -060040 <!-- project.jettyVersion>9.4.12.v20180830</project.jettyVersion -->
Sai Gandhama7f4def2018-07-02 22:37:37 -050041 <powermock.version>1.5.1</powermock.version>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +010042 <!-- SONAR -->
43 <jacoco.version>0.7.7.201606060606</jacoco.version>
44 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
45 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
46 <!-- Default Sonar configuration -->
47 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
48 <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
49 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
50 below -->
51 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
sg481n62c4eb42017-08-25 01:57:24 -040052 <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>
sg481n4a51a8f2017-08-03 17:39:12 -040057 </properties>
Sai Gandhama7f4def2018-07-02 22:37:37 -050058
sg481n4a51a8f2017-08-03 17:39:12 -040059 <!-- ============================================================== -->
60 <!-- Define the major contributors and developers of CADI -->
61 <!-- ============================================================== -->
Sai Gandhama7f4def2018-07-02 22:37:37 -050062 <developers>
63 <developer>
sg481n4a51a8f2017-08-03 17:39:12 -040064 <name>Jonathan Gathman</name>
Sai Gandhama7f4def2018-07-02 22:37:37 -050065 <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
sg481n4a51a8f2017-08-03 17:39:12 -040098
99 <dependencies>
100 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500101 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400121 <groupId>junit</groupId>
122 <artifactId>junit</artifactId>
Instrumentalc7014072018-11-07 11:21:03 -0600123 <version>4.12</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400124 <scope>test</scope>
125 </dependency>
126 </dependencies>
127
128 <!-- ============================================================== -->
129 <!-- Define sub-projects (modules) -->
130 <!-- ============================================================== -->
131 <modules>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500132 <module>shiro</module>
133 <module>shiro-osgi-bundle</module>
Ravi Geda6c3031e2018-09-17 12:57:44 +0100134 <module>sidecar</module>
sg481n4a51a8f2017-08-03 17:39:12 -0400135 </modules>
136
137 <!-- ============================================================== -->
138 <!-- Define project-wide dependencies -->
139 <!-- ============================================================== -->
140 <dependencyManagement>
141 <dependencies>
sg481n7bc6ef22017-10-01 19:47:49 +0000142 <dependency>
sg481n62c4eb42017-08-25 01:57:24 -0400143 <groupId>org.onap.aaf.authz</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500144 <artifactId>aaf-auth-client</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500145 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400146 </dependency>
147
148 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500149 <groupId>org.onap.aaf.authz</groupId>
150 <artifactId>aaf-cadi-core</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500151 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500152 </dependency>
153
154 <dependency>
155 <groupId>org.onap.aaf.authz</groupId>
156 <artifactId>aaf-cadi-oauth</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500157 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500158 </dependency>
159
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100160 <!-- Prevent Cycles in Testing -->
Sai Gandhama7f4def2018-07-02 22:37:37 -0500161 <dependency>
162 <groupId>org.onap.aaf.authz</groupId>
163 <artifactId>aaf-cadi-core</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500164 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400165 <classifier>tests</classifier>
166 </dependency>
167
168 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500169 <groupId>org.onap.aaf.authz</groupId>
170 <artifactId>aaf-cadi-jetty</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500171 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400172 </dependency>
173
174 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500175 <groupId>org.onap.aaf.authz</groupId>
176 <artifactId>aaf-cadi-cass</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500177 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500178 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400179
Sai Gandhama7f4def2018-07-02 22:37:37 -0500180 <dependency>
181 <groupId>org.onap.aaf.authz</groupId>
182 <artifactId>aaf-cadi-aaf</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500183 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500184 </dependency>
185
186 <dependency>
187 <groupId>org.onap.aaf.authz</groupId>
188 <artifactId>aaf-cadi-aaf</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500189 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400190 <classifier>full</classifier>
191 </dependency>
192
193 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500194 <groupId>org.onap.aaf.authz</groupId>
195 <artifactId>aaf-cadi-client</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500196 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400197 </dependency>
198
199 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500200 <groupId>org.onap.aaf.authz</groupId>
201 <artifactId>aaf-misc-env</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500202 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400203 </dependency>
204
205 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500206 <groupId>org.onap.aaf.authz</groupId>
207 <artifactId>aaf-misc-rosetta</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500208 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400209 </dependency>
210
211 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500212 <groupId>org.onap.aaf.authz</groupId>
213 <artifactId>aaf-misc-log4j</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500214 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400215 </dependency>
Instrumental5aa8aec2018-11-07 20:52:15 -0600216
Instrumental4a698c22019-02-22 13:52:58 -0600217 <dependency>
218 <groupId>org.apache.shiro</groupId>
219 <artifactId>shiro-core</artifactId>
220 <version>1.3.2</version>
221 </dependency>
222
Instrumental6ac87e32019-02-28 10:32:39 -0600223 <dependency>
224 <groupId>ch.qos.logback</groupId>
225 <artifactId>logback-classic</artifactId>
226 <version>1.2.3</version>
227 <scope>test</scope>
228 </dependency>
Instrumental4a698c22019-02-22 13:52:58 -0600229
Instrumental5aa8aec2018-11-07 20:52:15 -0600230 <!--
sg481n4a51a8f2017-08-03 17:39:12 -0400231
232 <dependency>
233 <groupId>org.eclipse.jetty</groupId>
234 <artifactId>jetty-servlet</artifactId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500235 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400236 </dependency>
237
238 <dependency>
239 <groupId>org.eclipse.jetty</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500240 <artifactId>jetty-io</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-security</artifactId>
247 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400248 </dependency>
249
250 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500251 <groupId>org.eclipse.jetty</groupId>
252 <artifactId>jetty-http</artifactId>
253 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400254 </dependency>
255
256 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500257 <groupId>org.eclipse.jetty</groupId>
258 <artifactId>jetty-util</artifactId>
259 <version>${project.jettyVersion}</version>
260 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400261
Sai Gandhama7f4def2018-07-02 22:37:37 -0500262 <dependency>
263 <groupId>org.eclipse.jetty</groupId>
264 <artifactId>jetty-server</artifactId>
265 <version>${project.jettyVersion}</version>
266 </dependency>
Instrumental5aa8aec2018-11-07 20:52:15 -0600267 -->
sg481n4a51a8f2017-08-03 17:39:12 -0400268 <dependency>
269 <groupId>org.slf4j</groupId>
270 <artifactId>slf4j-api</artifactId>
271 <version>1.7.5</version>
272 </dependency>
273 </dependencies>
274 </dependencyManagement>
275
276 <!-- ============================================================== -->
277 <!-- Define common plugins and make them available for all modules -->
278 <!-- ============================================================== -->
279 <build>
280 <testSourceDirectory>src/test/java</testSourceDirectory>
281 <plugins>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500282 </plugins>
283 <pluginManagement>
284 <plugins>
sg481n4a51a8f2017-08-03 17:39:12 -0400285 <plugin>
286 <inherited>true</inherited>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-compiler-plugin</artifactId>
289 <version>2.3.2</version>
290 <configuration>
Instrumental5aa8aec2018-11-07 20:52:15 -0600291 <source>${maven.compiler.source}</source>
292 <target>${maven.compiler.target}</target>
sg481n4a51a8f2017-08-03 17:39:12 -0400293 </configuration>
294 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500295
sg481n4a51a8f2017-08-03 17:39:12 -0400296 <plugin>
297 <groupId>org.apache.maven.plugins</groupId>
298 <version>2.4</version>
299 <artifactId>maven-jar-plugin</artifactId>
300 <configuration>
301 <outputDirectory>target</outputDirectory>
302 <archive>
303 <manifestEntries>
304 <Sealed>true</Sealed>
305 </manifestEntries>
306 </archive>
307 </configuration>
308 </plugin>
sg481n4a51a8f2017-08-03 17:39:12 -0400309
Sai Gandhama7f4def2018-07-02 22:37:37 -0500310 <!-- Define the javadoc plugin -->
sg481n4a51a8f2017-08-03 17:39:12 -0400311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500313 <artifactId>maven-javadoc-plugin</artifactId>
314 <version>2.10</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400315 <configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500316 <excludePackageNames>org.opendaylight.*</excludePackageNames>
sg481n4a51a8f2017-08-03 17:39:12 -0400317 </configuration>
318 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500319
sg481n4a51a8f2017-08-03 17:39:12 -0400320 <plugin>
321 <artifactId>maven-release-plugin</artifactId>
322 <version>2.5.2</version>
323 <configuration>
324 <goals>-s ${mvn.settings} deploy</goals>
325 </configuration>
326 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500327
sg481n4a51a8f2017-08-03 17:39:12 -0400328 <plugin>
329 <artifactId>maven-assembly-plugin</artifactId>
330 <version>2.5.5</version>
331 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500332
sg481n4a51a8f2017-08-03 17:39:12 -0400333 <plugin>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-deploy-plugin</artifactId>
336 <version>2.8.1</version>
337 <configuration>
338 <skip>false</skip>
339 </configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500340
sg481n4a51a8f2017-08-03 17:39:12 -0400341 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500342
sg481n4a51a8f2017-08-03 17:39:12 -0400343 <plugin>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-dependency-plugin</artifactId>
346 <version>2.10</version>
347 </plugin>
sg481n62c4eb42017-08-25 01:57:24 -0400348
Sai Gandhama7f4def2018-07-02 22:37:37 -0500349 <!-- Maven surefire plugin for testing -->
350 <plugin>
351 <artifactId>maven-surefire-plugin</artifactId>
352 <version>2.17</version>
353 <configuration>
354 <skipTests>false</skipTests>
355 <includes>
356 <include>**/JU*.java</include>
357 </includes>
358 <excludes>
359 </excludes>
360 </configuration>
361 </plugin>
362
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100363 <!--This plugin's configuration is used to store Eclipse m2e settings
sg481n4a51a8f2017-08-03 17:39:12 -0400364 only. It has no influence on the Maven build itself. -->
365 <plugin>
366 <groupId>org.eclipse.m2e</groupId>
367 <artifactId>lifecycle-mapping</artifactId>
368 <version>1.0.0</version>
369 <configuration>
370 <lifecycleMappingMetadata>
371 <pluginExecutions>
372 <pluginExecution>
373 <pluginExecutionFilter>
374 <groupId>
375 org.codehaus.mojo
376 </groupId>
377 <artifactId>
378 jaxb2-maven-plugin
379 </artifactId>
380 <versionRange>
381 [1.3,)
382 </versionRange>
383 <goals>
384 <goal>xjc</goal>
385 </goals>
386 </pluginExecutionFilter>
387 <action>
Lee, Tian (tl5884)69f44092018-10-01 13:55:40 +0100388 <ignore />
sg481n4a51a8f2017-08-03 17:39:12 -0400389 </action>
390 </pluginExecution>
391 </pluginExecutions>
392 </lifecycleMappingMetadata>
393 </configuration>
394 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500395 <plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500396 <groupId>org.jacoco</groupId>
397 <artifactId>jacoco-maven-plugin</artifactId>
398 <version>${jacoco.version}</version>
399 <configuration>
400 <excludes>
401 <exclude>**/gen/**</exclude>
402 <exclude>**/generated-sources/**</exclude>
403 <exclude>**/yang-gen/**</exclude>
404 <exclude>**/pax/**</exclude>
405 </excludes>
406 </configuration>
407 <executions>
408 <execution>
409 <id>pre-unit-test</id>
410 <goals>
411 <goal>prepare-agent</goal>
412 </goals>
413 <configuration>
414 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
415 <propertyName>surefireArgLine</propertyName>
416 </configuration>
417 </execution>
418 <execution>
419 <id>post-unit-test</id>
420 <phase>test</phase>
421 <goals>
422 <goal>report</goal>
423 </goals>
424 <configuration>
425 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
426 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
427 </configuration>
428 </execution>
429 <execution>
430 <id>pre-integration-test</id>
431 <phase>pre-integration-test</phase>
432 <goals>
433 <goal>prepare-agent</goal>
434 </goals>
435 <configuration>
436 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
437 <propertyName>failsafeArgLine</propertyName>
438 </configuration>
439 </execution>
440 <execution>
441 <id>post-integration-test</id>
442 <phase>post-integration-test</phase>
443 <goals>
444 <goal>report</goal>
445 </goals>
446 <configuration>
447 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
448 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
449 </configuration>
450 </execution>
451 </executions>
452 </plugin>
453 </plugins>
454 </pluginManagement>
sg481n4a51a8f2017-08-03 17:39:12 -0400455 </build>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500456
sg481n62c4eb42017-08-25 01:57:24 -0400457 <distributionManagement>
458 <repository>
459 <id>ecomp-releases</id>
460 <name>AAF Release Repository</name>
461 <url>${nexusproxy}${releaseNexusPath}</url>
462 </repository>
463 <snapshotRepository>
464 <id>ecomp-snapshots</id>
465 <name>AAF Snapshot Repository</name>
466 <url>${nexusproxy}${snapshotNexusPath}</url>
467 </snapshotRepository>
468 <site>
469 <id>ecomp-site</id>
470 <url>dav:${nexusproxy}${sitePath}</url>
471 </site>
sg481n4a51a8f2017-08-03 17:39:12 -0400472 </distributionManagement>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500473
sg481n4a51a8f2017-08-03 17:39:12 -0400474</project>