Use managed guava version
[aaf/cadi.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * ============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  *
21 -->
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>
24         <groupId>org.onap.aaf.cadi</groupId>
25         <artifactId>cadimiscparent</artifactId>
26         <version>2.1.2-SNAPSHOT</version>
27         <name>CADI Misc Modules</name>
28         <packaging>pom</packaging>
29
30         <parent>
31                 <groupId>org.onap.oparent</groupId>
32                 <artifactId>oparent</artifactId>
33                 <version>1.2.0</version>
34         </parent>
35
36         <properties>
37                 <!-- <sonar.skip>true</sonar.skip> -->
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39                 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
40                 <powermock.version>1.5.1</powermock.version>
41                 <!--  SONAR  -->
42                  <jacoco.version>0.7.7.201606060606</jacoco.version>
43             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
44             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
45             <!-- Default Sonar configuration -->
46             <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPaths>
47             <sonar.jacoco.itReportPaths>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPaths>
48             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
49             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
50                 <nexusproxy>https://nexus.onap.org</nexusproxy>
51                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
52                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
53                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
54                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>
55         </properties>
56
57         <!-- ============================================================== -->
58         <!-- Define the major contributors and developers of CADI -->
59         <!-- ============================================================== -->
60         <developers>
61                 <developer>
62                         <name>Jonathan Gathman</name>
63                         <email>jonathan.gathman@att.com</email>
64                         <organization>ATT</organization>
65                         <roles>
66                                 <role>Architect</role>
67                                 <role>Lead Developer</role>
68                         </roles>
69                 </developer>
70                 <developer>
71                         <name>Gabe Maurer</name>
72                         <email>gabe.maurer@att.com</email>
73                         <organization>ATT</organization>
74                         <roles>
75                                 <role>Developer</role>
76                         </roles>
77                 </developer>
78                 <developer>
79                         <name>Ian Howell</name>
80                         <email>ian.howell@att.com</email>
81                         <organization>ATT</organization>
82                         <roles>
83                                 <role>Developer</role>
84                         </roles>
85                 </developer>
86                 <developer>
87                         <name>Sai Gandham</name>
88                         <email>sai.gandham@att.com</email>
89                         <organization>ATT</organization>
90                         <roles>
91                                 <role>Developer</role>
92                         </roles>
93                 </developer>
94         </developers>
95
96
97         <dependencies>
98                 <dependency>
99                         <groupId>org.mockito</groupId>
100                         <artifactId>mockito-all</artifactId>
101                         <version>1.9.5</version>
102                         <scope>test</scope>
103                 </dependency>
104
105                 <dependency>
106                         <groupId>org.powermock</groupId>
107                         <artifactId>powermock-module-junit4</artifactId>
108                         <version>${powermock.version}</version>
109                         <scope>test</scope>
110                 </dependency>
111                 <dependency>
112                         <groupId>org.powermock</groupId>
113                         <artifactId>powermock-api-mockito</artifactId>
114                         <version>${powermock.version}</version>
115                         <scope>test</scope>
116                 </dependency>
117
118                 <dependency>
119                         <groupId>junit</groupId>
120                         <artifactId>junit</artifactId>
121                         <version>4.10</version>
122                         <scope>test</scope>
123                 </dependency>
124         </dependencies>
125
126         <!-- ============================================================== -->
127         <!-- Define sub-projects (modules) -->
128         <!-- ============================================================== -->
129         <modules>
130                 <module>shiro</module>
131                 <module>shiro-osgi-bundle</module>
132         </modules>
133
134         <!-- ============================================================== -->
135         <!-- Define project-wide dependencies -->
136         <!-- ============================================================== -->
137         <dependencyManagement>
138                 <dependencies>
139                         <dependency>
140                                 <groupId>org.onap.aaf.authz</groupId>
141                                 <artifactId>aaf-auth-client</artifactId>
142                                 <version>${project.version}</version>
143                         </dependency>
144
145                         <dependency>
146                                 <groupId>org.onap.aaf.authz</groupId>
147                                 <artifactId>aaf-cadi-core</artifactId>
148                                 <version>${project.version}</version>
149                         </dependency>
150
151                         <dependency>
152                                 <groupId>org.onap.aaf.authz</groupId>
153                                 <artifactId>aaf-cadi-oauth</artifactId>
154                                 <version>${project.version}</version>
155                         </dependency>
156
157
158                         <!-- Prevent Cycles in Testing  -->
159                         <dependency>
160                                 <groupId>org.onap.aaf.authz</groupId>
161                                 <artifactId>aaf-cadi-core</artifactId>
162                                 <version>${project.version}</version>
163                                 <classifier>tests</classifier>
164                         </dependency>
165
166                         <dependency>
167                                 <groupId>org.onap.aaf.authz</groupId>
168                                 <artifactId>aaf-cadi-jetty</artifactId>
169                                 <version>${project.version}</version>
170                         </dependency>
171
172                         <dependency>
173                                 <groupId>org.onap.aaf.authz</groupId>
174                                 <artifactId>aaf-cadi-cass</artifactId>
175                                 <version>${project.version}</version>
176                         </dependency>
177
178                         <dependency>
179                                 <groupId>org.onap.aaf.authz</groupId>
180                                 <artifactId>aaf-cadi-aaf</artifactId>
181                                 <version>${project.version}</version>
182                         </dependency>
183
184                         <dependency>
185                                 <groupId>org.onap.aaf.authz</groupId>
186                                 <artifactId>aaf-cadi-aaf</artifactId>
187                                 <version>${project.version}</version>
188                                 <classifier>full</classifier>
189                         </dependency>
190
191                         <dependency>
192                                 <groupId>org.onap.aaf.authz</groupId>
193                                 <artifactId>aaf-cadi-client</artifactId>
194                                 <version>${project.version}</version>
195                         </dependency>
196
197                         <dependency>
198                                 <groupId>org.onap.aaf.authz</groupId>
199                                 <artifactId>aaf-misc-env</artifactId>
200                                 <version>${project.version}</version>
201                         </dependency>
202
203                         <dependency>
204                                 <groupId>org.onap.aaf.authz</groupId>
205                                 <artifactId>aaf-misc-rosetta</artifactId>
206                                 <version>${project.version}</version>
207                         </dependency>
208
209                         <dependency>
210                                 <groupId>org.onap.aaf.authz</groupId>
211                                 <artifactId>aaf-misc-log4j</artifactId>
212                                 <version>${project.version}</version>
213                         </dependency>
214
215                         <dependency>
216                                 <groupId>org.eclipse.jetty</groupId>
217                                 <artifactId>jetty-servlet</artifactId>
218                                 <version>${project.jettyVersion}</version>
219                         </dependency>
220
221                         <dependency>
222                                 <groupId>org.eclipse.jetty</groupId>
223                                 <artifactId>jetty-io</artifactId>
224                                 <version>${project.jettyVersion}</version>
225                         </dependency>
226
227                         <dependency>
228                                 <groupId>org.eclipse.jetty</groupId>
229                                 <artifactId>jetty-security</artifactId>
230                                 <version>${project.jettyVersion}</version>
231                         </dependency>
232
233                         <dependency>
234                                 <groupId>org.eclipse.jetty</groupId>
235                                 <artifactId>jetty-http</artifactId>
236                                 <version>${project.jettyVersion}</version>
237                         </dependency>
238
239                         <dependency>
240                                 <groupId>org.eclipse.jetty</groupId>
241                                 <artifactId>jetty-util</artifactId>
242                                 <version>${project.jettyVersion}</version>
243                         </dependency>
244
245                         <dependency>
246                                 <groupId>org.eclipse.jetty</groupId>
247                                 <artifactId>jetty-server</artifactId>
248                                 <version>${project.jettyVersion}</version>
249                         </dependency>
250
251                         <dependency>
252                             <groupId>javax.servlet</groupId>
253                             <artifactId>javax.servlet-api</artifactId>
254                                 <version>3.0.1</version>
255                         </dependency>
256
257                         <dependency>
258                                 <groupId>org.slf4j</groupId>
259                                 <artifactId>slf4j-api</artifactId>
260                                 <version>1.7.5</version>
261                         </dependency>
262                 </dependencies>
263         </dependencyManagement>
264
265         <!-- ============================================================== -->
266         <!-- Define common plugins and make them available for all modules -->
267         <!-- ============================================================== -->
268         <build>
269                 <testSourceDirectory>src/test/java</testSourceDirectory>
270                 <plugins>
271                 </plugins>
272                 <pluginManagement>
273                         <plugins>
274                                 <plugin>
275                                         <inherited>true</inherited>
276                                         <groupId>org.apache.maven.plugins</groupId>
277                                         <artifactId>maven-compiler-plugin</artifactId>
278                                         <version>2.3.2</version>
279                                         <configuration>
280                                                 <source>1.7</source>
281                                                 <target>1.7</target>
282                                         </configuration>
283                                 </plugin>
284
285                                 <plugin>
286                                         <groupId>org.apache.maven.plugins</groupId>
287                                         <version>2.4</version>
288                                         <artifactId>maven-jar-plugin</artifactId>
289                                         <configuration>
290                                                 <outputDirectory>target</outputDirectory>
291                                                 <archive>
292                                                         <manifestEntries>
293                                                                 <Sealed>true</Sealed>
294                                                         </manifestEntries>
295                                                 </archive>
296                                         </configuration>
297                                 </plugin>
298
299                                 <!-- Define the javadoc plugin -->
300                                 <plugin>
301                                         <groupId>org.apache.maven.plugins</groupId>
302                                         <artifactId>maven-javadoc-plugin</artifactId>
303                                         <version>2.10</version>
304                                         <configuration>
305                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
306                                         </configuration>
307                                 </plugin>
308
309                                 <plugin>
310                                         <artifactId>maven-release-plugin</artifactId>
311                                         <version>2.5.2</version>
312                                         <configuration>
313                                                 <goals>-s ${mvn.settings} deploy</goals>
314                                         </configuration>
315                                 </plugin>
316
317                                 <plugin>
318                                         <artifactId>maven-assembly-plugin</artifactId>
319                                         <version>2.5.5</version>
320                                 </plugin>
321
322                                 <plugin>
323                                         <groupId>org.apache.maven.plugins</groupId>
324                                         <artifactId>maven-deploy-plugin</artifactId>
325                                         <version>2.8.1</version>
326                                         <configuration>
327                                                 <skip>false</skip>
328                                         </configuration>
329
330                                 </plugin>
331
332                                 <plugin>
333                                         <groupId>org.apache.maven.plugins</groupId>
334                                         <artifactId>maven-dependency-plugin</artifactId>
335                                         <version>2.10</version>
336                                 </plugin>
337
338                                 <!-- Maven surefire plugin for testing -->
339                                 <plugin>
340                                         <artifactId>maven-surefire-plugin</artifactId>
341                                         <version>2.17</version>
342                                         <configuration>
343                                                 <skipTests>false</skipTests>
344                                                 <includes>
345                                                         <include>**/JU*.java</include>
346                                                 </includes>
347                                                 <excludes>
348                                                 </excludes>
349                                         </configuration>
350                                 </plugin>
351
352                                 <!--This plugin's configuration is used to store Eclipse m2e settings
353                                         only. It has no influence on the Maven build itself. -->
354                                 <plugin>
355                                         <groupId>org.eclipse.m2e</groupId>
356                                         <artifactId>lifecycle-mapping</artifactId>
357                                         <version>1.0.0</version>
358                                         <configuration>
359                                                 <lifecycleMappingMetadata>
360                                                         <pluginExecutions>
361                                                                 <pluginExecution>
362                                                                         <pluginExecutionFilter>
363                                                                                 <groupId>
364                                                                                         org.codehaus.mojo
365                                                                                 </groupId>
366                                                                                 <artifactId>
367                                                                                         jaxb2-maven-plugin
368                                                                                 </artifactId>
369                                                                                 <versionRange>
370                                                                                         [1.3,)
371                                                                                 </versionRange>
372                                                                                 <goals>
373                                                                                         <goal>xjc</goal>
374                                                                                 </goals>
375                                                                         </pluginExecutionFilter>
376                                                                         <action>
377                                                                                 <ignore/>
378                                                                         </action>
379                                                                 </pluginExecution>
380                                                         </pluginExecutions>
381                                                 </lifecycleMappingMetadata>
382                                         </configuration>
383                                 </plugin>
384                                 <plugin>
385                                         <groupId>org.sonatype.plugins</groupId>
386                                         <artifactId>nexus-staging-maven-plugin</artifactId>
387                                         <version>1.6.7</version>
388                                         <extensions>true</extensions>
389                                         <configuration>
390                                                 <nexusUrl>${nexusproxy}</nexusUrl>
391                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
392                                                 <serverId>ecomp-staging</serverId>
393                                         </configuration>
394                                 </plugin>
395                                 <plugin>
396                                         <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>
455         </build>
456
457         <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>
472         </distributionManagement>
473
474 </project>