Modify authz pom files.
[aaf/authz.git] / auth / 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"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25         <modelVersion>4.0.0</modelVersion>
26         <groupId>org.onap.aaf.auth</groupId>
27         <artifactId>parent</artifactId>
28         <version>2.1.0-SNAPSHOT</version>
29         <name>AAF Auth Parent</name>
30         <packaging>pom</packaging>
31         <properties>
32                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33                 <skipTests>true</skipTests>
34                 <project.interfaceVersion>2.10-SNAPSHOT</project.interfaceVersion>
35                 <project.miscVersion>1.3.0-SNAPSHOT</project.miscVersion>
36                 <project.cadiVersion>1.5.0-SNAPSHOT</project.cadiVersion>
37                 <!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
38                 <project.jettyVersion>9.4.8.v20171121</project.jettyVersion>
39                 <powermock.version>1.5.1</powermock.version>
40                 <project.conf_dir>/opt/app/osaaf/etc</project.conf_dir>
41         </properties>
42
43         <developers>
44                 <developer>
45                         <name>Jonathan Gathman</name>
46                         <email>jonathan.gathman@att.com</email>
47                         <organization>ATT</organization>
48                         <roles>
49                                 <role>Architect</role>
50                                 <role>Lead Developer</role>
51                         </roles>
52                 </developer>
53                 <developer>
54                         <name>Gabe Maurer</name>
55                         <email>gabe.maurer@att.com</email>
56                         <organization>ATT</organization>
57                         <roles>
58                                 <role>Developer</role>
59                         </roles>
60                 </developer>
61                 <developer>
62                         <name>Ian Howell</name>
63                         <email>ian.howell@att.com</email>
64                         <organization>ATT</organization>
65                         <roles>
66                                 <role>Developer</role>
67                         </roles>
68                 </developer>
69                 <developer>
70                         <name>Sai Gandham</name>
71                         <email>sai.gandham@att.com</email>
72                         <organization>ATT</organization>
73                         <roles>
74                                 <role>Developer</role>
75                         </roles>
76                 </developer>
77         </developers>
78
79         <build>
80                 <pluginManagement>
81                         <plugins>
82                                 <plugin>
83                                         <groupId>org.apache.maven.plugins</groupId>
84                                         <artifactId>maven-compiler-plugin</artifactId>
85                                         <version>2.3.2</version>
86                                         <configuration>
87                                                 <source>1.8</source>
88                                                 <target>1.8</target>
89                                         </configuration>
90                                 </plugin>
91                                 <plugin>
92                                         <groupId>org.apache.maven.plugins</groupId>
93                                         <artifactId>maven-deploy-plugin</artifactId>
94                                         <version>2.6</version>
95                                         <configuration>
96                                                 <skip>false</skip>
97                                         </configuration>
98                                 </plugin>
99
100                                 <plugin>
101                                         <groupId>org.apache.maven.plugins</groupId>
102                                         <artifactId>maven-surefire-plugin</artifactId>
103                                         <version>2.17</version>
104                                         <configuration>
105                                                 <skipTests>${skipTests}</skipTests>
106                                                 <includes>
107                                                         <include>**/JU*.java</include>
108                                                 </includes>
109                                                 <excludes>
110                                                 </excludes>
111
112                                         </configuration>
113                                 </plugin>
114
115                                 <plugin>
116                                         <groupId>org.apache.maven.plugins</groupId>
117                                         <artifactId>maven-failsafe-plugin</artifactId>
118                                         <version>2.17</version>
119                                         <configuration>
120                                                 <skipTests>true</skipTests>
121                                         </configuration>
122                                         <executions>
123                                                 <execution>
124                                                         <id>integration-test</id>
125                                                         <goals>
126                                                                 <goal>integration-test</goal>
127                                                                 <goal>verify</goal>
128                                                         </goals>
129                                                 </execution>
130                                         </executions>
131                                 </plugin>
132                                 
133                                 <!--  Builds O/S Command line ready jars and scripts, ready to run/zip -->
134                                 <plugin>
135                                         <groupId>org.codehaus.mojo</groupId>
136                                         <artifactId>appassembler-maven-plugin</artifactId>
137                                         <version>1.10</version>
138                                         <executions>
139                                                 <execution>
140                                                         <goals>
141                                                                 <goal>assemble</goal>
142                                                         </goals>
143                                                         <phase>install</phase>
144                                                 </execution>
145                                         </executions>
146                                         <configuration>
147                                                 <programs/> <!-- this set in projects that have programs -->
148                                                 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
149                                                 <copyConfigurationDirectory>false</copyConfigurationDirectory>
150                                                 <configurationDirectory>etc</configurationDirectory>
151                                                 <repositoryName>lib</repositoryName>
152                                                 <repositoryLayout>flat</repositoryLayout>
153                                         </configuration>
154                                 </plugin>
155                                 
156                                 <!-- Build Docker Image -->
157                                 <plugin>
158                                         <groupId>com.spotify</groupId>
159                                         <artifactId>docker-maven-plugin</artifactId>
160                                         <version>1.0.0</version>
161                                         <configuration>
162                                                 <imageName>onap/osaaf/${project.artifactId}</imageName>
163                                                 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
164                                                 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
165                                                 <imageTags>
166                                                         <imageTag>latest</imageTag>
167                                                         <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
168                                                         <imageTag>${project.docker.latesttag.version}</imageTag>
169                                                 </imageTags>
170                                                 <forceTags>true</forceTags>
171                                                 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory> 
172                                                         <filtering>true</filtering> <includes> <include>**/**</include> </includes> 
173                                                         </resource> </resources> -->
174                                                 <resources>
175                                                         <resource>
176                                                                 <targetPath>/</targetPath>
177                                                                 <directory>${project.build.directory}/opt</directory>
178                                                                 <include>${project.build.finalName}.jar</include>
179                                                         </resource>
180                                                         <resource>
181                                                                 <targetPath>/</targetPath>
182                                                                 <directory>${project.build.directory}</directory>
183                                                                 <include>**/**</include>
184                                                         </resource>
185                                                 </resources>
186                                         </configuration>
187                                         <executions>
188                                                 <execution>
189                                                         <id>build-image</id>
190                                                         <phase>package</phase>
191                                                         <goals>
192                                                                 <goal>build</goal>
193                                                         </goals>
194                                                         <configuration>
195                                                                 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
196                                                         </configuration>
197                                                 </execution>
198                                 
199                                                 <execution>
200                                                         <id>tag-image-project-version</id>
201                                                         <phase>package</phase>
202                                                         <goals>
203                                                                 <goal>tag</goal>
204                                                         </goals>
205                                                         <configuration>
206                                                                 <image>onap/osaaf/${project.artifactId}</image>
207                                                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
208                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
209                                                         </configuration>
210                                                 </execution>
211                                 
212                                                 <execution>
213                                                         <id>tag-image-latest</id>
214                                                         <phase>package</phase>
215                                                         <goals>
216                                                                 <goal>tag</goal>
217                                                         </goals>
218                                                         <configuration>
219                                                                 <image>onap/aaf/authz-service</image>
220                                                                 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
221                                                                 <skipDockerTag>${skip.docker.push}</skipDockerTag>
222                                                         </configuration>
223                                                 </execution>
224                                 
225                                                 <execution>
226                                                         <id>push-image-latest</id>
227                                                         <phase>deploy</phase>
228                                                         <goals>
229                                                                 <goal>push</goal>
230                                                         </goals>
231                                                         <configuration>
232                                                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
233                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
234                                                         </configuration>
235                                                 </execution>
236                                 
237                                                 <execution>
238                                                         <id>push-image</id>
239                                                         <phase>deploy</phase>
240                                                         <goals>
241                                                                 <goal>push</goal>
242                                                         </goals>
243                                                         <configuration>
244                                                                 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
245                                                                 <skipDockerPush>${skip.docker.push}</skipDockerPush>
246                                                         </configuration>
247                                                 </execution>
248                                         </executions>
249                                 </plugin>
250                         </plugins>
251                 </pluginManagement>
252         </build>
253
254         <dependencies>
255                 <dependency>
256                         <groupId>org.mockito</groupId>
257                         <artifactId>mockito-all</artifactId>
258                         <version>1.9.5</version>
259                         <scope>test</scope>
260                 </dependency>
261                 <dependency>
262                         <groupId>org.powermock</groupId>
263                         <artifactId>powermock-module-junit4</artifactId>
264                         <version>${powermock.version}</version>
265                         <scope>test</scope>
266                 </dependency>
267                 <dependency>
268                         <groupId>org.powermock</groupId>
269                         <artifactId>powermock-api-mockito</artifactId>
270                         <version>${powermock.version}</version>
271                         <scope>test</scope>
272                 </dependency>
273                 <dependency>
274                         <groupId>junit</groupId>
275                         <artifactId>junit</artifactId>
276                         <version>4.10</version>
277                         <scope>test</scope>
278                 </dependency>
279
280         </dependencies>
281
282         <modules>
283                 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
284                 <module>auth-core</module>
285                 <module>auth-cass</module>
286                 <module>auth-deforg</module>
287
288                 <module>auth-service</module>
289                 <module>auth-cmd</module>
290                 <module>auth-batch</module>
291
292                 <module>auth-gui</module>
293                 <module>auth-locate</module>
294                 <module>auth-oauth</module>
295                 <module>auth-certman</module>
296                 <module>auth-fs</module>
297                 <module>auth-hello</module>
298         </modules>
299
300         <dependencyManagement>
301                 <dependencies>
302                         <dependency>
303                                 <groupId>org.onap.aaf.misc</groupId>
304                                 <artifactId>aaf-misc-env</artifactId>
305                                 <version>${project.miscVersion}</version>
306                         </dependency>
307
308                         <dependency>
309                                 <groupId>org.onap.aaf.misc</groupId>
310                                 <artifactId>aaf-misc-log4j</artifactId>
311                                 <version>${project.miscVersion}</version>
312                         </dependency>
313
314                         <dependency>
315                                 <groupId>org.onap.aaf.misc</groupId>
316                                 <artifactId>aaf-misc-rosetta</artifactId>
317                                 <version>${project.miscVersion}</version>
318                         </dependency>
319
320                         <dependency>
321                                 <groupId>org.onap.aaf.misc</groupId>
322                                 <artifactId>aaf-misc-xgen</artifactId>
323                                 <version>${project.miscVersion}</version>
324                         </dependency>
325
326                         <dependency>
327                                 <groupId>org.onap.aaf.cadi</groupId>
328                                 <artifactId>aaf-cadi-core</artifactId>
329                                 <version>${project.cadiVersion}</version>
330                         </dependency>
331
332                         <dependency>
333                                 <groupId>org.onap.aaf.cadi</groupId>
334                                 <artifactId>aaf-cadi-client</artifactId>
335                                 <version>${project.cadiVersion}</version>
336                         </dependency>
337
338                         <dependency>
339                                 <groupId>org.onap.aaf.cadi</groupId>
340                                 <artifactId>aaf-cadi-aaf</artifactId>
341                                 <version>${project.cadiVersion}</version>
342                                 <exclusions>
343                                         <exclusion>
344                                                 <groupId>org.apache.cassandra</groupId>
345                                                 <artifactId>cassandra-all</artifactId>
346                                         </exclusion>
347                                 </exclusions>
348                         </dependency>
349
350                         <dependency>
351                                 <groupId>org.onap.aaf.auth</groupId>
352                                 <artifactId>aaf-auth-client</artifactId>
353                                 <version>${project.interfaceVersion}</version>
354                         </dependency>
355
356                         <dependency>
357                                 <groupId>org.onap.aaf.auth</groupId>
358                                 <artifactId>aaf-auth-core</artifactId>
359                                 <version>${project.version}</version>
360                         </dependency>
361
362                         <dependency>
363                                 <groupId>org.onap.aaf.auth</groupId>
364                                 <artifactId>aaf-auth-cass</artifactId>
365                                 <version>${project.version}</version>
366                         </dependency>
367
368                         <dependency>
369                                 <groupId>org.onap.aaf.auth</groupId>
370                                 <artifactId>aaf-auth-cmd</artifactId>
371                                 <version>${project.version}</version>
372                         </dependency>
373
374                         <dependency>
375                                 <groupId>org.onap.aaf.auth</groupId>
376                                 <artifactId>aaf-auth-oauth</artifactId>
377                                 <version>${project.version}</version>
378                         </dependency>
379
380                         <dependency>
381                                 <groupId>org.onap.aaf.auth</groupId>
382                                 <artifactId>aaf-auth-deforg</artifactId>
383                                 <version>${project.version}</version>
384                         </dependency>
385
386                         <dependency>
387                                 <groupId>javax.servlet</groupId>
388                                 <artifactId>servlet-api</artifactId>
389                                 <version>2.5</version>
390                         </dependency>
391
392                         <dependency>
393                                 <groupId>org.eclipse.jetty</groupId>
394                                 <artifactId>jetty-servlet</artifactId>
395                                 <version>${project.jettyVersion}</version>
396                         </dependency>
397
398                         <dependency>
399                                 <groupId>org.eclipse.jetty</groupId>
400                                 <artifactId>jetty-server</artifactId>
401                                 <version>${project.jettyVersion}</version>
402                         </dependency>
403
404                         <dependency>
405                                 <groupId>org.eclipse.jetty</groupId>
406                                 <artifactId>jetty-jmx</artifactId>
407                                 <version>${project.jettyVersion}</version>
408                         </dependency>
409
410                         <dependency>
411                                 <groupId>com.datastax.cassandra</groupId>
412                                 <artifactId>cassandra-all</artifactId>
413                                 <version>3.3.0</version>
414                                 <exclusions>
415                                         <exclusion>
416                                                 <groupId>org.slf4j</groupId>
417                                                 <artifactId>slf4j-log4j12</artifactId>
418                                         </exclusion>
419                                         <exclusion>
420                                                 <groupId>log4j</groupId>
421                                                 <artifactId>log4j</artifactId>
422                                         </exclusion>
423                                 </exclusions>
424                         </dependency>
425                         <dependency>
426                                 <groupId>com.datastax.cassandra</groupId>
427                                 <artifactId>cassandra-driver-core</artifactId>
428                                 <!-- version>1.0.3</version -->
429                                 <!-- version>1.0.5</version -->
430                                 <version>3.3.0</version>
431                                 <exclusions>
432                                         <exclusion>
433                                                 <groupId>org.slf4j</groupId>
434                                                 <artifactId>slf4j-log4j12</artifactId>
435                                         </exclusion>
436                                         <exclusion>
437                                                 <groupId>log4j</groupId>
438                                                 <artifactId>log4j</artifactId>
439                                         </exclusion>
440                                 </exclusions>
441                         </dependency>
442
443                         <dependency>
444                                 <groupId>org.slf4j</groupId>
445                                 <artifactId>slf4j-log4j12</artifactId>
446                                 <version>1.7.5</version>
447                         </dependency>
448
449                         <dependency>
450                                 <groupId>javax.mail</groupId>
451                                 <artifactId>mail</artifactId>
452                                 <version>1.4.5</version>
453                         </dependency>
454                 </dependencies>
455         </dependencyManagement>
456
457
458         
459
460 </project>