blob: 7142554b248a7f8ae65a22e80df50b3bd257851a [file] [log] [blame]
Instrumental71037c32018-03-26 13:51:48 -07001<?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>
Instrumental17ca7442018-03-29 16:54:19 -050026 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -070027 <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>
Instrumental71037c32018-03-26 13:51:48 -070033 <project.interfaceVersion>2.10-SNAPSHOT</project.interfaceVersion>
34 <project.miscVersion>1.3.0-SNAPSHOT</project.miscVersion>
35 <project.cadiVersion>1.5.0-SNAPSHOT</project.cadiVersion>
36 <!-- >project.jettyVersion>9.3.22.v20171030</project.jettyVersion -->
37 <project.jettyVersion>9.4.8.v20171121</project.jettyVersion>
38 <powermock.version>1.5.1</powermock.version>
39 <project.conf_dir>/opt/app/osaaf/etc</project.conf_dir>
Sai Gandhamc434f3c2018-03-27 16:29:24 +000040 <!-- SONAR -->
41 <jacoco.version>0.7.7.201606060606</jacoco.version>
42 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
43 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
44 <!-- Default Sonar configuration -->
45 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
46 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
47 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
48 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
49 <nexusproxy>https://nexus.onap.org</nexusproxy>
50 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
51 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
52 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
53 <sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
Instrumental71037c32018-03-26 13:51:48 -070054 </properties>
55
56 <developers>
57 <developer>
58 <name>Jonathan Gathman</name>
59 <email>jonathan.gathman@att.com</email>
60 <organization>ATT</organization>
61 <roles>
62 <role>Architect</role>
63 <role>Lead Developer</role>
64 </roles>
65 </developer>
66 <developer>
67 <name>Gabe Maurer</name>
68 <email>gabe.maurer@att.com</email>
69 <organization>ATT</organization>
70 <roles>
71 <role>Developer</role>
72 </roles>
73 </developer>
74 <developer>
75 <name>Ian Howell</name>
76 <email>ian.howell@att.com</email>
77 <organization>ATT</organization>
78 <roles>
79 <role>Developer</role>
80 </roles>
81 </developer>
Sai Gandhame01703c2018-03-26 22:57:09 +000082 <developer>
83 <name>Sai Gandham</name>
84 <email>sai.gandham@att.com</email>
85 <organization>ATT</organization>
86 <roles>
87 <role>Developer</role>
88 </roles>
89 </developer>
Instrumental71037c32018-03-26 13:51:48 -070090 </developers>
91
92 <build>
93 <pluginManagement>
94 <plugins>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-compiler-plugin</artifactId>
98 <version>2.3.2</version>
99 <configuration>
100 <source>1.8</source>
101 <target>1.8</target>
102 </configuration>
103 </plugin>
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-deploy-plugin</artifactId>
107 <version>2.6</version>
108 <configuration>
Sai Gandham05c86472018-03-27 21:08:58 +0000109 <skip>true</skip>
Instrumental71037c32018-03-26 13:51:48 -0700110 </configuration>
111 </plugin>
112
113 <plugin>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-surefire-plugin</artifactId>
116 <version>2.17</version>
117 <configuration>
Sai Gandham372e2512018-04-01 16:42:58 -0500118 <skipTests>false</skipTests>
Instrumental17ca7442018-03-29 16:54:19 -0500119
Instrumental71037c32018-03-26 13:51:48 -0700120 <includes>
121 <include>**/JU*.java</include>
122 </includes>
123 <excludes>
124 </excludes>
125
126 </configuration>
127 </plugin>
128
129 <plugin>
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-failsafe-plugin</artifactId>
132 <version>2.17</version>
133 <configuration>
Sai Gandham372e2512018-04-01 16:42:58 -0500134 <skipTests>flase</skipTests>
Instrumental71037c32018-03-26 13:51:48 -0700135 </configuration>
136 <executions>
137 <execution>
138 <id>integration-test</id>
139 <goals>
140 <goal>integration-test</goal>
141 <goal>verify</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin>
146
147 <!-- Builds O/S Command line ready jars and scripts, ready to run/zip -->
148 <plugin>
149 <groupId>org.codehaus.mojo</groupId>
150 <artifactId>appassembler-maven-plugin</artifactId>
151 <version>1.10</version>
152 <executions>
153 <execution>
154 <goals>
155 <goal>assemble</goal>
156 </goals>
157 <phase>install</phase>
158 </execution>
159 </executions>
160 <configuration>
161 <programs/> <!-- this set in projects that have programs -->
162 <assembleDirectory>../aaf_${project.version}</assembleDirectory>
163 <copyConfigurationDirectory>false</copyConfigurationDirectory>
164 <configurationDirectory>etc</configurationDirectory>
165 <repositoryName>lib</repositoryName>
166 <repositoryLayout>flat</repositoryLayout>
167 </configuration>
168 </plugin>
169
170 <!-- Build Docker Image -->
171 <plugin>
172 <groupId>com.spotify</groupId>
173 <artifactId>docker-maven-plugin</artifactId>
174 <version>1.0.0</version>
175 <configuration>
176 <imageName>onap/osaaf/${project.artifactId}</imageName>
177 <!-- <dockerDirectory>${dockerLocation}</dockerDirectory> -->
178 <dockerDirectory>${basedir}/src/main/resources/docker</dockerDirectory>
179 <imageTags>
180 <imageTag>latest</imageTag>
181 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
182 <imageTag>${project.docker.latesttag.version}</imageTag>
183 </imageTags>
184 <forceTags>true</forceTags>
185 <!-- <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}/opt</directory>
186 <filtering>true</filtering> <includes> <include>**/**</include> </includes>
187 </resource> </resources> -->
188 <resources>
189 <resource>
190 <targetPath>/</targetPath>
191 <directory>${project.build.directory}/opt</directory>
192 <include>${project.build.finalName}.jar</include>
193 </resource>
194 <resource>
195 <targetPath>/</targetPath>
196 <directory>${project.build.directory}</directory>
197 <include>**/**</include>
198 </resource>
199 </resources>
200 </configuration>
201 <executions>
202 <execution>
203 <id>build-image</id>
204 <phase>package</phase>
205 <goals>
206 <goal>build</goal>
207 </goals>
208 <configuration>
209 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
210 </configuration>
211 </execution>
212
213 <execution>
214 <id>tag-image-project-version</id>
215 <phase>package</phase>
216 <goals>
217 <goal>tag</goal>
218 </goals>
219 <configuration>
220 <image>onap/osaaf/${project.artifactId}</image>
221 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</newName>
222 <skipDockerTag>${skip.docker.push}</skipDockerTag>
223 </configuration>
224 </execution>
225
226 <execution>
227 <id>tag-image-latest</id>
228 <phase>package</phase>
229 <goals>
230 <goal>tag</goal>
231 </goals>
232 <configuration>
233 <image>onap/aaf/authz-service</image>
234 <newName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</newName>
235 <skipDockerTag>${skip.docker.push}</skipDockerTag>
236 </configuration>
237 </execution>
238
239 <execution>
240 <id>push-image-latest</id>
241 <phase>deploy</phase>
242 <goals>
243 <goal>push</goal>
244 </goals>
245 <configuration>
246 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:${project.version}</imageName>
247 <skipDockerPush>${skip.docker.push}</skipDockerPush>
248 </configuration>
249 </execution>
250
251 <execution>
252 <id>push-image</id>
253 <phase>deploy</phase>
254 <goals>
255 <goal>push</goal>
256 </goals>
257 <configuration>
258 <imageName>${docker.push.registry}/onap/osaaf/${project.artifactId}:latest</imageName>
259 <skipDockerPush>${skip.docker.push}</skipDockerPush>
260 </configuration>
261 </execution>
262 </executions>
263 </plugin>
Sai Gandhamc434f3c2018-03-27 16:29:24 +0000264 <plugin>
265 <groupId>org.sonatype.plugins</groupId>
266 <artifactId>nexus-staging-maven-plugin</artifactId>
267 <version>1.6.7</version>
268 <extensions>true</extensions>
269 <configuration>
270 <nexusUrl>${nexusproxy}</nexusUrl>
271 <stagingProfileId>176c31dfe190a</stagingProfileId>
272 <serverId>ecomp-staging</serverId>
273 </configuration>
274 </plugin>
275 <plugin>
276 <groupId>org.jacoco</groupId>
277 <artifactId>jacoco-maven-plugin</artifactId>
278 <version>0.7.7.201606060606</version>
279 <configuration>
280 <dumpOnExit>true</dumpOnExit>
281 <includes>
282 <include>org.onap.aaf.*</include>
283 </includes>
284 </configuration>
285 <executions>
286 <execution>
287 <id>pre-unit-test</id>
288 <goals>
289 <goal>prepare-agent</goal>
290 </goals>
291 <configuration>
292 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
293 <!-- <append>true</append> -->
294 </configuration>
295 </execution>
296 <execution>
297 <id>pre-integration-test</id>
298 <phase>pre-integration-test</phase>
299 <goals>
300 <goal>prepare-agent</goal>
301 </goals>
302 <configuration>
303 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
304 <!-- <append>true</append> -->
305 </configuration>
306 </execution>
307 <execution>
308 <goals>
309 <goal>merge</goal>
310 </goals>
311 <phase>post-integration-test</phase>
312 <configuration>
313 <fileSets>
314 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
315 <directory>${project.build.directory}/coverage-reports</directory>
316 <includes>
317 <include>*.exec</include>
318 </includes>
319 </fileSet>
320 </fileSets>
321 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
Instrumental71037c32018-03-26 13:51:48 -0700326 </plugins>
327 </pluginManagement>
328 </build>
329
330 <dependencies>
331 <dependency>
332 <groupId>org.mockito</groupId>
333 <artifactId>mockito-all</artifactId>
334 <version>1.9.5</version>
335 <scope>test</scope>
336 </dependency>
337 <dependency>
338 <groupId>org.powermock</groupId>
339 <artifactId>powermock-module-junit4</artifactId>
340 <version>${powermock.version}</version>
341 <scope>test</scope>
342 </dependency>
343 <dependency>
344 <groupId>org.powermock</groupId>
345 <artifactId>powermock-api-mockito</artifactId>
346 <version>${powermock.version}</version>
347 <scope>test</scope>
348 </dependency>
349 <dependency>
350 <groupId>junit</groupId>
351 <artifactId>junit</artifactId>
352 <version>4.10</version>
353 <scope>test</scope>
354 </dependency>
355
356 </dependencies>
357
358 <modules>
359 <!-- <module>auth-client</module> complile manually with mvn -N independently -->
360 <module>auth-core</module>
361 <module>auth-cass</module>
362 <module>auth-deforg</module>
363
364 <module>auth-service</module>
365 <module>auth-cmd</module>
366 <module>auth-batch</module>
367
368 <module>auth-gui</module>
369 <module>auth-locate</module>
370 <module>auth-oauth</module>
371 <module>auth-certman</module>
372 <module>auth-fs</module>
373 <module>auth-hello</module>
374 </modules>
375
376 <dependencyManagement>
377 <dependencies>
378 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500379 <groupId>org.onap.aaf.authz.misc</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700380 <artifactId>aaf-misc-env</artifactId>
381 <version>${project.miscVersion}</version>
382 </dependency>
383
384 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500385 <groupId>org.onap.aaf.authz.misc</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700386 <artifactId>aaf-misc-log4j</artifactId>
387 <version>${project.miscVersion}</version>
388 </dependency>
389
390 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500391 <groupId>org.onap.aaf.authz.misc</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700392 <artifactId>aaf-misc-rosetta</artifactId>
393 <version>${project.miscVersion}</version>
394 </dependency>
395
396 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500397 <groupId>org.onap.aaf.authz.misc</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700398 <artifactId>aaf-misc-xgen</artifactId>
399 <version>${project.miscVersion}</version>
400 </dependency>
401
402 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500403 <groupId>org.onap.aaf.authz.cadi</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700404 <artifactId>aaf-cadi-core</artifactId>
405 <version>${project.cadiVersion}</version>
406 </dependency>
407
408 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500409 <groupId>org.onap.aaf.authz.cadi</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700410 <artifactId>aaf-cadi-client</artifactId>
411 <version>${project.cadiVersion}</version>
412 </dependency>
413
414 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500415 <groupId>org.onap.aaf.authz.cadi</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700416 <artifactId>aaf-cadi-aaf</artifactId>
417 <version>${project.cadiVersion}</version>
418 <exclusions>
419 <exclusion>
420 <groupId>org.apache.cassandra</groupId>
421 <artifactId>cassandra-all</artifactId>
422 </exclusion>
423 </exclusions>
424 </dependency>
425
426 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500427 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700428 <artifactId>aaf-auth-client</artifactId>
429 <version>${project.interfaceVersion}</version>
430 </dependency>
431
432 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500433 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700434 <artifactId>aaf-auth-core</artifactId>
435 <version>${project.version}</version>
436 </dependency>
437
438 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500439 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700440 <artifactId>aaf-auth-cass</artifactId>
441 <version>${project.version}</version>
442 </dependency>
443
444 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500445 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700446 <artifactId>aaf-auth-cmd</artifactId>
447 <version>${project.version}</version>
448 </dependency>
449
450 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500451 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700452 <artifactId>aaf-auth-oauth</artifactId>
453 <version>${project.version}</version>
454 </dependency>
455
456 <dependency>
Instrumental17ca7442018-03-29 16:54:19 -0500457 <groupId>org.onap.aaf.authz.auth</groupId>
Instrumental71037c32018-03-26 13:51:48 -0700458 <artifactId>aaf-auth-deforg</artifactId>
459 <version>${project.version}</version>
460 </dependency>
461
462 <dependency>
463 <groupId>javax.servlet</groupId>
464 <artifactId>servlet-api</artifactId>
Instrumental10027f32018-03-26 14:07:37 -0700465 <version>2.5</version>
Instrumental71037c32018-03-26 13:51:48 -0700466 </dependency>
467
468 <dependency>
469 <groupId>org.eclipse.jetty</groupId>
470 <artifactId>jetty-servlet</artifactId>
471 <version>${project.jettyVersion}</version>
472 </dependency>
473
474 <dependency>
475 <groupId>org.eclipse.jetty</groupId>
476 <artifactId>jetty-server</artifactId>
477 <version>${project.jettyVersion}</version>
478 </dependency>
479
480 <dependency>
481 <groupId>org.eclipse.jetty</groupId>
482 <artifactId>jetty-jmx</artifactId>
483 <version>${project.jettyVersion}</version>
484 </dependency>
485
486 <dependency>
487 <groupId>com.datastax.cassandra</groupId>
488 <artifactId>cassandra-all</artifactId>
489 <version>3.3.0</version>
490 <exclusions>
491 <exclusion>
492 <groupId>org.slf4j</groupId>
493 <artifactId>slf4j-log4j12</artifactId>
494 </exclusion>
495 <exclusion>
496 <groupId>log4j</groupId>
497 <artifactId>log4j</artifactId>
498 </exclusion>
499 </exclusions>
500 </dependency>
501 <dependency>
502 <groupId>com.datastax.cassandra</groupId>
503 <artifactId>cassandra-driver-core</artifactId>
504 <!-- version>1.0.3</version -->
505 <!-- version>1.0.5</version -->
506 <version>3.3.0</version>
507 <exclusions>
508 <exclusion>
509 <groupId>org.slf4j</groupId>
510 <artifactId>slf4j-log4j12</artifactId>
511 </exclusion>
512 <exclusion>
513 <groupId>log4j</groupId>
514 <artifactId>log4j</artifactId>
515 </exclusion>
516 </exclusions>
517 </dependency>
518
519 <dependency>
520 <groupId>org.slf4j</groupId>
521 <artifactId>slf4j-log4j12</artifactId>
522 <version>1.7.5</version>
523 </dependency>
524
525 <dependency>
526 <groupId>javax.mail</groupId>
527 <artifactId>mail</artifactId>
528 <version>1.4.5</version>
529 </dependency>
530 </dependencies>
531 </dependencyManagement>
532
533
Sai Gandhame01703c2018-03-26 22:57:09 +0000534
Instrumental71037c32018-03-26 13:51:48 -0700535
536</project>