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