Modify deploy plugin for authz
[aaf/authz.git] / cadi / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * ============LICENSE_START====================================================
4  * org.onap.aaf
5  * ===========================================================================
6  * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7  * ===========================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END====================================================
20  *
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23         <modelVersion>4.0.0</modelVersion>
24         <groupId>org.onap.aaf.cadi</groupId>
25         <artifactId>parent</artifactId>
26         <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
27         <version>1.5.0-SNAPSHOT</version>
28         <inceptionYear>2015-07-20</inceptionYear>
29         <organization>
30                 <name>ONAP</name>
31         </organization>
32         <packaging>pom</packaging>
33
34         
35
36         
37         <properties>
38                 <skipSigning>true</skipSigning>
39                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40                 <project.miscVersion>1.3.0-SNAPSHOT</project.miscVersion>
41                 <project.authClientVersion>2.10-SNAPSHOT</project.authClientVersion>
42                 <project.jettyVersion>9.3.9.v20160517</project.jettyVersion>
43                 <powermock.version>1.5.1</powermock.version>
44                 <!--  SONAR  -->
45                  <jacoco.version>0.7.7.201606060606</jacoco.version>
46             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
47             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48             <!-- Default Sonar configuration -->
49             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
50             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
51             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
52             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
53                 <nexusproxy>https://nexus.onap.org</nexusproxy>
54                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
55                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
56                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
57                 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
58         </properties>
59
60         <!-- ============================================================== -->
61         <!-- Define the major contributors and developers of CADI -->
62         <!-- ============================================================== -->
63         <developers>
64                 <developer>
65                         <name>Jonathan Gathman</name>
66                         <email>jonathan.gathman@att.com</email>
67                         <organization>ATT</organization>
68                         <roles>
69                                 <role>Architect</role>
70                                 <role>Lead Developer</role>
71                         </roles>
72                 </developer>
73                 <developer>
74                         <name>Gabe Maurer</name>
75                         <email>gabe.maurer@att.com</email>
76                         <organization>ATT</organization>
77                         <roles>
78                                 <role>Developer</role>
79                         </roles>
80                 </developer>
81                 <developer>
82                         <name>Ian Howell</name>
83                         <email>ian.howell@att.com</email>
84                         <organization>ATT</organization>
85                         <roles>
86                                 <role>Developer</role>
87                         </roles>
88                 </developer>
89                 <developer>
90                         <name>Sai Gandham</name>
91                         <email>sai.gandham@att.com</email>
92                         <organization>ATT</organization>
93                         <roles>
94                                 <role>Developer</role>
95                         </roles>
96                 </developer>
97         </developers>
98
99
100         <dependencies>
101                 <dependency>
102                         <groupId>org.mockito</groupId>
103                         <artifactId>mockito-all</artifactId>
104                         <version>1.9.5</version>
105                         <scope>test</scope>
106                 </dependency>
107         
108                 <dependency>
109                         <groupId>org.powermock</groupId>
110                         <artifactId>powermock-module-junit4</artifactId>
111                         <version>${powermock.version}</version>
112                         <scope>test</scope>
113                 </dependency>
114                 <dependency>
115                         <groupId>org.powermock</groupId>
116                         <artifactId>powermock-api-mockito</artifactId>
117                         <version>${powermock.version}</version>
118                         <scope>test</scope>
119                 </dependency>
120
121                 <dependency>
122                         <groupId>junit</groupId>
123                         <artifactId>junit</artifactId>
124                         <version>4.10</version>
125                         <scope>test</scope>
126                 </dependency>
127         </dependencies>
128
129         <!-- ============================================================== -->
130         <!-- Define sub-projects (modules) -->
131         <!-- ============================================================== -->
132         <modules>
133                 <module>core</module>
134                 <module>client</module>
135                 <module>aaf</module>
136                 <module>cass</module>
137                 
138                 <module>oauth-enduser</module>
139                 <module>shiro</module>
140         </modules>
141
142         <!-- ============================================================== -->
143         <!-- Define project-wide dependencies -->
144         <!-- ============================================================== -->
145         <dependencyManagement>
146                 <dependencies>
147                         <dependency>
148                                 <groupId>org.onap.aaf.auth</groupId>
149                                 <artifactId>aaf-auth-client</artifactId>
150                                 <version>${project.authClientVersion}</version>
151                         </dependency>
152
153                         <dependency>
154                                 <groupId>org.onap.aaf.cadi</groupId>
155                                 <artifactId>aaf-cadi-core</artifactId>
156                                 <version>${project.version}</version>
157                         </dependency>
158
159                         <dependency>
160                                 <groupId>org.onap.aaf.cadi</groupId>
161                                 <artifactId>aaf-cadi-oauth</artifactId>
162                                 <version>${project.version}</version>
163                         </dependency>
164
165
166                         <!-- Prevent Cycles in Testing  -->
167                         <dependency>
168                                 <groupId>org.onap.aaf.cadi</groupId>
169                                 <artifactId>aaf-cadi-core</artifactId>
170                                 <version>${project.version}</version>
171                                 <classifier>tests</classifier>
172                         </dependency>
173
174                         <dependency>
175                                 <groupId>org.onap.aaf.cadi</groupId>
176                                 <artifactId>aaf-cadi-jetty</artifactId>
177                                 <version>${project.version}</version>
178                         </dependency>
179
180                         <dependency>
181                                 <groupId>org.onap.aaf.cadi</groupId>
182                                 <artifactId>aaf-cadi-cass</artifactId>
183                                 <version>${project.version}</version>
184                         </dependency>
185
186                         <dependency>
187                                 <groupId>org.onap.aaf.cadi</groupId>
188                                 <artifactId>aaf-cadi-aaf</artifactId>
189                                 <version>${project.version}</version>
190                         </dependency>
191
192                         <dependency>
193                                 <groupId>org.onap.aaf.cadi</groupId>
194                                 <artifactId>aaf-cadi-aaf</artifactId>
195                                 <version>${project.version}</version>
196                                 <classifier>full</classifier>
197                         </dependency>
198
199                         <dependency>
200                                 <groupId>org.onap.aaf.cadi</groupId>
201                                 <artifactId>aaf-cadi-client</artifactId>
202                                 <version>${project.version}</version>
203                         </dependency>
204
205                         <dependency>
206                                 <groupId>org.onap.aaf.misc</groupId>
207                                 <artifactId>aaf-misc-env</artifactId>
208                                 <version>${project.miscVersion}</version>
209                         </dependency>
210
211                         <dependency>
212                                 <groupId>org.onap.aaf.misc</groupId>
213                                 <artifactId>aaf-misc-rosetta</artifactId>
214                                 <version>${project.miscVersion}</version>
215                         </dependency>
216
217                         <dependency>
218                                 <groupId>org.onap.aaf.misc</groupId>
219                                 <artifactId>aaf-misc-log4j</artifactId>
220                                 <version>${project.miscVersion}</version>
221                         </dependency>
222
223                         <dependency>
224                                 <groupId>org.eclipse.jetty</groupId>
225                                 <artifactId>jetty-servlet</artifactId>
226                                 <version>${project.jettyVersion}</version>
227                         </dependency>
228                         
229                         <dependency>
230                                 <groupId>org.eclipse.jetty</groupId>
231                                 <artifactId>jetty-io</artifactId>
232                                 <version>${project.jettyVersion}</version>
233                         </dependency>
234         
235                         <dependency>
236                                 <groupId>org.eclipse.jetty</groupId>
237                                 <artifactId>jetty-security</artifactId>
238                                 <version>${project.jettyVersion}</version>
239                         </dependency>
240         
241                         <dependency>
242                                 <groupId>org.eclipse.jetty</groupId>
243                                 <artifactId>jetty-http</artifactId>
244                                 <version>${project.jettyVersion}</version>
245                         </dependency>
246         
247                         <dependency>
248                                 <groupId>org.eclipse.jetty</groupId>
249                                 <artifactId>jetty-util</artifactId>
250                                 <version>${project.jettyVersion}</version>
251                         </dependency>
252         
253                         <dependency>
254                                 <groupId>org.eclipse.jetty</groupId>
255                                 <artifactId>jetty-server</artifactId>
256                                 <version>${project.jettyVersion}</version>
257                         </dependency>
258
259                         <dependency>
260                             <groupId>javax.servlet</groupId>
261                             <artifactId>servlet-api</artifactId>
262                                 <version>2.5</version>
263                         </dependency>
264                         
265                         <dependency>
266                                 <groupId>org.slf4j</groupId>
267                                 <artifactId>slf4j-api</artifactId>
268                                 <version>1.7.5</version>
269                         </dependency>
270                 </dependencies>
271         </dependencyManagement>
272
273         <!-- ============================================================== -->
274         <!-- Define common plugins and make them available for all modules -->
275         <!-- ============================================================== -->
276         <build>
277                 <testSourceDirectory>src/test/java</testSourceDirectory>
278                 <plugins>
279                 </plugins>
280                 <pluginManagement>                      
281                         <plugins>
282                                 <plugin>
283                                         <inherited>true</inherited>
284                                         <groupId>org.apache.maven.plugins</groupId>
285                                         <artifactId>maven-compiler-plugin</artifactId>
286                                         <version>2.3.2</version>
287                                         <configuration>
288                                                 <source>1.7</source>
289                                                 <target>1.7</target>
290                                         </configuration>
291                                 </plugin>
292         
293                                 <plugin>
294                                         <groupId>org.apache.maven.plugins</groupId>
295                                         <version>2.4</version>
296                                         <artifactId>maven-jar-plugin</artifactId>
297                                         <configuration>
298                                                 <outputDirectory>target</outputDirectory>
299                                                 <archive>
300                                                         <manifestEntries>
301                                                                 <Sealed>true</Sealed>
302                                                         </manifestEntries>
303                                                 </archive>
304                                         </configuration>
305                                 </plugin>
306
307                                 <!-- Define the javadoc plugin -->
308                                 <plugin>
309                                         <groupId>org.apache.maven.plugins</groupId>
310                                         <artifactId>maven-javadoc-plugin</artifactId>
311                                         <version>2.10</version>
312                                         <configuration>
313                                                 <excludePackageNames>org.opendaylight.*</excludePackageNames>
314                                         </configuration>
315                                 </plugin>
316         
317                                 <plugin>
318                                         <artifactId>maven-release-plugin</artifactId>
319                                         <version>2.5.2</version>
320                                         <configuration>
321                                                 <goals>-s ${mvn.settings} deploy</goals>
322                                         </configuration>
323                                 </plugin>
324         
325                                 <plugin>
326                                         <artifactId>maven-assembly-plugin</artifactId>
327                                         <version>2.5.5</version>
328                                 </plugin>
329         
330                                 <plugin>
331                                         <groupId>org.apache.maven.plugins</groupId>
332                                         <artifactId>maven-deploy-plugin</artifactId>
333                                         <version>2.8.1</version>
334                                         <configuration>
335                                                 <skip>true</skip>
336                                         </configuration>
337         
338                                 </plugin>
339         
340                                 <plugin>
341                                         <groupId>org.apache.maven.plugins</groupId>
342                                         <artifactId>maven-dependency-plugin</artifactId>
343                                         <version>2.10</version>
344                                 </plugin>
345         
346                                 <!-- Maven surefire plugin for testing -->
347                                 <plugin>
348                                         <artifactId>maven-surefire-plugin</artifactId>
349                                         <version>2.17</version>
350                                         <configuration>
351                                                 <skipTests>true</skipTests>
352                                         </configuration>
353                                 </plugin>
354                                 
355                                 <!--This plugin's configuration is used to store Eclipse m2e settings 
356                                         only. It has no influence on the Maven build itself. -->
357                                 <plugin>
358                                         <groupId>org.eclipse.m2e</groupId>
359                                         <artifactId>lifecycle-mapping</artifactId>
360                                         <version>1.0.0</version>
361                                         <configuration>
362                                                 <lifecycleMappingMetadata>
363                                                         <pluginExecutions>
364                                                                 <pluginExecution>
365                                                                         <pluginExecutionFilter>
366                                                                                 <groupId>
367                                                                                         org.codehaus.mojo
368                                                                                 </groupId>
369                                                                                 <artifactId>
370                                                                                         jaxb2-maven-plugin
371                                                                                 </artifactId>
372                                                                                 <versionRange>
373                                                                                         [1.3,)
374                                                                                 </versionRange>
375                                                                                 <goals>
376                                                                                         <goal>xjc</goal>
377                                                                                 </goals>
378                                                                         </pluginExecutionFilter>
379                                                                         <action>
380                                                                                 <ignore />
381                                                                         </action>
382                                                                 </pluginExecution>
383                                                         </pluginExecutions>
384                                                 </lifecycleMappingMetadata>
385                                         </configuration>
386                                 </plugin>
387                                                                 <plugin>
388                                 <groupId>org.sonatype.plugins</groupId>
389                                 <artifactId>nexus-staging-maven-plugin</artifactId>
390                                 <version>1.6.7</version>
391                                 <extensions>true</extensions>
392                                 <configuration>
393                                         <nexusUrl>${nexusproxy}</nexusUrl>
394                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
395                                         <serverId>ecomp-staging</serverId>
396                                 </configuration>
397                         </plugin>               
398                         <plugin>
399                                 <groupId>org.jacoco</groupId>
400                                 <artifactId>jacoco-maven-plugin</artifactId>
401                                 <version>0.7.7.201606060606</version>
402                                 <configuration>
403                                         <dumpOnExit>true</dumpOnExit>
404                                         <includes>
405                                                 <include>org.onap.aaf.*</include>
406                                         </includes>
407                                 </configuration>
408                                 <executions>
409                                         <execution>
410                                                 <id>pre-unit-test</id>
411                                                 <goals>
412                                                         <goal>prepare-agent</goal>
413                                                 </goals>
414                                                 <configuration>
415                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
416                                                         <!-- <append>true</append> -->
417                                                 </configuration>
418                                         </execution>
419                                         <execution>
420                                                 <id>pre-integration-test</id>
421                                                 <phase>pre-integration-test</phase>
422                                                 <goals>
423                                                         <goal>prepare-agent</goal>
424                                                 </goals>
425                                                 <configuration>
426                                                         <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
427                                                         <!-- <append>true</append> -->
428                                                 </configuration>
429                                         </execution>
430                                         <execution>
431                         <goals>
432                             <goal>merge</goal>
433                         </goals>
434                         <phase>post-integration-test</phase>
435                         <configuration>
436                             <fileSets>
437                                 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
438                                     <directory>${project.build.directory}/coverage-reports</directory>
439                                     <includes>
440                                         <include>*.exec</include>
441                                     </includes>
442                                 </fileSet>
443                             </fileSets>
444                             <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
445                         </configuration>
446                     </execution>
447                                 </executions>
448                         </plugin>
449                         </plugins>
450                 </pluginManagement>                     
451         </build>
452
453
454         <distributionManagement>
455                 <repository>
456                         <id>ecomp-releases</id>
457                         <name>AAF Release Repository</name>
458                         <url>${nexusproxy}${releaseNexusPath}</url>
459                 </repository>
460                 <snapshotRepository>
461                         <id>ecomp-snapshots</id>
462                         <name>AAF Snapshot Repository</name>
463                         <url>${nexusproxy}${snapshotNexusPath}</url>
464                 </snapshotRepository>
465                 <site>
466                         <id>ecomp-site</id>
467                         <url>dav:${nexusproxy}${sitePath}</url>
468                 </site>
469         </distributionManagement>
470         
471 </project>