Cadi Build Release
[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>aaf-cadi</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             <!-- This version needs to be RELEASED version.  Fails on SNAPSHOT -->
38             <cadi.version>${project.version}</cadi.version>
39                 <!-- <sonar.skip>true</sonar.skip> -->
40                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41                 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
42                 <powermock.version>1.5.1</powermock.version>
43                 <!--  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 -->
48             <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>
50             <!-- Note: This list should match jacoco-maven-plugin's exclusion list 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.10</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         </modules>
135
136         <!-- ============================================================== -->
137         <!-- Define project-wide dependencies -->
138         <!-- ============================================================== -->
139         <dependencyManagement>
140                 <dependencies>
141                         <dependency>
142                                 <groupId>org.onap.aaf.authz</groupId>
143                                 <artifactId>aaf-auth-client</artifactId>
144                                 <version>${cadi.version}</version>
145                         </dependency>
146
147                         <dependency>
148                                 <groupId>org.onap.aaf.authz</groupId>
149                                 <artifactId>aaf-cadi-core</artifactId>
150                                 <version>${cadi.version}</version>
151                         </dependency>
152
153                         <dependency>
154                                 <groupId>org.onap.aaf.authz</groupId>
155                                 <artifactId>aaf-cadi-oauth</artifactId>
156                                 <version>${cadi.version}</version>
157                         </dependency>
158
159
160                         <!-- Prevent Cycles in Testing  -->
161                         <dependency>
162                                 <groupId>org.onap.aaf.authz</groupId>
163                                 <artifactId>aaf-cadi-core</artifactId>
164                                 <version>${cadi.version}</version>
165                                 <classifier>tests</classifier>
166                         </dependency>
167
168                         <dependency>
169                                 <groupId>org.onap.aaf.authz</groupId>
170                                 <artifactId>aaf-cadi-jetty</artifactId>
171                                 <version>${cadi.version}</version>
172                         </dependency>
173
174                         <dependency>
175                                 <groupId>org.onap.aaf.authz</groupId>
176                                 <artifactId>aaf-cadi-cass</artifactId>
177                                 <version>${cadi.version}</version>
178                         </dependency>
179
180                         <dependency>
181                                 <groupId>org.onap.aaf.authz</groupId>
182                                 <artifactId>aaf-cadi-aaf</artifactId>
183                                 <version>${cadi.version}</version>
184                         </dependency>
185
186                         <dependency>
187                                 <groupId>org.onap.aaf.authz</groupId>
188                                 <artifactId>aaf-cadi-aaf</artifactId>
189                                 <version>${cadi.version}</version>
190                                 <classifier>full</classifier>
191                         </dependency>
192
193                         <dependency>
194                                 <groupId>org.onap.aaf.authz</groupId>
195                                 <artifactId>aaf-cadi-client</artifactId>
196                                 <version>${cadi.version}</version>
197                         </dependency>
198
199                         <dependency>
200                                 <groupId>org.onap.aaf.authz</groupId>
201                                 <artifactId>aaf-misc-env</artifactId>
202                                 <version>${cadi.version}</version>
203                         </dependency>
204
205                         <dependency>
206                                 <groupId>org.onap.aaf.authz</groupId>
207                                 <artifactId>aaf-misc-rosetta</artifactId>
208                                 <version>${cadi.version}</version>
209                         </dependency>
210
211                         <dependency>
212                                 <groupId>org.onap.aaf.authz</groupId>
213                                 <artifactId>aaf-misc-log4j</artifactId>
214                                 <version>${cadi.version}</version>
215                         </dependency>
216
217                         <dependency>
218                                 <groupId>org.eclipse.jetty</groupId>
219                                 <artifactId>jetty-servlet</artifactId>
220                                 <version>${project.jettyVersion}</version>
221                         </dependency>
222
223                         <dependency>
224                                 <groupId>org.eclipse.jetty</groupId>
225                                 <artifactId>jetty-io</artifactId>
226                                 <version>${project.jettyVersion}</version>
227                         </dependency>
228
229                         <dependency>
230                                 <groupId>org.eclipse.jetty</groupId>
231                                 <artifactId>jetty-security</artifactId>
232                                 <version>${project.jettyVersion}</version>
233                         </dependency>
234
235                         <dependency>
236                                 <groupId>org.eclipse.jetty</groupId>
237                                 <artifactId>jetty-http</artifactId>
238                                 <version>${project.jettyVersion}</version>
239                         </dependency>
240
241                         <dependency>
242                                 <groupId>org.eclipse.jetty</groupId>
243                                 <artifactId>jetty-util</artifactId>
244                                 <version>${project.jettyVersion}</version>
245                         </dependency>
246
247                         <dependency>
248                                 <groupId>org.eclipse.jetty</groupId>
249                                 <artifactId>jetty-server</artifactId>
250                                 <version>${project.jettyVersion}</version>
251                         </dependency>
252
253                         <dependency>
254                             <groupId>javax.servlet</groupId>
255                             <artifactId>javax.servlet-api</artifactId>
256                                 <version>3.0.1</version>
257                         </dependency>
258
259                         <dependency>
260                                 <groupId>org.slf4j</groupId>
261                                 <artifactId>slf4j-api</artifactId>
262                                 <version>1.7.5</version>
263                         </dependency>
264                 </dependencies>
265         </dependencyManagement>
266
267         <!-- ============================================================== -->
268         <!-- Define common plugins and make them available for all modules -->
269         <!-- ============================================================== -->
270         <build>
271                 <testSourceDirectory>src/test/java</testSourceDirectory>
272                 <plugins>
273                 </plugins>
274                 <pluginManagement>
275                         <plugins>
276                                 <plugin>
277                                         <inherited>true</inherited>
278                                         <groupId>org.apache.maven.plugins</groupId>
279                                         <artifactId>maven-compiler-plugin</artifactId>
280                                         <version>2.3.2</version>
281                                         <configuration>
282                                                 <source>1.7</source>
283                                                 <target>1.7</target>
284                                         </configuration>
285                                 </plugin>
286
287                                 <plugin>
288                                         <groupId>org.apache.maven.plugins</groupId>
289                                         <version>2.4</version>
290                                         <artifactId>maven-jar-plugin</artifactId>
291                                         <configuration>
292                                                 <outputDirectory>target</outputDirectory>
293                                                 <archive>
294                                                         <manifestEntries>
295                                                                 <Sealed>true</Sealed>
296                                                         </manifestEntries>
297                                                 </archive>
298                                         </configuration>
299                                 </plugin>
300
301                                 <!-- Define the javadoc plugin -->
302                                 <plugin>
303                                         <groupId>org.apache.maven.plugins</groupId>
304                                         <artifactId>maven-javadoc-plugin</artifactId>
305                                         <version>2.10</version>
306                                         <configuration>
307                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
308                                         </configuration>
309                                 </plugin>
310
311                                 <plugin>
312                                         <artifactId>maven-release-plugin</artifactId>
313                                         <version>2.5.2</version>
314                                         <configuration>
315                                                 <goals>-s ${mvn.settings} deploy</goals>
316                                         </configuration>
317                                 </plugin>
318
319                                 <plugin>
320                                         <artifactId>maven-assembly-plugin</artifactId>
321                                         <version>2.5.5</version>
322                                 </plugin>
323
324                                 <plugin>
325                                         <groupId>org.apache.maven.plugins</groupId>
326                                         <artifactId>maven-deploy-plugin</artifactId>
327                                         <version>2.8.1</version>
328                                         <configuration>
329                                                 <skip>false</skip>
330                                         </configuration>
331
332                                 </plugin>
333
334                                 <plugin>
335                                         <groupId>org.apache.maven.plugins</groupId>
336                                         <artifactId>maven-dependency-plugin</artifactId>
337                                         <version>2.10</version>
338                                 </plugin>
339
340                                 <!-- Maven surefire plugin for testing -->
341                                 <plugin>
342                                         <artifactId>maven-surefire-plugin</artifactId>
343                                         <version>2.17</version>
344                                         <configuration>
345                                                 <skipTests>false</skipTests>
346                                                 <includes>
347                                                         <include>**/JU*.java</include>
348                                                 </includes>
349                                                 <excludes>
350                                                 </excludes>
351                                         </configuration>
352                                 </plugin>
353
354                                 <!--This plugin's configuration is used to store Eclipse m2e settings
355                                         only. It has no influence on the Maven build itself. -->
356                                 <plugin>
357                                         <groupId>org.eclipse.m2e</groupId>
358                                         <artifactId>lifecycle-mapping</artifactId>
359                                         <version>1.0.0</version>
360                                         <configuration>
361                                                 <lifecycleMappingMetadata>
362                                                         <pluginExecutions>
363                                                                 <pluginExecution>
364                                                                         <pluginExecutionFilter>
365                                                                                 <groupId>
366                                                                                         org.codehaus.mojo
367                                                                                 </groupId>
368                                                                                 <artifactId>
369                                                                                         jaxb2-maven-plugin
370                                                                                 </artifactId>
371                                                                                 <versionRange>
372                                                                                         [1.3,)
373                                                                                 </versionRange>
374                                                                                 <goals>
375                                                                                         <goal>xjc</goal>
376                                                                                 </goals>
377                                                                         </pluginExecutionFilter>
378                                                                         <action>
379                                                                                 <ignore/>
380                                                                         </action>
381                                                                 </pluginExecution>
382                                                         </pluginExecutions>
383                                                 </lifecycleMappingMetadata>
384                                         </configuration>
385                                 </plugin>
386                                 <plugin>
387                                         <groupId>org.sonatype.plugins</groupId>
388                                         <artifactId>nexus-staging-maven-plugin</artifactId>
389                                         <version>1.6.7</version>
390                                         <extensions>true</extensions>
391                                         <configuration>
392                                                 <nexusUrl>${nexusproxy}</nexusUrl>
393                                                 <stagingProfileId>176c31dfe190a</stagingProfileId>
394                                                 <serverId>ecomp-staging</serverId>
395                                         </configuration>
396                                 </plugin>
397                                 <plugin>
398                                         <groupId>org.jacoco</groupId>
399                                         <artifactId>jacoco-maven-plugin</artifactId>
400                                         <version>${jacoco.version}</version>
401                                         <configuration>
402                                                 <excludes>
403                                                         <exclude>**/gen/**</exclude>
404                                                         <exclude>**/generated-sources/**</exclude>
405                                                         <exclude>**/yang-gen/**</exclude>
406                                                         <exclude>**/pax/**</exclude>
407                                                 </excludes>
408                                         </configuration>
409                                         <executions>
410                                                 <execution>
411                                                         <id>pre-unit-test</id>
412                                                         <goals>
413                                                                 <goal>prepare-agent</goal>
414                                                         </goals>
415                                                         <configuration>
416                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
417                                                                 <propertyName>surefireArgLine</propertyName>
418                                                         </configuration>
419                                                 </execution>
420                                                 <execution>
421                                                         <id>post-unit-test</id>
422                                                         <phase>test</phase>
423                                                         <goals>
424                                                                 <goal>report</goal>
425                                                         </goals>
426                                                         <configuration>
427                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
428                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
429                                                         </configuration>
430                                                 </execution>
431                                                 <execution>
432                                                         <id>pre-integration-test</id>
433                                                         <phase>pre-integration-test</phase>
434                                                         <goals>
435                                                                 <goal>prepare-agent</goal>
436                                                         </goals>
437                                                         <configuration>
438                                                                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
439                                                                 <propertyName>failsafeArgLine</propertyName>
440                                                         </configuration>
441                                                 </execution>
442                                                 <execution>
443                                                         <id>post-integration-test</id>
444                                                         <phase>post-integration-test</phase>
445                                                         <goals>
446                                                                 <goal>report</goal>
447                                                         </goals>
448                                                         <configuration>
449                                                                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
450                                                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
451                                                         </configuration>
452                                                 </execution>
453                                         </executions>
454                                 </plugin>
455                         </plugins>
456                 </pluginManagement>
457         </build>
458
459         <distributionManagement>
460                 <repository>
461                         <id>ecomp-releases</id>
462                         <name>AAF Release Repository</name>
463                         <url>${nexusproxy}${releaseNexusPath}</url>
464                 </repository>
465                 <snapshotRepository>
466                         <id>ecomp-snapshots</id>
467                         <name>AAF Snapshot Repository</name>
468                         <url>${nexusproxy}${snapshotNexusPath}</url>
469                 </snapshotRepository>
470                 <site>
471                         <id>ecomp-site</id>
472                         <url>dav:${nexusproxy}${sitePath}</url>
473                 </site>
474         </distributionManagement>
475
476 </project>