Fix documentation & test cases
[aaf/authz.git] / pom.xml
1 <!--
2   ============LICENSE_START====================================================
3   * org.onap.aaf
4   * ===========================================================================
5   * Copyright © 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   * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21   *
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25
26         <modelVersion>4.0.0</modelVersion>
27         <groupId>org.onap.aaf.authz</groupId>
28         <artifactId>parent</artifactId>
29         <version>1.0.1-SNAPSHOT</version>
30         <name>aaf-authz</name>
31         <packaging>pom</packaging>
32         <url>https://github.com/att/AAF</url>
33         
34         <parent>             
35         <groupId>org.onap.oparent</groupId>
36         <artifactId>oparent</artifactId>
37         <version>0.1.1</version>
38     </parent>
39         
40
41         <developers>
42                 <developer>
43                 <name>Jonathan Gathman</name>
44                 <email></email>
45         <organization>ATT</organization>
46         <organizationUrl></organizationUrl>
47                 </developer>
48         </developers>
49         <description>This module is used to organize all of the common SWM (Software Manager) 
50                 artifacts and capabilities that are inherited by all modules that are SWM
51                 packaged.  This prevents duplication of these common artifacts, plugins, and 
52                 other settings and provides a single place to support this configuration.
53         </description>
54         <properties>
55                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
56                 <skipTests>false</skipTests>
57                 <project.interfaceVersion>1.0.0-SNAPSHOT</project.interfaceVersion>
58                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
59                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
60                 <project.dme2Version>3.1.200</project.dme2Version>
61         <!--  SONAR  -->
62                  <jacoco.version>0.7.7.201606060606</jacoco.version>
63             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
64             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
65             <!-- Default Sonar configuration -->
66             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
67             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
68             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
69             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
70                 <nexusproxy>https://nexus.onap.org</nexusproxy>
71                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
72                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
73                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
74                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
75         </properties>
76         <build>
77                 <pluginManagement>
78                 <plugins>
79                           <plugin>
80                                         <groupId>org.apache.maven.plugins</groupId>
81                                         <artifactId>maven-compiler-plugin</artifactId>
82                                         <version>2.3.2</version> 
83                                         <configuration>
84                                                 <source>1.8</source>
85                                                 <target>1.8</target>
86                                         </configuration>
87                                 </plugin>
88                                 
89         
90                                 <plugin>
91                                   <groupId>org.apache.maven.plugins</groupId>
92                                   <artifactId>maven-surefire-plugin</artifactId>
93                                   <version>2.17</version>
94                                   <configuration>
95                                         <skipTests>${skipTests}</skipTests>
96                                         <includes>
97                                           <include>**/JU*.java</include>
98                                         </includes>
99                                         <excludes>
100                                 
101                                                 <exclude>**/JU_DataFile.java</exclude>
102                                         <exclude>**/JU_ArtiDAO.java</exclude>
103                                         <exclude>**/JU_CertDAO.java</exclude>
104                                         <exclude>**/JU_FastCalling.java</exclude>
105                                         <exclude>**/JU_NsDAO.java</exclude>
106                                           <!-- <exclude>**/authz-cass/**</exclude> -->
107                                           <!-- <exclude>**/JU_UseCase1.java</exclude> -->
108                                           <exclude>**/JU_RoleDAO.java</exclude>
109                                           <exclude>**/JU_PermDAO.java</exclude>
110                                            <exclude>**/JU_Question.java</exclude> 
111                                           <!-- <exclude>**/JU_NS.java</exclude> -->
112                                           <exclude>**/JU_HistoryDAO.java</exclude>                                
113                                           <exclude>**/JU_DelegateDAO.java</exclude>
114                                           <exclude>**/JU_CredDAO.java</exclude>
115                                           <exclude>**/JU_CacheInfoDAO.java</exclude>
116                                           <exclude>**/JU_ApprovalDAO.java</exclude>
117                                         <!--  <exclude>**/JU_Define.java</exclude>  -->
118                                         <exclude>**/JU_Identities.java</exclude>
119                                           <exclude>**/JU_AuthzTransFilter.java</exclude>
120                                           <exclude>**/JU_CachingFileAccess.java</exclude>
121                                           <!-- <exclude>**/AbsServiceTest.java</exclude>  -->
122                                   <!--            <exclude>**/JU_DefaultOrg.java</exclude> -->
123                                           <exclude>**/JU_FileServer.java</exclude>
124                                           <exclude>**/JU_DirectAAFLur.java</exclude>
125                                           <exclude>**/JU_AuthAPI.java</exclude>
126                                           <exclude>**/JU_GwAPI.java</exclude>
127                                           <exclude>**/JU_NsDAO.java</exclude>
128                                           <exclude>**/JU_Delete.java</exclude>
129                                           <exclude>**/JU_Create.java</exclude>
130                                           <exclude>**/JU_Admin.java</exclude>
131                                           <exclude>**/JU_Attrib.java</exclude>
132                                           <exclude>**/JU_Describe.java</exclude>
133                                           <exclude>**/JU_ListUsersInRole.java</exclude>
134                                           <exclude>**/JU_ListUsersWithPerm.java</exclude>
135                                           <exclude>**/JU_Responsible.java</exclude>
136                                         
137                                           
138                                           
139                                           
140                                           <!-- <exclude>**/JU_Perm_2_0*.java</exclude> -->
141                                           <!-- <exclude>**/JU_Role_2_0*.java</exclude>                             -->
142                         
143                                         </excludes>
144         
145                                   </configuration>
146                                 </plugin>
147         
148                                 <plugin>
149                                         <groupId>org.codehaus.mojo</groupId>
150                                         <artifactId>jaxb2-maven-plugin</artifactId>
151                                         <version>1.3</version>
152                                         <executions>
153                                                 <execution>
154                                                         <phase>generate-sources</phase>
155                                                         <goals>
156                                                                 <goal>xjc</goal>
157                                                         </goals>
158                                                 </execution>
159                                         </executions>
160                                         <configuration>
161                                                 <schemaDirectory>src/main/xsd</schemaDirectory>
162                                         </configuration>
163                                 </plugin>
164         
165                                 <plugin>
166                                   <groupId>org.apache.maven.plugins</groupId>
167                                   <artifactId>maven-failsafe-plugin</artifactId>
168                                   <version>2.17</version>
169                                   <configuration>
170                                                 <skipTests>true</skipTests>
171                                   </configuration>
172                                   <executions>
173                                         <execution>
174                                           <id>integration-test</id>
175                                           <goals>
176                                                 <goal>integration-test</goal>
177                                                 <goal>verify</goal>
178                                           </goals>
179                                         </execution>
180                                   </executions>
181                                 </plugin>
182                                 <plugin>
183                                         <groupId>org.apache.maven.plugins</groupId>
184                                         <artifactId>maven-jarsigner-plugin</artifactId>
185                                         <version>1.2</version>
186                                         <executions>
187                                                 <execution>
188                                                         <id>sign</id>
189                                                         <goals>
190                                                                 <goal>sign</goal>
191                                                         </goals>
192                                                         <configuration>
193                                                                 <!--  skip>${skipSigning}</skip -->
194                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
195                                                         </configuration>
196                                                 </execution>
197                                                 <execution>
198                                                         <id>verify</id>
199                                                         <goals>
200                                                                 <goal>verify</goal>
201                                                         </goals>
202                                                         <configuration>
203                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
204                                                         </configuration>
205                                                 </execution>
206                                         </executions>
207                                         <configuration>
208                                                 <skip>true</skip>
209                                                 <alias>aaf</alias>
210                                                 <keystore>/Volumes/Data/src/cadi/keys/aaf_cadi.jks</keystore>
211                                                 <storepass>Surprise!</storepass>
212                                                 <keypass>Surprise!</keypass>
213                                                 <verbose>true</verbose>
214                                                 <certs>true</certs>
215                                         </configuration>
216                                 </plugin>
217                                 
218                 <plugin>
219                         <groupId>org.apache.maven.plugins</groupId>
220                         <artifactId>maven-javadoc-plugin</artifactId>
221                         <version>2.10.4</version>
222                         <configuration>
223                         <failOnError>false</failOnError>
224                         </configuration>
225                         <executions>
226                                 <execution>
227                                         <id>attach-javadocs</id>
228                                         <goals>
229                                                 <goal>jar</goal>
230                                         </goals>
231                                 </execution>
232                         </executions>
233                 </plugin> 
234
235
236            
237                <plugin>
238                       <groupId>org.apache.maven.plugins</groupId>
239                       <artifactId>maven-source-plugin</artifactId>
240                       <version>2.2.1</version>
241                       <executions>
242                         <execution>
243                           <id>attach-sources</id>
244                           <goals>
245                             <goal>jar-no-fork</goal>
246                           </goals>
247                         </execution>
248                       </executions>
249                     </plugin>
250
251                         
252                 <plugin>
253                                 <groupId>org.codehaus.mojo</groupId>
254                                 <artifactId>cobertura-maven-plugin</artifactId>
255                                 <version>2.7</version>
256                                 <configuration>
257                                         <formats>
258                                         <format>html</format>
259                                         <format>xml</format>
260                                   </formats>
261                                 </configuration>
262                         </plugin>
263                 <plugin>
264                                 <groupId>org.sonatype.plugins</groupId>
265                                 <artifactId>nexus-staging-maven-plugin</artifactId>
266                                 <version>1.6.7</version>
267                                 <extensions>true</extensions>
268                                 <configuration>
269                                         <nexusUrl>${nexusproxy}</nexusUrl>
270                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
271                                         <serverId>ecomp-staging</serverId>
272                                 </configuration>
273                         </plugin>               
274                 <plugin>
275           <groupId>org.jacoco</groupId>
276           <artifactId>jacoco-maven-plugin</artifactId>
277           <version>${jacoco.version}</version>
278           <configuration>
279             <excludes>
280               <exclude>**/gen/**</exclude>
281               <exclude>**/generated-sources/**</exclude>
282               <exclude>**/yang-gen/**</exclude>
283               <exclude>**/pax/**</exclude>
284             </excludes>
285           </configuration>
286           <executions>
287
288             <execution>
289               <id>pre-unit-test</id>
290               <goals>
291                 <goal>prepare-agent</goal>
292               </goals>
293               <configuration>
294                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
295                 <propertyName>surefireArgLine</propertyName>
296               </configuration>
297             </execution>
298             
299        
300             <execution>
301               <id>post-unit-test</id>
302               <phase>test</phase>
303               <goals>
304                 <goal>report</goal>
305               </goals>
306               <configuration>
307                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
308                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
309               </configuration>
310             </execution>
311             <execution>
312               <id>pre-integration-test</id>
313               <phase>pre-integration-test</phase>
314               <goals>
315                 <goal>prepare-agent</goal>
316               </goals>
317               <configuration>
318                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
319
320                 <propertyName>failsafeArgLine</propertyName>
321               </configuration>
322             </execution>
323
324        
325             <execution>
326               <id>post-integration-test</id>
327               <phase>post-integration-test</phase>
328               <goals>
329                 <goal>report</goal>
330               </goals>
331               <configuration>
332                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
333                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
334               </configuration>
335             </execution>
336           </executions>
337         </plugin>       
338                                 
339                 </plugins>
340                 </pluginManagement>                     
341     </build>    
342         
343         <dependencies> 
344                 <dependency>
345                         <groupId>junit</groupId>
346                         <artifactId>junit</artifactId>
347                         <version>4.10</version>
348                         <scope>test</scope>
349                 </dependency>
350
351                 <dependency>
352                     <groupId>org.mockito</groupId>
353                     <artifactId>mockito-core</artifactId>
354                     <version>1.10.19</version>
355                     <scope>test</scope>
356                 </dependency>
357                 <dependency>
358                     <groupId>org.powermock</groupId>
359                     <artifactId>powermock-module-junit4</artifactId>
360                     <version>1.6.4</version>
361                     <scope>test</scope>
362                 </dependency>
363                 <dependency>
364                     <groupId>org.powermock</groupId>
365                     <artifactId>powermock-api-mockito</artifactId>
366                     <version>1.6.4</version>
367                     <scope>test</scope>
368                 </dependency> 
369
370          
371         </dependencies>         
372
373         <modules>
374                 <!-- 
375                    <module> auth-client</module>
376                    complile manually with mvn -N independently
377                 -->
378                 <module>authz-client</module>
379                 <module>authz-core</module>
380                 <module>authz-cass</module>
381                 <module>authz-defOrg</module>
382                 <module>authz-cmd</module>
383                 <!--  <module>authz-batch</module>-->
384                 <module>authz-test</module>
385                 <!--  <module>authz-gui</module> -->
386                 <module>authz-gw</module>
387                 <module>authz-certman</module>
388                 <module>authz-fs</module>
389                 <module>authz-service</module>
390         </modules>
391         
392         <dependencyManagement>
393                 <dependencies>
394                         <dependency>
395                                 <groupId>org.onap.aaf.inno</groupId>
396                                 <artifactId>env</artifactId>
397                                 <version>${project.innoVersion}</version>
398                         </dependency>
399
400                         <dependency>
401                                 <groupId>org.onap.aaf.inno</groupId>
402                                 <artifactId>log4j</artifactId>
403                                 <version>${project.innoVersion}</version>
404                         </dependency>
405
406                         <dependency>
407                                 <groupId>org.onap.aaf.inno</groupId>
408                                 <artifactId>rosetta</artifactId>
409                                 <version>${project.innoVersion}</version>
410                         </dependency>
411
412                         <dependency>
413                                 <groupId>org.onap.aaf.inno</groupId>
414                                 <artifactId>xgen</artifactId>
415                                 <version>${project.innoVersion}</version>
416                         </dependency>
417                         
418                         <dependency>
419                                 <groupId>org.onap.aaf.cadi</groupId>
420                                 <artifactId>cadi-core</artifactId>
421                                 <version>${project.cadiVersion}</version>
422                         </dependency>
423
424                         <dependency>
425                                 <groupId>org.onap.aaf.cadi</groupId>
426                                 <artifactId>cadi-client</artifactId>
427                                 <version>${project.cadiVersion}</version>
428                         </dependency>
429                         
430                         
431                         <dependency>
432                                 <groupId>org.onap.aaf.cadi</groupId>
433                                 <artifactId>cadi-aaf</artifactId>
434                                 <version>${project.cadiVersion}</version>
435                                 <exclusions>
436                               <exclusion> 
437                                         <groupId>org.apache.cassandra</groupId>
438                                 <artifactId>cassandra-all</artifactId>
439                       </exclusion>
440                             </exclusions> 
441                         </dependency>
442                         
443                         <dependency>
444                                 <groupId>org.onap.aaf.authz</groupId>
445                                 <artifactId>authz-client</artifactId>
446                                 <version>${project.interfaceVersion}</version>
447                         </dependency>
448                         
449                         
450                         <dependency>
451                                 <groupId>org.onap.aaf.authz</groupId>
452                                 <artifactId>authz-core</artifactId>
453                                 <version>${project.version}</version>
454                         </dependency>
455                         
456                         <dependency>
457                     <groupId>org.onap.aaf.authz</groupId>
458                     <artifactId>authz-cass</artifactId>
459                                 <version>${project.version}</version>
460                 </dependency>
461                 
462                 <dependency>
463                                 <groupId>org.onap.aaf.authz</groupId>
464                                 <artifactId>authz-batch</artifactId>
465                                 <version>${project.interfaceVersion}</version>
466                         </dependency>
467             
468
469
470                     <dependency>
471                     <groupId>org.onap.aaf.authz</groupId>
472                     <artifactId>authz-cmd</artifactId>
473                                 <version>${project.version}</version>
474                 </dependency>
475                 <dependency>
476                     <groupId>org.onap.aaf.authz</groupId>
477                     <artifactId>authz-gw</artifactId>
478                                 <version>${project.version}</version>
479                 </dependency>
480
481                         <dependency>
482                                 <groupId>com.att.aft</groupId>
483                                 <artifactId>dme2</artifactId>
484                                 <version>${project.dme2Version}</version>
485                         </dependency>
486                 
487                         <dependency>
488                           <groupId>javax.servlet</groupId>
489                           <artifactId>servlet-api</artifactId>
490                           <version>2.5</version>
491                         </dependency>
492                         
493                         <dependency>
494                                 <groupId>org.eclipse.jetty</groupId>
495                                 <artifactId>jetty-servlet</artifactId>
496                                 <version>9.0.3.v20130506</version>
497                         </dependency>
498                         
499                         <dependency>
500                                 <groupId>com.datastax.cassandra</groupId>
501                                 <artifactId>cassandra-all</artifactId>
502                                 <version>2.1.10</version>
503                                 <exclusions>
504                               <exclusion> 
505                                 <groupId>org.slf4j</groupId>
506                                 <artifactId>slf4j-log4j12</artifactId>
507                               </exclusion>
508                               <exclusion> 
509                                 <groupId>log4j</groupId>
510                                 <artifactId>log4j</artifactId>
511                               </exclusion>
512                             </exclusions> 
513                         </dependency>
514                         <dependency>
515                                 <groupId>com.datastax.cassandra</groupId>
516                                 <artifactId>cassandra-driver-core</artifactId>
517                                 <!-- version>1.0.3</version -->
518                                 <!-- version>1.0.5</version -->
519                                 <version>2.1.10</version>
520                                 <exclusions>
521                               <exclusion> 
522                                 <groupId>org.slf4j</groupId>
523                                 <artifactId>slf4j-log4j12</artifactId>
524                               </exclusion>
525                               <exclusion> 
526                                 <groupId>log4j</groupId>
527                                 <artifactId>log4j</artifactId>
528                               </exclusion>
529                             </exclusions> 
530                         </dependency>   
531
532                         <dependency>
533                                 <groupId>org.slf4j</groupId>
534                                 <artifactId>slf4j-log4j12</artifactId>
535                                 <version>1.7.5</version>
536                         </dependency>
537
538                         <dependency>
539                         <groupId>javax.mail</groupId>
540                         <artifactId>mail</artifactId>
541                         <version>1.4.5</version>
542                 </dependency> 
543
544                         
545                 </dependencies>
546         </dependencyManagement>
547         <distributionManagement>
548                 <repository>
549                         <id>ecomp-releases</id>
550                         <name>AAF Release Repository</name>
551                         <url>${nexusproxy}${releaseNexusPath}</url>
552                 </repository>
553                 <snapshotRepository>
554                         <id>ecomp-snapshots</id>
555                         <name>AAF Snapshot Repository</name>
556                         <url>${nexusproxy}${snapshotNexusPath}</url>
557                 </snapshotRepository>
558                 <site>
559                         <id>ecomp-site</id>
560                         <url>dav:${nexusproxy}${sitePath}</url>
561                 </site>
562         </distributionManagement>
563
564 </project>