blob: 8e9f174340b631b6b3cd4468ec65a4d37c6df6da [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>
25 <version>2.1.7-SNAPSHOT</version>
26 <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>
Sai Gandhamade22072018-10-04 21:48:01 -050032 <version>1.2.1</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 -->
Instrumentale9c0bf22018-11-07 13:45:30 -060037 <cadi.version>2.1.7-SNAPSHOT</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>
Sai Gandhama7f4def2018-07-02 22:37:37 -050040 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
41 <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>
Instrumentalc7014072018-11-07 11:21:03 -0600134 <!-- Not in Casablanca
Ravi Geda6c3031e2018-09-17 12:57:44 +0100135 <module>sidecar</module>
Instrumentalc7014072018-11-07 11:21:03 -0600136 -->
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>