Keep only clean TestCases, remove 2 license issues
[aaf/authz.git] / cadi / 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.authz.cadi</groupId>
25         <artifactId>parent</artifactId>
26         <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
27         <version>1.5.0-SNAPSHOT</version>
28         <inceptionYear>2015-07-20</inceptionYear>
29         <organization>
30                 <name>ONAP</name>
31         </organization>
32         <packaging>pom</packaging>
33
34
35         
36         <properties>
37                 <skipSigning>true</skipSigning>
38                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39                 <project.miscVersion>1.3.0-SNAPSHOT</project.miscVersion>
40                 <project.authClientVersion>2.10-SNAPSHOT</project.authClientVersion>
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.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
49             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
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/authz/${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>core</module>
133                 <module>client</module>
134                 <module>aaf</module>
135                 <module>cass</module>
136                 <module>oauth-enduser</module>
137                 <module>shiro</module>
138         </modules>
139
140         <!-- ============================================================== -->
141         <!-- Define project-wide dependencies -->
142         <!-- ============================================================== -->
143         <dependencyManagement>
144                 <dependencies>
145                         <dependency>
146                                 <groupId>org.onap.aaf.authz.auth</groupId>
147                                 <artifactId>aaf-auth-client</artifactId>
148                                 <version>${project.authClientVersion}</version>
149                         </dependency>
150
151                         <dependency>
152                                 <groupId>org.onap.aaf.authz.cadi</groupId>
153                                 <artifactId>aaf-cadi-core</artifactId>
154                                 <version>${project.version}</version>
155                         </dependency>
156
157                         <dependency>
158                                 <groupId>org.onap.aaf.authz.cadi</groupId>
159                                 <artifactId>aaf-cadi-oauth</artifactId>
160                                 <version>${project.version}</version>
161                         </dependency>
162
163
164                         <!-- Prevent Cycles in Testing  -->
165                         <dependency>
166                                 <groupId>org.onap.aaf.authz.cadi</groupId>
167                                 <artifactId>aaf-cadi-core</artifactId>
168                                 <version>${project.version}</version>
169                                 <classifier>tests</classifier>
170                         </dependency>
171
172                         <dependency>
173                                 <groupId>org.onap.aaf.authz.cadi</groupId>
174                                 <artifactId>aaf-cadi-jetty</artifactId>
175                                 <version>${project.version}</version>
176                         </dependency>
177
178                         <dependency>
179                                 <groupId>org.onap.aaf.authz.cadi</groupId>
180                                 <artifactId>aaf-cadi-cass</artifactId>
181                                 <version>${project.version}</version>
182                         </dependency>
183
184                         <dependency>
185                                 <groupId>org.onap.aaf.authz.cadi</groupId>
186                                 <artifactId>aaf-cadi-aaf</artifactId>
187                                 <version>${project.version}</version>
188                         </dependency>
189
190                         <dependency>
191                                 <groupId>org.onap.aaf.authz.cadi</groupId>
192                                 <artifactId>aaf-cadi-aaf</artifactId>
193                                 <version>${project.version}</version>
194                                 <classifier>full</classifier>
195                         </dependency>
196
197                         <dependency>
198                                 <groupId>org.onap.aaf.authz.cadi</groupId>
199                                 <artifactId>aaf-cadi-client</artifactId>
200                                 <version>${project.version}</version>
201                         </dependency>
202
203                         <dependency>
204                                 <groupId>org.onap.aaf.authz.misc</groupId>
205                                 <artifactId>aaf-misc-env</artifactId>
206                                 <version>${project.miscVersion}</version>
207                         </dependency>
208
209                         <dependency>
210                                 <groupId>org.onap.aaf.authz.misc</groupId>
211                                 <artifactId>aaf-misc-rosetta</artifactId>
212                                 <version>${project.miscVersion}</version>
213                         </dependency>
214
215                         <dependency>
216                                 <groupId>org.onap.aaf.authz.misc</groupId>
217                                 <artifactId>aaf-misc-log4j</artifactId>
218                                 <version>${project.miscVersion}</version>
219                         </dependency>
220
221                         <dependency>
222                                 <groupId>org.eclipse.jetty</groupId>
223                                 <artifactId>jetty-servlet</artifactId>
224                                 <version>${project.jettyVersion}</version>
225                         </dependency>
226                         
227                         <dependency>
228                                 <groupId>org.eclipse.jetty</groupId>
229                                 <artifactId>jetty-io</artifactId>
230                                 <version>${project.jettyVersion}</version>
231                         </dependency>
232         
233                         <dependency>
234                                 <groupId>org.eclipse.jetty</groupId>
235                                 <artifactId>jetty-security</artifactId>
236                                 <version>${project.jettyVersion}</version>
237                         </dependency>
238         
239                         <dependency>
240                                 <groupId>org.eclipse.jetty</groupId>
241                                 <artifactId>jetty-http</artifactId>
242                                 <version>${project.jettyVersion}</version>
243                         </dependency>
244         
245                         <dependency>
246                                 <groupId>org.eclipse.jetty</groupId>
247                                 <artifactId>jetty-util</artifactId>
248                                 <version>${project.jettyVersion}</version>
249                         </dependency>
250         
251                         <dependency>
252                                 <groupId>org.eclipse.jetty</groupId>
253                                 <artifactId>jetty-server</artifactId>
254                                 <version>${project.jettyVersion}</version>
255                         </dependency>
256
257                         <dependency>
258                             <groupId>javax.servlet</groupId>
259                             <artifactId>servlet-api</artifactId>
260                                 <version>2.5</version>
261                         </dependency>
262                         
263                         <dependency>
264                                 <groupId>org.slf4j</groupId>
265                                 <artifactId>slf4j-api</artifactId>
266                                 <version>1.7.5</version>
267                         </dependency>
268                 </dependencies>
269         </dependencyManagement>
270
271         <!-- ============================================================== -->
272         <!-- Define common plugins and make them available for all modules -->
273         <!-- ============================================================== -->
274         <build>
275                 <testSourceDirectory>src/test/java</testSourceDirectory>
276                 <plugins>
277                 </plugins>
278                 <pluginManagement>                      
279                         <plugins>
280                                 <plugin>
281                                         <inherited>true</inherited>
282                                         <groupId>org.apache.maven.plugins</groupId>
283                                         <artifactId>maven-compiler-plugin</artifactId>
284                                         <version>2.3.2</version>
285                                         <configuration>
286                                                 <source>1.7</source>
287                                                 <target>1.7</target>
288                                         </configuration>
289                                 </plugin>
290         
291                                 <plugin>
292                                         <groupId>org.apache.maven.plugins</groupId>
293                                         <version>2.4</version>
294                                         <artifactId>maven-jar-plugin</artifactId>
295                                         <configuration>
296                                                 <outputDirectory>target</outputDirectory>
297                                                 <archive>
298                                                         <manifestEntries>
299                                                                 <Sealed>true</Sealed>
300                                                         </manifestEntries>
301                                                 </archive>
302                                         </configuration>
303                                 </plugin>
304
305                                 <!-- Define the javadoc plugin -->
306                                 <plugin>
307                                         <groupId>org.apache.maven.plugins</groupId>
308                                         <artifactId>maven-javadoc-plugin</artifactId>
309                                         <version>2.10</version>
310                                         <configuration>
311                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
312                                         </configuration>
313                                 </plugin>
314         
315                                 <plugin>
316                                         <artifactId>maven-release-plugin</artifactId>
317                                         <version>2.5.2</version>
318                                         <configuration>
319                                                 <goals>-s ${mvn.settings} deploy</goals>
320                                         </configuration>
321                                 </plugin>
322         
323                                 <plugin>
324                                         <artifactId>maven-assembly-plugin</artifactId>
325                                         <version>2.5.5</version>
326                                 </plugin>
327         
328                                 <plugin>
329                                         <groupId>org.apache.maven.plugins</groupId>
330                                         <artifactId>maven-deploy-plugin</artifactId>
331                                         <version>2.8.1</version>
332                                         <configuration>
333                                                 <skip>true</skip>
334                                         </configuration>
335         
336                                 </plugin>
337         
338                                 <plugin>
339                                         <groupId>org.apache.maven.plugins</groupId>
340                                         <artifactId>maven-dependency-plugin</artifactId>
341                                         <version>2.10</version>
342                                 </plugin>
343         
344                                 <!-- Maven surefire plugin for testing -->
345                                 <plugin>
346                                         <artifactId>maven-surefire-plugin</artifactId>
347                                         <version>2.17</version>
348                                         <configuration>
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>0.7.7.201606060606</version>
399                                 <configuration>
400                                         <dumpOnExit>true</dumpOnExit>
401                                         <includes>
402                                                 <include>org.onap.aaf.*</include>
403                                         </includes>
404                                 </configuration>
405                                 <executions>
406                                         <execution>
407                                                 <id>pre-unit-test</id>
408                                                 <goals>
409                                                         <goal>prepare-agent</goal>
410                                                 </goals>
411                                                 <configuration>
412                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
413                                                         <!-- <append>true</append> -->
414                                                 </configuration>
415                                         </execution>
416                                         <execution>
417                                                 <id>pre-integration-test</id>
418                                                 <phase>pre-integration-test</phase>
419                                                 <goals>
420                                                         <goal>prepare-agent</goal>
421                                                 </goals>
422                                                 <configuration>
423                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
424                                                         <!-- <append>true</append> -->
425                                                 </configuration>
426                                         </execution>
427                                         <execution>
428                         <goals>
429                             <goal>merge</goal>
430                         </goals>
431                         <phase>post-integration-test</phase>
432                         <configuration>
433                             <fileSets>
434                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
435                                     <directory>${project.build.directory}/coverage-reports</directory>
436                                     <includes>
437                                         <include>*.exec</include>
438                                     </includes>
439                                 </fileSet>
440                             </fileSets>
441                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
442                         </configuration>
443                     </execution>
444                                 </executions>
445                         </plugin>
446                         </plugins>
447                 </pluginManagement>                     
448         </build>
449
450
451         <distributionManagement>
452                 <repository>
453                         <id>ecomp-releases</id>
454                         <name>AAF Release Repository</name>
455                         <url>${nexusproxy}${releaseNexusPath}</url>
456                 </repository>
457                 <snapshotRepository>
458                         <id>ecomp-snapshots</id>
459                         <name>AAF Snapshot Repository</name>
460                         <url>${nexusproxy}${snapshotNexusPath}</url>
461                 </snapshotRepository>
462                 <site>
463                         <id>ecomp-site</id>
464                         <url>dav:${nexusproxy}${sitePath}</url>
465                 </site>
466         </distributionManagement>
467         
468 </project>