8e9f174340b631b6b3cd4468ec65a4d37c6df6da
[aaf/cadi.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--* ============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     * -->
20 <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">
22         <modelVersion>4.0.0</modelVersion>
23         <groupId>org.onap.aaf.cadi</groupId>
24         <artifactId>parent</artifactId>
25         <version>2.1.7-SNAPSHOT</version>
26         <name>CADI Plugins Parent</name>
27         <packaging>pom</packaging>
28
29         <parent>
30                 <groupId>org.onap.oparent</groupId>
31                 <artifactId>oparent</artifactId>
32                 <version>1.2.1</version>
33         </parent>
34
35         <properties>
36                 <!-- This version needs to be RELEASED version. Fails on SNAPSHOT -->
37                 <cadi.version>2.1.7-SNAPSHOT</cadi.version>
38                 <!-- <sonar.skip>true</sonar.skip> -->
39                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40                 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
41                 <powermock.version>1.5.1</powermock.version>
42                 <!-- 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>
52                 <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>
57         </properties>
58
59         <!-- ============================================================== -->
60         <!-- Define the major contributors and developers of CADI -->
61         <!-- ============================================================== -->
62         <developers>
63                 <developer>
64                         <name>Jonathan Gathman</name>
65                         <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
98
99         <dependencies>
100                 <dependency>
101                         <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>
121                         <groupId>junit</groupId>
122                         <artifactId>junit</artifactId>
123                         <version>4.12</version>
124                         <scope>test</scope>
125                 </dependency>
126         </dependencies>
127
128         <!-- ============================================================== -->
129         <!-- Define sub-projects (modules) -->
130         <!-- ============================================================== -->
131         <modules>
132                 <module>shiro</module>
133                 <module>shiro-osgi-bundle</module>
134                 <!-- Not in Casablanca 
135                 <module>sidecar</module>
136                 -->
137         </modules>
138
139         <!-- ============================================================== -->
140         <!-- Define project-wide dependencies -->
141         <!-- ============================================================== -->
142         <dependencyManagement>
143                 <dependencies>
144                         <dependency>
145                                 <groupId>org.onap.aaf.authz</groupId>
146                                 <artifactId>aaf-auth-client</artifactId>
147                                 <version>${cadi.version}</version>
148                         </dependency>
149
150                         <dependency>
151                                 <groupId>org.onap.aaf.authz</groupId>
152                                 <artifactId>aaf-cadi-core</artifactId>
153                                 <version>${cadi.version}</version>
154                         </dependency>
155
156                         <dependency>
157                                 <groupId>org.onap.aaf.authz</groupId>
158                                 <artifactId>aaf-cadi-oauth</artifactId>
159                                 <version>${cadi.version}</version>
160                         </dependency>
161
162
163                         <!-- Prevent Cycles in Testing -->
164                         <dependency>
165                                 <groupId>org.onap.aaf.authz</groupId>
166                                 <artifactId>aaf-cadi-core</artifactId>
167                                 <version>${cadi.version}</version>
168                                 <classifier>tests</classifier>
169                         </dependency>
170
171                         <dependency>
172                                 <groupId>org.onap.aaf.authz</groupId>
173                                 <artifactId>aaf-cadi-jetty</artifactId>
174                                 <version>${cadi.version}</version>
175                         </dependency>
176
177                         <dependency>
178                                 <groupId>org.onap.aaf.authz</groupId>
179                                 <artifactId>aaf-cadi-cass</artifactId>
180                                 <version>${cadi.version}</version>
181                         </dependency>
182
183                         <dependency>
184                                 <groupId>org.onap.aaf.authz</groupId>
185                                 <artifactId>aaf-cadi-aaf</artifactId>
186                                 <version>${cadi.version}</version>
187                         </dependency>
188
189                         <dependency>
190                                 <groupId>org.onap.aaf.authz</groupId>
191                                 <artifactId>aaf-cadi-aaf</artifactId>
192                                 <version>${cadi.version}</version>
193                                 <classifier>full</classifier>
194                         </dependency>
195
196                         <dependency>
197                                 <groupId>org.onap.aaf.authz</groupId>
198                                 <artifactId>aaf-cadi-client</artifactId>
199                                 <version>${cadi.version}</version>
200                         </dependency>
201
202                         <dependency>
203                                 <groupId>org.onap.aaf.authz</groupId>
204                                 <artifactId>aaf-misc-env</artifactId>
205                                 <version>${cadi.version}</version>
206                         </dependency>
207
208                         <dependency>
209                                 <groupId>org.onap.aaf.authz</groupId>
210                                 <artifactId>aaf-misc-rosetta</artifactId>
211                                 <version>${cadi.version}</version>
212                         </dependency>
213
214                         <dependency>
215                                 <groupId>org.onap.aaf.authz</groupId>
216                                 <artifactId>aaf-misc-log4j</artifactId>
217                                 <version>${cadi.version}</version>
218                         </dependency>
219
220                         <dependency>
221                                 <groupId>org.eclipse.jetty</groupId>
222                                 <artifactId>jetty-servlet</artifactId>
223                                 <version>${project.jettyVersion}</version>
224                         </dependency>
225
226                         <dependency>
227                                 <groupId>org.eclipse.jetty</groupId>
228                                 <artifactId>jetty-io</artifactId>
229                                 <version>${project.jettyVersion}</version>
230                         </dependency>
231
232                         <dependency>
233                                 <groupId>org.eclipse.jetty</groupId>
234                                 <artifactId>jetty-security</artifactId>
235                                 <version>${project.jettyVersion}</version>
236                         </dependency>
237
238                         <dependency>
239                                 <groupId>org.eclipse.jetty</groupId>
240                                 <artifactId>jetty-http</artifactId>
241                                 <version>${project.jettyVersion}</version>
242                         </dependency>
243
244                         <dependency>
245                                 <groupId>org.eclipse.jetty</groupId>
246                                 <artifactId>jetty-util</artifactId>
247                                 <version>${project.jettyVersion}</version>
248                         </dependency>
249
250                         <dependency>
251                                 <groupId>org.eclipse.jetty</groupId>
252                                 <artifactId>jetty-server</artifactId>
253                                 <version>${project.jettyVersion}</version>
254                         </dependency>
255
256                         <dependency>
257                                 <groupId>javax.servlet</groupId>
258                                 <artifactId>javax.servlet-api</artifactId>
259                                 <version>3.0.1</version>
260                         </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>
276                 </plugins>
277                 <pluginManagement>
278                         <plugins>
279                                 <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>
289
290                                 <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>
303
304                                 <!-- Define the javadoc plugin -->
305                                 <plugin>
306                                         <groupId>org.apache.maven.plugins</groupId>
307                                         <artifactId>maven-javadoc-plugin</artifactId>
308                                         <version>2.10</version>
309                                         <configuration>
310                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
311                                         </configuration>
312                                 </plugin>
313
314                                 <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>
321
322                                 <plugin>
323                                         <artifactId>maven-assembly-plugin</artifactId>
324                                         <version>2.5.5</version>
325                                 </plugin>
326
327                                 <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>
334
335                                 </plugin>
336
337                                 <plugin>
338                                         <groupId>org.apache.maven.plugins</groupId>
339                                         <artifactId>maven-dependency-plugin</artifactId>
340                                         <version>2.10</version>
341                                 </plugin>
342
343                                 <!-- 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
357                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
358                                         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>
382                                                                                 <ignore />
383                                                                         </action>
384                                                                 </pluginExecution>
385                                                         </pluginExecutions>
386                                                 </lifecycleMappingMetadata>
387                                         </configuration>
388                                 </plugin>
389                                 <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>
460         </build>
461
462         <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>
477         </distributionManagement>
478
479 </project>