blob: a4ffa90112d8b46129858ec018a3e52ffd1734c3 [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>
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
160
161 <!-- Prevent Cycles in Testing -->
162 <dependency>
163 <groupId>org.onap.aaf.authz</groupId>
164 <artifactId>aaf-cadi-core</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500165 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400166 <classifier>tests</classifier>
167 </dependency>
168
169 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500170 <groupId>org.onap.aaf.authz</groupId>
171 <artifactId>aaf-cadi-jetty</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500172 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400173 </dependency>
174
175 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500176 <groupId>org.onap.aaf.authz</groupId>
177 <artifactId>aaf-cadi-cass</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500178 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500179 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400180
Sai Gandhama7f4def2018-07-02 22:37:37 -0500181 <dependency>
182 <groupId>org.onap.aaf.authz</groupId>
183 <artifactId>aaf-cadi-aaf</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500184 <version>${cadi.version}</version>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500185 </dependency>
186
187 <dependency>
188 <groupId>org.onap.aaf.authz</groupId>
189 <artifactId>aaf-cadi-aaf</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500190 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400191 <classifier>full</classifier>
192 </dependency>
193
194 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500195 <groupId>org.onap.aaf.authz</groupId>
196 <artifactId>aaf-cadi-client</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500197 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400198 </dependency>
199
200 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500201 <groupId>org.onap.aaf.authz</groupId>
202 <artifactId>aaf-misc-env</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500203 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400204 </dependency>
205
206 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500207 <groupId>org.onap.aaf.authz</groupId>
208 <artifactId>aaf-misc-rosetta</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500209 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400210 </dependency>
211
212 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500213 <groupId>org.onap.aaf.authz</groupId>
214 <artifactId>aaf-misc-log4j</artifactId>
Instrumentalbb248982018-09-07 07:57:03 -0500215 <version>${cadi.version}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400216 </dependency>
217
218 <dependency>
219 <groupId>org.eclipse.jetty</groupId>
220 <artifactId>jetty-servlet</artifactId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500221 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400222 </dependency>
223
224 <dependency>
225 <groupId>org.eclipse.jetty</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500226 <artifactId>jetty-io</artifactId>
227 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400228 </dependency>
229
230 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500231 <groupId>org.eclipse.jetty</groupId>
232 <artifactId>jetty-security</artifactId>
233 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400234 </dependency>
235
236 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500237 <groupId>org.eclipse.jetty</groupId>
238 <artifactId>jetty-http</artifactId>
239 <version>${project.jettyVersion}</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400240 </dependency>
241
242 <dependency>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500243 <groupId>org.eclipse.jetty</groupId>
244 <artifactId>jetty-util</artifactId>
245 <version>${project.jettyVersion}</version>
246 </dependency>
sg481n4a51a8f2017-08-03 17:39:12 -0400247
Sai Gandhama7f4def2018-07-02 22:37:37 -0500248 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400258 </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>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500274 </plugins>
275 <pluginManagement>
276 <plugins>
sg481n4a51a8f2017-08-03 17:39:12 -0400277 <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>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500287
sg481n4a51a8f2017-08-03 17:39:12 -0400288 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400301
Sai Gandhama7f4def2018-07-02 22:37:37 -0500302 <!-- Define the javadoc plugin -->
sg481n4a51a8f2017-08-03 17:39:12 -0400303 <plugin>
304 <groupId>org.apache.maven.plugins</groupId>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500305 <artifactId>maven-javadoc-plugin</artifactId>
306 <version>2.10</version>
sg481n4a51a8f2017-08-03 17:39:12 -0400307 <configuration>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500308 <excludePackageNames>org.opendaylight.*</excludePackageNames>
sg481n4a51a8f2017-08-03 17:39:12 -0400309 </configuration>
310 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500311
sg481n4a51a8f2017-08-03 17:39:12 -0400312 <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>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500319
sg481n4a51a8f2017-08-03 17:39:12 -0400320 <plugin>
321 <artifactId>maven-assembly-plugin</artifactId>
322 <version>2.5.5</version>
323 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500324
sg481n4a51a8f2017-08-03 17:39:12 -0400325 <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>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500332
sg481n4a51a8f2017-08-03 17:39:12 -0400333 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500334
sg481n4a51a8f2017-08-03 17:39:12 -0400335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-dependency-plugin</artifactId>
338 <version>2.10</version>
339 </plugin>
sg481n62c4eb42017-08-25 01:57:24 -0400340
Sai Gandhama7f4def2018-07-02 22:37:37 -0500341 <!-- 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
sg481n4a51a8f2017-08-03 17:39:12 -0400356 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>
Gary Wu3dabe932018-08-24 15:13:38 -0700380 <ignore/>
sg481n4a51a8f2017-08-03 17:39:12 -0400381 </action>
382 </pluginExecution>
383 </pluginExecutions>
384 </lifecycleMappingMetadata>
385 </configuration>
386 </plugin>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500387 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400458 </build>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500459
sg481n62c4eb42017-08-25 01:57:24 -0400460 <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>
sg481n4a51a8f2017-08-03 17:39:12 -0400475 </distributionManagement>
Sai Gandhama7f4def2018-07-02 22:37:37 -0500476
sg481n4a51a8f2017-08-03 17:39:12 -0400477</project>