Remove Code from cadi, it is now in authz
[aaf/cadi.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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <groupId>org.onap.aaf.cadi</groupId>
26         <artifactId>parent</artifactId>
27         <name>aaf-cadi</name>
28         <version>1.0.0-SNAPSHOT</version>
29         <inceptionYear>2015-07-20</inceptionYear>       
30         <packaging>pom</packaging>
31         <url>https://github.com/att/AAF</url>
32         <description>CADI</description>
33         <licenses>
34                 <license>
35                 <name>BSD License</name>
36                 <url> </url>
37                 </license>
38         </licenses>
39         <developers>
40                 <developer>
41                 <name>Jonathan Gathman</name>
42                 <email></email>
43         <organization>ATT</organization>
44         <organizationUrl></organizationUrl>
45                 </developer>
46         </developers>
47         
48         <parent>             
49        <groupId>org.onap.oparent</groupId>
50        <artifactId>oparent</artifactId>
51        <version>1.1.0</version>
52     </parent>
53         
54         <properties>
55                 <skipSigning>true</skipSigning>
56                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
57                 <project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>
58                 <project.authClientVersion>1.0.0-SNAPSHOT</project.authClientVersion>
59                 <project.dme2Version>3.1.200</project.dme2Version>
60                                 <!-- version>2.8.5.8</version -->
61                                 <!-- version>2.6.20</version -->
62                                 <!-- version>2.6.29</version -->
63                                 <!-- version>2.8.1</version -->
64                                 <!--  version>2.8.2.5</version -->
65                 <!-- jetty-version>8.1.7.v20120910</jetty-version -->
66                 <!-- jetty-version>7.2.0.v20101020</jetty-version -->
67                 <!-- project.jettyVersion>9.0.3.v20130506</project.jettyVersion -->
68                 <project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>
69                 
70                 <!--  SONAR  -->
71                  <jacoco.version>0.7.7.201606060606</jacoco.version>
72             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
73             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
74             <!-- Default Sonar configuration -->
75             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
76             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
77             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
78             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
79                 <nexusproxy>https://nexus.onap.org</nexusproxy>
80                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
81                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
82                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
83                 <sitePath>/content/sites/site/org/onap/aaf/cadi/${project.artifactId}/${project.version}</sitePath>
84         </properties>
85         <!-- ============================================================== -->
86         <!-- Define the major contributors and developers of CADI -->
87         <!-- ============================================================== -->
88         <contributors>
89                 <contributor>
90                         <name>Jonathan Gathman</name>
91                         <email></email>
92                         <timezone>CST</timezone>
93                 </contributor>
94         </contributors>
95
96         <dependencies>
97                 <dependency>
98                         <groupId>junit</groupId>
99                         <artifactId>junit</artifactId>
100                         <version>4.10</version>
101                         <scope>test</scope>
102                 </dependency>
103         </dependencies>
104
105         <!-- ============================================================== -->
106         <!-- Define sub-projects (modules) -->
107         <!-- ============================================================== -->
108         <modules>
109         </modules>
110
111         <!-- ============================================================== -->
112         <!-- Define project-wide dependencies -->
113         <!-- ============================================================== -->
114         <dependencyManagement>
115                 <dependencies>
116                 <dependency>
117                         <groupId>org.mockito</groupId>
118                         <artifactId>mockito-all</artifactId>
119                         <version>1.9.5</version>
120                         <scope>test</scope>
121                         </dependency>
122                         <dependency>
123                                 <groupId>org.onap.aaf.authz</groupId>
124                                 <artifactId>authz-client</artifactId>
125                                 <version>${project.authClientVersion}</version>
126                         </dependency>
127
128                         <dependency>
129                                 <groupId>org.onap.aaf.cadi</groupId>
130                                 <artifactId>cadi-core</artifactId>
131                                 <version>${project.version}</version>
132                         </dependency>
133
134                         <dependency>
135                                 <groupId>org.onap.aaf.cadi</groupId>
136                                 <artifactId>cadi-core</artifactId>
137                                 <version>${project.version}</version>
138                                 <classifier>tests</classifier>
139                         </dependency>
140
141                         <dependency>
142                                 <groupId>org.onap.aaf.cadi</groupId>
143                                 <artifactId>cadi-cass</artifactId>
144                                 <version>${project.version}</version>
145                         </dependency>
146
147                         <dependency>
148                                 <groupId>org.onap.aaf.cadi</groupId>
149                                 <artifactId>cadi-aaf</artifactId>
150                                 <version>${project.version}</version>
151                         </dependency> 
152
153                     <dependency>
154                                 <groupId>org.onap.aaf.cadi</groupId>
155                                 <artifactId>cadi-aaf</artifactId>
156                                 <version>${project.version}</version>
157                                 <classifier>full</classifier>
158                         </dependency>
159
160                         <dependency>
161                                 <groupId>org.onap.aaf.cadi</groupId>
162                                 <artifactId>cadi-client</artifactId>
163                                 <version>${project.version}</version>
164                         </dependency>
165
166                         <dependency>
167                                 <groupId>org.onap.aaf.cadi</groupId>
168                                 <artifactId>cadi-tomcat</artifactId>
169                                 <version>${project.version}</version>
170                         </dependency>
171
172                         <dependency>
173                                 <groupId>org.onap.aaf.cadi</groupId>
174                                 <artifactId>cadi-tguard</artifactId>
175                                 <version>${project.version}</version>
176                         </dependency>
177
178                         <dependency>
179                                 <groupId>org.onap.aaf.inno</groupId>
180                                 <artifactId>env</artifactId>
181                                 <version>${project.innoVersion}</version>
182                         </dependency>
183
184                         <dependency>
185                                 <groupId>org.onap.aaf.inno</groupId>
186                                 <artifactId>rosetta</artifactId>
187                                 <version>${project.innoVersion}</version>
188                         </dependency>
189
190                         <dependency>
191                                 <groupId>org.eclipse.jetty</groupId>
192                                 <artifactId>jetty-servlet</artifactId>
193                                 <version>9.0.3.v20130506</version>
194                         </dependency>
195
196                         <dependency>
197                                 <groupId>org.eclipse.jetty</groupId>
198                                 <artifactId>jetty-webapp</artifactId>
199                                 <version>9.0.3.v20130506</version>
200                         </dependency>
201
202                         <dependency>
203                                 <groupId>org.eclipse.jetty.aggregate</groupId>
204                                 <artifactId>jetty-all</artifactId>
205                                 <version>9.0.3.v20130506</version>
206                         </dependency>
207
208                         <dependency>
209                                 <groupId>javax.servlet</groupId>
210                                 <artifactId>servlet-api</artifactId>
211                                 <version>2.5</version>
212                         </dependency>
213
214                         <dependency>
215                                 <groupId>com.att.aft</groupId>
216                                 <artifactId>dme2</artifactId>
217                                 <version>${project.dme2Version}</version>
218                                 <exclusions>
219                                         <exclusion>
220                                                 <groupId>org.slf4j</groupId>
221                                                 <artifactId>slf4j-log4j12</artifactId>
222                                         </exclusion>
223                                         <exclusion>
224                                                 <groupId>log4j</groupId>
225                                                 <artifactId>log4j</artifactId>
226                                         </exclusion>
227                                         <exclusion>
228                                                 <groupId>com.att.javax.servlet</groupId>
229                                                 <artifactId>servlet-api</artifactId>
230                                         </exclusion>
231                                         <exclusion>
232                                                 <groupId>javax.mail</groupId>
233                                                 <artifactId>mail</artifactId>
234                                         </exclusion>
235
236                                 </exclusions>
237                         </dependency>
238
239                         <dependency>
240                                 <groupId>org.slf4j</groupId>
241                                 <artifactId>slf4j-api</artifactId>
242                                 <version>1.7.5</version>
243                         </dependency>
244                 </dependencies>
245         </dependencyManagement>
246
247         <!-- ============================================================== -->
248         <!-- Define common plugins and make them available for all modules -->
249         <!-- ============================================================== -->
250         <build>
251                 <testSourceDirectory>src/test/java</testSourceDirectory>
252                 <plugins>
253
254                                 <plugin>
255                                         <inherited>true</inherited>
256                                         <groupId>org.apache.maven.plugins</groupId>
257                                         <artifactId>maven-compiler-plugin</artifactId>
258                                         <version>2.3.2</version>
259                                         <configuration>
260                                                 <source>1.7</source>
261                                                 <target>1.7</target>
262                                         </configuration>
263                                 </plugin>
264         
265                                 <plugin>
266                                         <groupId>org.apache.maven.plugins</groupId>
267                                         <version>2.4</version>
268                                         <artifactId>maven-jar-plugin</artifactId>
269                                         <configuration>
270                                                 <outputDirectory>target</outputDirectory>
271                                                 <archive>
272                                                         <manifestEntries>
273                                                                 <Sealed>true</Sealed>
274                                                         </manifestEntries>
275                                                 </archive>
276                                         </configuration>
277                                 </plugin>
278                                 
279                                 <plugin>
280                                   <groupId>org.apache.maven.plugins</groupId>
281                                   <artifactId>maven-surefire-plugin</artifactId>
282                                   <version>2.17</version>
283                                   <configuration>
284                                         <skipTests>false</skipTests>
285                                         <includes>
286                                           <include>**/JU*.java</include>
287                                         </includes>
288                                         <excludes>
289                                                 <!-- <exclude>**/JU_LocalLur.java</exclude> -->
290                                                 <!-- <exclude>**/JU_BufferedServletInputStream.java</exclude> -->
291                                                 <!--<exclude>**/JU_Passcode.java</exclude> -->
292                                                 <!--<exclude>**/JU_XReader.java</exclude>  -->
293                                                 <exclude>**/JU_CASS.java</exclude>
294                                                 <exclude>**/JU_PropertyLocator.java</exclude>
295                                                 <exclude>**/JU_PermEval.java</exclude>
296                                                 <exclude>**/JU_JMeter.java</exclude>
297                                                 <exclude>**/JU_Lur2_0Call.java</exclude>
298                                         </excludes>   
299                                   </configuration>
300                                 </plugin>
301
302                                 <plugin>
303                                         <groupId>org.apache.maven.plugins</groupId>
304                                         <artifactId>maven-jarsigner-plugin</artifactId>
305                                         <version>1.2</version>
306                                         <executions>
307                                                 <execution>
308                                                         <id>sign</id>
309                                                         <goals>
310                                                                 <goal>sign</goal>
311                                                         </goals>
312                                                         <configuration>
313                                                                 <!--  skip>${skipSigning}</skip -->
314                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
315                                                         </configuration>
316                                                 </execution>
317                                                 <execution>
318                                                         <id>verify</id>
319                                                         <goals>
320                                                                 <goal>verify</goal>
321                                                         </goals>
322                                                         <configuration>
323                                                                 <archive>target/${project.artifactId}-${project.version}.jar</archive>
324                                                         </configuration>
325                                                 </execution>
326                                         </executions>
327                                         <configuration>
328                                                 <skip>true</skip>
329                                                 <alias>cadi</alias>
330                                                 <keystore>/Volumes/Data/src/cadi/keys/aaf_cadi.jks</keystore>
331                                                 <storepass>Surprise!</storepass>
332                                                 <keypass>Surprise!</keypass>
333                                                 <verbose>true</verbose>
334                                                 <certs>true</certs>
335                                         </configuration>
336                                 </plugin>
337                 
338                 
339                                 <plugin>
340                                         <artifactId>maven-release-plugin</artifactId>
341                                         <version>2.5.2</version>
342                                         <configuration>
343                                                 <goals>-s ${mvn.settings} deploy</goals>
344                                         </configuration>
345                                 </plugin>
346         
347                                 <plugin>
348                                         <artifactId>maven-assembly-plugin</artifactId>
349                                         <version>2.5.5</version>
350                                 </plugin>
351         
352                                 <plugin>
353                                         <groupId>org.apache.maven.plugins</groupId>
354                                         <artifactId>maven-deploy-plugin</artifactId>
355                                         <version>2.8.1</version>
356                                         <configuration>
357                                                 <skip>false</skip>
358                                         </configuration>
359         
360                                 </plugin>
361         
362                                 <plugin>
363                                         <groupId>org.apache.maven.plugins</groupId>
364                                         <artifactId>maven-dependency-plugin</artifactId>
365                                         <version>2.10</version>
366                                 </plugin>
367                                 
368                 <plugin>
369                         <groupId>org.apache.maven.plugins</groupId>
370                         <artifactId>maven-javadoc-plugin</artifactId>
371                         <version>2.10.4</version>
372                         <configuration>
373                         <failOnError>false</failOnError>
374                         </configuration>
375                         <executions>
376                                 <execution>
377                                         <id>attach-javadocs</id>
378                                         <goals>
379                                                 <goal>jar</goal>
380                                         </goals>
381                                 </execution>
382                         </executions>
383                 </plugin> 
384            
385            
386                <plugin>
387                       <groupId>org.apache.maven.plugins</groupId>
388                       <artifactId>maven-source-plugin</artifactId>
389                       <version>2.2.1</version>
390                       <executions>
391                         <execution>
392                           <id>attach-sources</id>
393                           <goals>
394                             <goal>jar-no-fork</goal>
395                           </goals>
396                         </execution>
397                       </executions>
398                     </plugin>
399         
400  
401                         
402                 <plugin>
403                                 <groupId>org.codehaus.mojo</groupId>
404                                 <artifactId>cobertura-maven-plugin</artifactId>
405                                 <version>2.7</version>
406                                 <configuration>
407                                         <formats>
408                                         <format>html</format>
409                                         <format>xml</format>
410                                   </formats>
411                                 </configuration>
412                  </plugin>
413
414                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
415                                         only. It has no influence on the Maven build itself. -->
416                                 <plugin>
417                                         <groupId>org.eclipse.m2e</groupId>
418                                         <artifactId>lifecycle-mapping</artifactId>
419                                         <version>1.0.0</version>
420                                         <configuration>
421                                                 <lifecycleMappingMetadata>
422                                                         <pluginExecutions>
423                                                                 <pluginExecution>
424                                                                         <pluginExecutionFilter>
425                                                                                 <groupId>
426                                                                                         org.codehaus.mojo
427                                                                                 </groupId>
428                                                                                 <artifactId>
429                                                                                         jaxb2-maven-plugin
430                                                                                 </artifactId>
431                                                                                 <versionRange>
432                                                                                         [1.3,)
433                                                                                 </versionRange>
434                                                                                 <goals>
435                                                                                         <goal>xjc</goal>
436                                                                                 </goals>
437                                                                         </pluginExecutionFilter>
438                                                                         <action>
439                                                                                 <ignore />
440                                                                         </action>
441                                                                 </pluginExecution>
442                                                         </pluginExecutions>
443                                                 </lifecycleMappingMetadata>
444                                         </configuration>
445                                 </plugin>
446                                   <plugin>
447                                 <groupId>org.sonatype.plugins</groupId>
448                                 <artifactId>nexus-staging-maven-plugin</artifactId>
449                                 <version>1.6.7</version>
450                                 <extensions>true</extensions>
451                                 <configuration>
452                                         <nexusUrl>${nexusproxy}</nexusUrl>
453                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
454                                         <serverId>ecomp-staging</serverId>
455                                 </configuration>
456                         </plugin> 
457                         
458                         <plugin>
459           <groupId>org.jacoco</groupId>
460           <artifactId>jacoco-maven-plugin</artifactId>
461           <version>${jacoco.version}</version>
462           <configuration>
463             <excludes>
464               <exclude>**/gen/**</exclude>
465               <exclude>**/generated-sources/**</exclude>
466               <exclude>**/yang-gen/**</exclude>
467               <exclude>**/pax/**</exclude>
468             </excludes>
469           </configuration>
470           <executions>
471
472             <execution>
473               <id>pre-unit-test</id>
474               <goals>
475                 <goal>prepare-agent</goal>
476               </goals>
477               <configuration>
478                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
479                 <propertyName>surefireArgLine</propertyName>
480               </configuration>
481             </execution>
482             
483        
484             <execution>
485               <id>post-unit-test</id>
486               <phase>test</phase>
487               <goals>
488                 <goal>report</goal>
489               </goals>
490               <configuration>
491                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
492                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
493               </configuration>
494             </execution>
495             <execution>
496               <id>pre-integration-test</id>
497               <phase>pre-integration-test</phase>
498               <goals>
499                 <goal>prepare-agent</goal>
500               </goals>
501               <configuration>
502                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
503
504                 <propertyName>failsafeArgLine</propertyName>
505               </configuration>
506             </execution>
507
508        
509             <execution>
510               <id>post-integration-test</id>
511               <phase>post-integration-test</phase>
512               <goals>
513                 <goal>report</goal>
514               </goals>
515               <configuration>
516                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
517                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
518               </configuration>
519             </execution>
520           </executions>
521         </plugin>       
522
523                         </plugins>                      
524         </build>
525         <distributionManagement>
526                 <repository>
527                         <id>ecomp-releases</id>
528                         <name>AAF Release Repository</name>
529                         <url>${nexusproxy}${releaseNexusPath}</url>
530                 </repository>
531                 <snapshotRepository>
532                         <id>ecomp-snapshots</id>
533                         <name>AAF Snapshot Repository</name>
534                         <url>${nexusproxy}${snapshotNexusPath}</url>
535                 </snapshotRepository>
536                 <site>
537                         <id>ecomp-site</id>
538                         <url>dav:${nexusproxy}${sitePath}</url>
539                 </site>
540         </distributionManagement>
541 </project>