blob: 78d663389e242df19d3dc7d9d22b6d7bfadaadf0 [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-->
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>
sg481n62c4eb42017-08-25 01:57:24 -040024 <groupId>org.onap.aaf.cadi</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -050025 <artifactId>cadimiscparent</artifactId>
26 <version>2.1.2-SNAPSHOT</version>
Gildas Lanilisa3532682018-09-05 17:34:34 -070027 <name>aaf-cadi</name>
sg481n4a51a8f2017-08-03 17:39:12 -040028 <packaging>pom</packaging>
Sai Gandhama7f4def2018-07-02 22:37:37 -050029
30 <parent>
31 <groupId>org.onap.oparent</groupId>
32 <artifactId>oparent</artifactId>
Gary Wu3dabe932018-08-24 15:13:38 -070033 <version>1.2.0</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -050034 </parent>
Gary Wu3dabe932018-08-24 15:13:38 -070035
sg481n4a51a8f2017-08-03 17:39:12 -040036 <properties>
Instrumentalbb248982018-09-07 07:57:03 -050037 <!-- This version needs to be RELEASED version. Fails on SNAPSHOT -->
38 <cadi.version>${project.version}</cadi.version>
Sai Gandhama7f4def2018-07-02 22:37:37 -050039 <!-- <sonar.skip>true</sonar.skip> -->
sg481n4a51a8f2017-08-03 17:39:12 -040040 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Sai Gandhama7f4def2018-07-02 22:37:37 -050041 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
42 <powermock.version>1.5.1</powermock.version>
sg481n3d80a8d2017-10-02 04:27:49 +000043 <!-- 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 -->
Sai Gandhama7f4def2018-07-02 22:37:37 -050048 <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>
sg481n3d80a8d2017-10-02 04:27:49 +000050 <!-- Note: This list should match jacoco-maven-plugin's exclusion list 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>
123 <version>4.10</version>
124 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400134 </modules>
135
136 <!-- ============================================================== -->
137 <!-- Define project-wide dependencies -->
138 <!-- ============================================================== -->
139 <dependencyManagement>
140 <dependencies>
sg481n7bc6ef22017-10-01 19:47:49 +0000141 <dependency>
sg481n62c4eb42017-08-25 01:57:24 -0400142 <groupId>org.onap.aaf.authz</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500143 <artifactId>aaf-auth-client</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500144 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400145 </dependency>
146
147 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500148 <groupId>org.onap.aaf.authz</groupId>
149 <artifactId>aaf-cadi-core</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500150 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500151 </dependency>
152
153 <dependency>
154 <groupId>org.onap.aaf.authz</groupId>
155 <artifactId>aaf-cadi-oauth</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500156 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500157 </dependency>
158
159
160 <!-- Prevent Cycles in Testing -->
161 <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>
216
217 <dependency>
218 <groupId>org.eclipse.jetty</groupId>
219 <artifactId>jetty-servlet</artifactId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500220 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400221 </dependency>
222
223 <dependency>
224 <groupId>org.eclipse.jetty</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500225 <artifactId>jetty-io</artifactId>
226 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400227 </dependency>
228
229 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500230 <groupId>org.eclipse.jetty</groupId>
231 <artifactId>jetty-security</artifactId>
232 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400233 </dependency>
234
235 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500236 <groupId>org.eclipse.jetty</groupId>
237 <artifactId>jetty-http</artifactId>
238 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400239 </dependency>
240
241 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500242 <groupId>org.eclipse.jetty</groupId>
243 <artifactId>jetty-util</artifactId>
244 <version>${project.jettyVersion}</version>
245 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400246
Sai Gandhama7f4def2018-07-02 22:37:37 -0500247 <dependency>
248 <groupId>org.eclipse.jetty</groupId>
249 <artifactId>jetty-server</artifactId>
250 <version>${project.jettyVersion}</version>
251 </dependency>
252
253 <dependency>
254 <groupId>javax.servlet</groupId>
255 <artifactId>javax.servlet-api</artifactId>
256 <version>3.0.1</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400257 </dependency>
258
259 <dependency>
260 <groupId>org.slf4j</groupId>
261 <artifactId>slf4j-api</artifactId>
262 <version>1.7.5</version>
263 </dependency>
264 </dependencies>
265 </dependencyManagement>
266
267 <!-- ============================================================== -->
268 <!-- Define common plugins and make them available for all modules -->
269 <!-- ============================================================== -->
270 <build>
271 <testSourceDirectory>src/test/java</testSourceDirectory>
272 <plugins>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500273 </plugins>
274 <pluginManagement>
275 <plugins>
sg481n4a51a8f2017-08-03 17:39:12 -0400276 <plugin>
277 <inherited>true</inherited>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-compiler-plugin</artifactId>
280 <version>2.3.2</version>
281 <configuration>
282 <source>1.7</source>
283 <target>1.7</target>
284 </configuration>
285 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500286
sg481n4a51a8f2017-08-03 17:39:12 -0400287 <plugin>
288 <groupId>org.apache.maven.plugins</groupId>
289 <version>2.4</version>
290 <artifactId>maven-jar-plugin</artifactId>
291 <configuration>
292 <outputDirectory>target</outputDirectory>
293 <archive>
294 <manifestEntries>
295 <Sealed>true</Sealed>
296 </manifestEntries>
297 </archive>
298 </configuration>
299 </plugin>
sg481n4a51a8f2017-08-03 17:39:12 -0400300
Sai Gandhama7f4def2018-07-02 22:37:37 -0500301 <!-- Define the javadoc plugin -->
sg481n4a51a8f2017-08-03 17:39:12 -0400302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500304 <artifactId>maven-javadoc-plugin</artifactId>
305 <version>2.10</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400306 <configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500307 <excludePackageNames>org.opendaylight.*</excludePackageNames>
sg481n4a51a8f2017-08-03 17:39:12 -0400308 </configuration>
309 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500310
sg481n4a51a8f2017-08-03 17:39:12 -0400311 <plugin>
312 <artifactId>maven-release-plugin</artifactId>
313 <version>2.5.2</version>
314 <configuration>
315 <goals>-s ${mvn.settings} deploy</goals>
316 </configuration>
317 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500318
sg481n4a51a8f2017-08-03 17:39:12 -0400319 <plugin>
320 <artifactId>maven-assembly-plugin</artifactId>
321 <version>2.5.5</version>
322 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500323
sg481n4a51a8f2017-08-03 17:39:12 -0400324 <plugin>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-deploy-plugin</artifactId>
327 <version>2.8.1</version>
328 <configuration>
329 <skip>false</skip>
330 </configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500331
sg481n4a51a8f2017-08-03 17:39:12 -0400332 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500333
sg481n4a51a8f2017-08-03 17:39:12 -0400334 <plugin>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-dependency-plugin</artifactId>
337 <version>2.10</version>
338 </plugin>
sg481n62c4eb42017-08-25 01:57:24 -0400339
Sai Gandhama7f4def2018-07-02 22:37:37 -0500340 <!-- Maven surefire plugin for testing -->
341 <plugin>
342 <artifactId>maven-surefire-plugin</artifactId>
343 <version>2.17</version>
344 <configuration>
345 <skipTests>false</skipTests>
346 <includes>
347 <include>**/JU*.java</include>
348 </includes>
349 <excludes>
350 </excludes>
351 </configuration>
352 </plugin>
353
354 <!--This plugin's configuration is used to store Eclipse m2e settings
sg481n4a51a8f2017-08-03 17:39:12 -0400355 only. It has no influence on the Maven build itself. -->
356 <plugin>
357 <groupId>org.eclipse.m2e</groupId>
358 <artifactId>lifecycle-mapping</artifactId>
359 <version>1.0.0</version>
360 <configuration>
361 <lifecycleMappingMetadata>
362 <pluginExecutions>
363 <pluginExecution>
364 <pluginExecutionFilter>
365 <groupId>
366 org.codehaus.mojo
367 </groupId>
368 <artifactId>
369 jaxb2-maven-plugin
370 </artifactId>
371 <versionRange>
372 [1.3,)
373 </versionRange>
374 <goals>
375 <goal>xjc</goal>
376 </goals>
377 </pluginExecutionFilter>
378 <action>
Gary Wu3dabe932018-08-24 15:13:38 -0700379 <ignore/>
sg481n4a51a8f2017-08-03 17:39:12 -0400380 </action>
381 </pluginExecution>
382 </pluginExecutions>
383 </lifecycleMappingMetadata>
384 </configuration>
385 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500386 <plugin>
387 <groupId>org.sonatype.plugins</groupId>
388 <artifactId>nexus-staging-maven-plugin</artifactId>
389 <version>1.6.7</version>
390 <extensions>true</extensions>
391 <configuration>
392 <nexusUrl>${nexusproxy}</nexusUrl>
393 <stagingProfileId>176c31dfe190a</stagingProfileId>
394 <serverId>ecomp-staging</serverId>
395 </configuration>
396 </plugin>
397 <plugin>
398 <groupId>org.jacoco</groupId>
399 <artifactId>jacoco-maven-plugin</artifactId>
400 <version>${jacoco.version}</version>
401 <configuration>
402 <excludes>
403 <exclude>**/gen/**</exclude>
404 <exclude>**/generated-sources/**</exclude>
405 <exclude>**/yang-gen/**</exclude>
406 <exclude>**/pax/**</exclude>
407 </excludes>
408 </configuration>
409 <executions>
410 <execution>
411 <id>pre-unit-test</id>
412 <goals>
413 <goal>prepare-agent</goal>
414 </goals>
415 <configuration>
416 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
417 <propertyName>surefireArgLine</propertyName>
418 </configuration>
419 </execution>
420 <execution>
421 <id>post-unit-test</id>
422 <phase>test</phase>
423 <goals>
424 <goal>report</goal>
425 </goals>
426 <configuration>
427 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
428 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
429 </configuration>
430 </execution>
431 <execution>
432 <id>pre-integration-test</id>
433 <phase>pre-integration-test</phase>
434 <goals>
435 <goal>prepare-agent</goal>
436 </goals>
437 <configuration>
438 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
439 <propertyName>failsafeArgLine</propertyName>
440 </configuration>
441 </execution>
442 <execution>
443 <id>post-integration-test</id>
444 <phase>post-integration-test</phase>
445 <goals>
446 <goal>report</goal>
447 </goals>
448 <configuration>
449 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
450 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
451 </configuration>
452 </execution>
453 </executions>
454 </plugin>
455 </plugins>
456 </pluginManagement>
sg481n4a51a8f2017-08-03 17:39:12 -0400457 </build>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500458
sg481n62c4eb42017-08-25 01:57:24 -0400459 <distributionManagement>
460 <repository>
461 <id>ecomp-releases</id>
462 <name>AAF Release Repository</name>
463 <url>${nexusproxy}${releaseNexusPath}</url>
464 </repository>
465 <snapshotRepository>
466 <id>ecomp-snapshots</id>
467 <name>AAF Snapshot Repository</name>
468 <url>${nexusproxy}${snapshotNexusPath}</url>
469 </snapshotRepository>
470 <site>
471 <id>ecomp-site</id>
472 <url>dav:${nexusproxy}${sitePath}</url>
473 </site>
sg481n4a51a8f2017-08-03 17:39:12 -0400474 </distributionManagement>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500475
sg481n4a51a8f2017-08-03 17:39:12 -0400476</project>